server-re/decomp/Agent_Release_x64/full/functions/0x14003a420.c
2026-10-14 16:45:19 -04:00

21 lines
617 B
C

/* Agent_Release_x64.exe sha256 6f2be7b8eb799ba51b359d1958720aac5baee5b7ee0d1d36684d3cbd72d45469
* Ghidra 12.1.2 decompiler output for 0x14003a420 FUN_14003a420
* Pseudocode, not original source. */
double FUN_14003a420(char *param_1)
{
LARGE_INTEGER LVar1;
LARGE_INTEGER local_res8 [4];
if (*param_1 == '\0') {
return -1.0;
}
LVar1.QuadPart = ((LARGE_INTEGER *)(param_1 + 0x10))->QuadPart;
if (((LARGE_INTEGER *)(param_1 + 0x10))->QuadPart == 0) {
QueryPerformanceCounter(local_res8);
LVar1 = local_res8[0];
}
return (double)LVar1.QuadPart / (double)*(longlong *)(param_1 + 8);
}