Function at 0x1012d0f
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call fcn.0100b23e
test eax, eax
push 2
pop edi
push 0x4e
pop esi
je 0x10127a3
push 0x1003e0c
push edi
push 0x1326
push esi
call fcn.0100b327
add esp, 0x10
call fcn.0100b23e
test eax, eax
je 0x10127cc
push dword [0x101a204]
push dword [0x101a200]
push 0x1003de8
push edi
push 0x1327
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x10127f5
push dword [0x101a1ec]
push dword [0x101a1e8]
push 0x1003dc8
push edi
push 0x1328
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x101281e
push dword [0x101a1f4]
push dword [0x101a1f0]
push 0x1003da8
push edi
push 0x1329
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012847
push dword [0x101a1fc]
push dword [0x101a1f8]
push 0x1003d88
push edi
push 0x132a
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012870
push dword [0x101a20c]
push dword [0x101a208]
push 0x1003d64
push edi
push 0x132b
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012899
push dword [0x101a2cc]
push dword [0x101a2c8]
push 0x1003d38
push edi
push 0x132c
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x10128c2
push dword [0x101a1e4]
push dword [0x101a1e0]
push 0x1003d18
push edi
push 0x132d
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x10128eb
push dword [0x101a2dc]
push dword [0x101a2d8]
push 0x1003cf8
push edi
push 0x132e
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012917
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov ecx, dword [reloc.msvcrt.dll___p__commode]
push eax
push ecx
push eax
push ecx
push 0x1003cd4
push edi
push 0x132f
push esi
call fcn.0100b327
add esp, 0x20
call fcn.0100b23e
test eax, eax
je 0x1012943
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov ecx, dword [reloc.msvcrt.dll___p__commode]
push eax
push ecx
push eax
push ecx
push 0x1003cac
push edi
push 0x1330
push esi
call fcn.0100b327
add esp, 0x20
call fcn.0100b23e
test eax, eax
je 0x101296f
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov ecx, dword [reloc.msvcrt.dll___p__commode]
push eax
push ecx
push eax
push ecx
push 0x1003c84
push edi
push 0x1331
push esi
call fcn.0100b327
add esp, 0x20
call fcn.0100b23e
test eax, eax
je 0x101299b
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov ecx, dword [reloc.msvcrt.dll___p__commode]
push eax
push ecx
push eax
push ecx
push 0x1003c60
push edi
push 0x1332
push esi
call fcn.0100b327
add esp, 0x20
mov eax, dword [reloc.msvcrt.dll___p__commode]
push ebx
mov ebx, dword [reloc.msvcrt.dll___p__commode]
sub ebx, dword [reloc.msvcrt.dll___p__commode]
sbb eax, dword [0x101a2bc]
mov dword [ebp - 8], eax
call fcn.0100b23e
test eax, eax
je 0x10129d7
push dword [ebp - 8]
push ebx
push 0x1003c3c
push edi
push 0x1335
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012a03
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov ecx, dword [reloc.msvcrt.dll___p__commode]
push eax
push ecx
push eax
push ecx
push 0x1003c14
push edi
push 0x1336
push esi
call fcn.0100b327
add esp, 0x20
call fcn.0100b23e
test eax, eax
je 0x1012a3f
push dword [0x101a1f4]
push dword [0x101a1f0]
push dword [0x101a20c]
push dword [0x101a208]
call fcn.01017fa0
push edx
push eax
push 0x1003bfc
push edi
push 0x1337
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012a68
push dword [0x101a1f4]
push dword [0x101a1f0]
push 0x1003be0
push edi
push 0x1338
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012aa4
push dword [0x101a1f4]
push dword [0x101a1f0]
push dword [0x101a214]
push dword [0x101a210]
call fcn.01017fa0
push edx
push eax
push 0x1003bc0
push edi
push 0x1339
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
mov ebx, 0x1003ba0
je 0x1012aee
push dword [0x101a1f4]
mov eax, dword [reloc.msvcrt.dll___p__commode]
sub eax, dword [reloc.msvcrt.dll___p__commode]
mov ecx, dword [reloc.msvcrt.dll___p__commode]
push dword [0x101a1f0]
sbb ecx, dword [0x101a214]
push ecx
push eax
call fcn.01017fa0
push edx
push eax
push ebx
push edi
push 0x133a
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012b13
push dword [0x101a224]
push dword [0x101a220]
push ebx
push edi
push 0x133b
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012b3c
push dword [0x101a22c]
push dword [0x101a228]
push 0x1003b7c
push edi
push 0x133c
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012b65
push dword [0x101a23c]
push dword [0x101a238]
push 0x1003b50
push edi
push 0x133d
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012b8e
push dword [0x101a244]
push dword [0x101a240]
push 0x1003b28
push edi
push 0x133e
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012bb7
push dword [0x101a24c]
push dword [0x101a248]
push 0x1003b00
push edi
push 0x133f
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012be0
push dword [0x101a3b4]
push dword [0x101a3b0]
push 0x1003ae4
push edi
push 0x1340
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012c09
push dword [0x101a3bc]
push dword [0x101a3b8]
push 0x1003ac4
push edi
push 0x1341
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012c32
push dword [0x101a3c4]
push dword [0x101a3c0]
push 0x1003a8c
push edi
push 0x1342
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012c5b
push dword [0x101a344]
push dword [0x101a340]
push 0x1003a6c
push edi
push 0x1343
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012c84
push dword [0x101a354]
push dword [0x101a350]
push 0x1003a50
push edi
push 0x1344
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012cad
push dword [0x101a35c]
push dword [0x101a358]
push 0x1003a30
push edi
push 0x1345
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012cd6
push dword [0x101a32c]
push dword [0x101a328]
push 0x1003a18
push edi
push 0x1346
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012cff
push dword [0x101a39c]
push dword [0x101a398]
push 0x10039fc
push edi
push 0x1347
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012d28
push dword [0x101a394]
push dword [0x101a390]
push 0x10039d8
push edi
push 0x1348
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012d51
push dword [0x101a38c]
push dword [0x101a388]
push 0x10039b4
push edi
push 0x1349
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012d7a
push dword [0x101a36c]
push dword [0x101a368]
push 0x1003990
push edi
push 0x134a
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012da3
push dword [0x101a334]
push dword [0x101a330]
push 0x1003970
push edi
push 0x134b
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012dcc
push dword [0x101a33c]
push dword [0x101a338]
push 0x1003950
push edi
push 0x134c
push esi
call fcn.0100b327
add esp, 0x18
mov ebx, dword [reloc.msvcrt.dll___p__commode]
sub ebx, dword [reloc.msvcrt.dll___p__commode]
mov eax, dword [reloc.msvcrt.dll___p__commode]
sbb eax, dword [0x101a214]
mov ecx, ebx
or ecx, eax
mov dword [ebp - 8], eax
je 0x1012e17
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov ecx, dword [reloc.msvcrt.dll___p__commode]
push 0
sub eax, 4
push 0x64
sbb ecx, 0
push ecx
push eax
call fcn.01017fa0
push dword [ebp - 8]
push ebx
push edx
push eax
call fcn.01018000
mov ebx, eax
jmp 0x1012e1a
or ebx, reloc.msvcrt.dll___p__commode
call fcn.0100b23e
test eax, eax
je 0x1012e38
push ebx
push 0x1003924
push edi
push 0x1355
push esi
call fcn.0100b327
add esp, 0x14
call fcn.0100b23e
test eax, eax
je 0x1012e61
push dword [0x101a374]
push dword [0x101a370]
push 0x1003904
push edi
push 0x1356
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012e8a
push dword [0x101a37c]
push dword [0x101a378]
push 0x10038dc
push edi
push 0x1357
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012ec1
push 0
push 0x400
push dword [0x101a3a4]
push dword [0x101a3a0]
call fcn.01018000
push edx
push eax
push 0x10038c4
push edi
push 0x1358
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012eea
push dword [0x101a2dc]
push dword [0x101a2d8]
push 0x10038a8
push edi
push 0x1359
push esi
call fcn.0100b327
add esp, 0x18
mov ebx, dword [reloc.msvcrt.dll___p__commode]
mov eax, ebx
or eax, dword [reloc.msvcrt.dll___p__commode]
je 0x1012f21
push 0
push 0x64
push dword [0x101a2e4]
push dword [0x101a2e0]
call fcn.01017fa0
push dword [0x101a2dc]
push ebx
push edx
push eax
call fcn.01018000
mov ebx, eax
jmp 0x1012f24
or ebx, reloc.msvcrt.dll___p__commode
call fcn.0100b23e
test eax, eax
je 0x1012f42
push ebx
push 0x1003888
push edi
push 0x1361
push esi
call fcn.0100b327
add esp, 0x14
call fcn.0100b23e
test eax, eax
je 0x1012f6b
push dword [0x101a3ac]
push dword [0x101a3a8]
push 0x100386c
push edi
push 0x1362
push esi
call fcn.0100b327
add esp, 0x18
call fcn.0100b23e
test eax, eax
je 0x1012f93
push 0x101a824
call fcn.0100af2e
push eax
push 0x1003858
push edi
push 0x1365
push esi
call fcn.0100b327
add esp, 0x14
call fcn.0100b23e
test eax, eax
mov ebx, 0x101a834
je 0x1012fbc
push ebx
call fcn.0100af2e
push eax
push 0x1003844
push edi
push 0x1366
push esi
call fcn.0100b327
add esp, 0x14
lea eax, [ebp - 4]
push eax
push ebx
push 0x101a824
call fcn.0100af79
test eax, eax
pop ebx
je 0x1012ff0
call fcn.0100b23e
test eax, eax
je 0x1012ff0
push dword [ebp - 4]
push 0x1003828
push edi
push 0x1369
push esi
call fcn.0100b327
add esp, 0x14
call fcn.0100b23e
test eax, eax
je 0x101300d
push 0x1003810
push edi
push 0x136c
push esi
call fcn.0100b327
add esp, 0x10
pop edi
pop esi
leave
ret