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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x45ac46
push edx
mov dword fs:[0], esp
sub esp, 8
sub esp, 0x208
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], esi
mov ecx, dword [0x48a808]
mov edx, dword fs:[0x2c]
mov ebx, dword [edx + ecx*4]
cmp dword [ebx + 0xb60], 0
jne 0x45a18e
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0x210]
mov esi, dword [ebp - 0x20c]
mov edi, dword [ebp - 0x208]
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x40], 0
mov ecx, dword [0x49c2a4]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
or ecx, dword [0x49c2a0]
jne 0x45a1e0
mov edx, 0x480810
mov ecx, 0x473920
mov eax, 0x853
push edx
push 0x5c
push ecx
push 0xf
call fcn.00443554
lea edx, [ebp - 0x148]
push edx
call sub.KERNEL32.DLL_QueryPerformanceCounter
mov ecx, dword [ebp - 0x148]
lea eax, [edi + 0x40]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
call fcn.0044a104
mov eax, edi
call fcn.0044a104
call fcn.00460eb4
xor ebx, ebx
cmp dword [edi + 0xa8], ebx
je 0x45a2a1
lea edx, [edi + 0xa4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov esi, dword [edx + ebx*4]
cmp byte [esi + 0x58], 0
je 0x45a26d
lea edx, [esi + 0xc]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
add edx, 0x1f
shr edx, 5
shl edx, 2
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], ecx
call fcn.0046683c
jmp 0x45a298
lea ecx, [esi + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
add ecx, 0x1f
shr ecx, 5
shl ecx, 2
mov dword [ebp - 0x214], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], edx
call fcn.00465640
mov ecx, dword [ebp - 0x24]
inc ebx
cmp ebx, dword [ecx + 4]
jb 0x45a231
mov eax, dword [0x49c2a4]
or eax, dword [0x49c2a0]
jne 0x45a2c8
mov ebx, 0x480810
mov esi, 0x473920
mov eax, 0x853
push ebx
push 0x5c
push esi
push 0xf
call fcn.00443554
lea ecx, [ebp - 0x160]
push ecx
call sub.KERNEL32.DLL_QueryPerformanceCounter
mov edx, dword [ebp - 0x160]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x38], edx
mov ebx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ebx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc0], esi
sub eax, dword [ebp - 0xc0]
sbb edx, dword [ebp - 0xbc]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xa4], edx
mov esi, dword [ebp - 0xa4]
mov dword [ebp - 0x7c], esi
mov eax, dword [0x49c2a0]
mov edx, dword [0x49c2a4]
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x200], esi
mov dword [ebp - 0x1fc], edi
call fcn.004658e6
mov esi, dword [ebp - 0x200]
mov edx, ecx
imul esi, edx, 0x989680
mov eax, ebx
mov edx, 0x989680
mul edx
mov edi, dword [ebp - 0x1fc]
add edx, esi
mov dword [ebp - 0x1f8], esi
mov ecx, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x1f4], edi
call fcn.004658e6
mov esi, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x1e4], edx
mov edi, dword [ebp - 0x1f4]
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x1f0], esi
mov dword [ebp - 0x1ec], edi
call fcn.004658e6
mov esi, dword [ebp - 0x1f0]
imul esi, edx, 0x989680
mov edx, 0x989680
mul edx
add edx, esi
mov ecx, edx
mov ebx, eax
mov eax, dword [ebp - 0x1e8]
mov edx, dword [ebp - 0x1e4]
add eax, ebx
adc edx, ecx
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xac], edx
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xb4], edx
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
push edx
mov eax, dword [ebp - 0xb8]
push eax
mov edi, dword [ebp - 0x1ec]
mov eax, 0x49d2f0
call fcn.00460ea0
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ebx
cmp dword [0x47e58c], 0
je 0x45a44d
push dword [ebp + 8]
mov eax, edi
call fcn.0045ad48
jmp 0x45a46c
cmp byte [0x49d398], 0
je 0x45a462
push dword [ebp + 8]
mov eax, edi
call fcn.0045fb04
jmp 0x45a46c
push dword [ebp + 8]
mov eax, edi
call fcn.0045fa1c
mov dword [ebp - 0x48], edi
mov ecx, 0x45ac50
mov ebx, dword [0x49c47c]
mov dword [ebp - 0x44], ecx
cmp dword [0x49c47c], 0
je 0x45a4a6
mov edx, dword [ebx + 0x50]
test edx, edx
mov dword [ebp - 0x204], edx
je 0x45a49f
push edx
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.0045f9c0
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x45a486
call fcn.0045f8a0
lea ebx, [edi + 0x40]
xor eax, eax
push ebx
call fcn.0044a5c4
xor eax, eax
push edi
call fcn.0044a5c4
mov ecx, dword [0x49c2a4]
or ecx, dword [0x49c2a0]
jne 0x45a4e6
mov edx, 0x480810
mov ebx, 0x473920
mov eax, 0x853
push edx
push 0x5c
push ebx
push 0xf
call fcn.00443554
lea esi, [ebp - 0x158]
push esi
call sub.KERNEL32.DLL_QueryPerformanceCounter
mov ecx, dword [ebp - 0x158]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xe8], ebx
mov ebx, dword [0x49c2a0]
sub eax, dword [ebp - 0xe8]
sbb edx, dword [ebp - 0xe4]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x124], edx
mov esi, dword [ebp - 0x124]
mov dword [ebp - 0x94], esi
mov eax, dword [0x49c2a4]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ebx
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1dc], edi
call fcn.004658e6
mov esi, dword [ebp - 0x1e0]
mov edx, ecx
imul esi, edx, 0x989680
mov eax, ebx
mov edx, 0x989680
mul edx
mov edi, dword [ebp - 0x1dc]
add edx, esi
mov dword [ebp - 0x1d8], esi
mov ecx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x1d4], edi
call fcn.004658e6
mov esi, dword [ebp - 0x1d8]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x1c4], edx
mov edi, dword [ebp - 0x1d4]
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x1c8], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x1d0], esi
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x1cc], edi
call fcn.004658e6
mov esi, dword [ebp - 0x1d0]
imul esi, edx, 0x989680
mov edx, 0x989680
mul edx
add edx, esi
mov ecx, edx
mov ebx, eax
mov eax, dword [ebp - 0x1c8]
mov edx, dword [ebp - 0x1c4]
add eax, ebx
adc edx, ecx
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], edx
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x12c], edx
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], eax
push edx
mov eax, dword [ebp - 0x130]
push eax
mov edi, dword [ebp - 0x1cc]
mov eax, 0x49d2f8
call fcn.00460ea0
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], ebx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0xf0]
mov ebx, dword [0x49c2a0]
sbb edx, dword [ebp - 0xec]
mov dword [ebp - 0x110], eax
mov esi, dword [ebp - 0x110]
mov dword [ebp - 0x10c], edx
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x84], ecx
mov eax, dword [0x49c2a4]
mov dword [ebp - 0x88], esi
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x1c0], esi
mov dword [ebp - 0x1bc], edi
call fcn.004658e6
mov esi, dword [ebp - 0x1c0]
mov edx, ecx
imul esi, edx, 0x989680
mov eax, ebx
mov edx, 0x989680
mul edx
mov edi, dword [ebp - 0x1bc]
add edx, esi
mov dword [ebp - 0x1b8], esi
mov ecx, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x1b4], edi
call fcn.004658e6
mov esi, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x1a4], edx
mov edi, dword [ebp - 0x1b4]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x1a8], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x1b0], esi
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x1ac], edi
call fcn.004658e6
mov esi, dword [ebp - 0x1b0]
imul esi, edx, 0x989680
mov edx, 0x989680
mul edx
add edx, esi
mov ecx, edx
mov ebx, eax
mov eax, dword [ebp - 0x1a8]
mov edx, dword [ebp - 0x1a4]
add eax, ebx
adc edx, ecx
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x114], edx
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x13c], edx
push dword [0x49d314]
mov edi, dword [ebp - 0x1ac]
push dword [0x49d310]
call fcn.0042029c
test eax, eax
jle 0x45a7cf
mov esi, dword [ebp - 0x140]
mov dword [0x49d310], esi
mov ecx, dword [ebp - 0x13c]
mov dword [0x49d314], ecx
push dword [ebp - 0x13c]
mov eax, 0x49d308
push dword [ebp - 0x140]
call fcn.00460ea0
mov edx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov esi, dword [0x48a808]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + esi*4]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ebx
mov byte [eax + 0xbc0], 1
mov dword [ebp - 4], 0
mov eax, edi
call fcn.00459918
mov ecx, dword [0x48a808]
mov dword [ebp - 0x2c], eax
mov edx, dword fs:[0x2c]
mov ebx, dword [edx + ecx*4]
mov byte [ebx + 0xbc0], 0
jmp 0x45a851
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
mov ecx, 0xe
xor eax, eax
lea edi, [esi + 0xb4]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0xa4]
mov edi, dword [ebp - 0x18]
mov byte [ebp - 0x1c], al
mov dword [ebp - 0x28], ecx
xor esi, esi
xor ebx, ebx
cmp dword [edi + 0xa8], ebx
je 0x45a8d9
lea eax, [edi + 0xa4]
mov edx, dword [eax]
mov ebx, dword [edx]
cmp byte [ebx + 0x58], 0
jne 0x45a8a7
movzx ecx, byte [ebp - 0x1c]
lea edx, [ebx + ecx*4]
mov ecx, dword [edx + 0x64]
cmp ecx, dword [ebx + 0x4c]
jb 0x45a8d9
lea eax, [edi + 0xa4]
mov dword [ebp - 0x204], eax
mov edx, dword [ebp - 0x204]
inc esi
cmp esi, dword [edx + 4]
jae 0x45a8d9
mov ecx, dword [eax]
mov ebx, dword [ecx + esi*4]
cmp byte [ebx + 0x58], 0
jne 0x45a8b9
movzx ecx, byte [ebp - 0x1c]
lea ecx, [ebx + ecx*4]
mov ecx, dword [ecx + 0x64]
cmp ecx, dword [ebx + 0x4c]
jae 0x45a8b9
mov edx, dword [ebp - 0x28]
cmp esi, dword [edx + 4]
jae 0x45a8e5
mov ecx, ebx
jmp 0x45a8e7
xor ecx, ecx
movzx edx, byte [ebp - 0x1c]
lea edx, [edi + edx*4]
inc byte [ebp - 0x1c]
mov dword [edx + 0x100], ecx
cmp byte [ebp - 0x1c], 0xe
jb 0x45a87c
mov eax, dword [0x49c2a4]
or eax, dword [0x49c2a0]
jne 0x45a928
mov ebx, 0x480810
mov ecx, 0x473920
mov eax, 0x853
push ebx
push 0x5c
push ecx
push 0xf
call fcn.00443554
lea edx, [ebp - 0x138]
push edx
call sub.KERNEL32.DLL_QueryPerformanceCounter
mov esi, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], esi
mov ebx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ebx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xd8], ecx
mov ecx, dword [0x49c2a0]
sub eax, dword [ebp - 0xd8]
sbb edx, dword [ebp - 0xd4]
mov dword [ebp - 0x100], eax
mov esi, dword [ebp - 0x100]
mov dword [ebp - 0xfc], edx
mov ebx, dword [ebp - 0xfc]
mov dword [ebp - 0x8c], ebx
mov eax, dword [0x49c2a4]
mov dword [ebp - 0x90], esi
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x78]
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x19c], edi
call fcn.004658e6
mov esi, dword [ebp - 0x1a0]
mov edx, ecx
imul esi, edx, 0x989680
mov eax, ebx
mov edx, 0x989680
mul edx
mov edi, dword [ebp - 0x19c]
add edx, esi
mov dword [ebp - 0x198], esi
mov ecx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x78]
mov dword [ebp - 0x194], edi
call fcn.004658e6
mov esi, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x184], edx
mov edi, dword [ebp - 0x194]
mov ebx, dword [ebp - 0x78]
mov dword [ebp - 0x188], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x190], esi
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x18c], edi
call fcn.004658e6
mov esi, dword [ebp - 0x190]
imul esi, edx, 0x989680
mov edx, 0x989680
mul edx
add edx, esi
mov ecx, edx
mov ebx, eax
mov eax, dword [ebp - 0x188]
mov edx, dword [ebp - 0x184]
add eax, ebx
adc edx, ecx
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x104], edx
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0xf4], edx
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], eax
push edx
mov eax, dword [ebp - 0xf8]
push eax
mov edi, dword [ebp - 0x18c]
mov eax, 0x49d300
call fcn.00460ea0
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], ebx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0xe0]
mov ebx, dword [0x49c2a0]
sbb edx, dword [ebp - 0xdc]
mov dword [ebp - 0xc8], eax
mov esi, dword [ebp - 0xc8]
mov dword [ebp - 0xc4], edx
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x9c], ecx
mov eax, dword [0x49c2a4]
mov dword [ebp - 0xa0], esi
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ebx
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x180], esi
mov dword [ebp - 0x17c], edi
call fcn.004658e6
mov esi, dword [ebp - 0x180]
mov edx, ecx
imul esi, edx, 0x989680
mov eax, ebx
mov edx, 0x989680
mul edx
mov edi, dword [ebp - 0x17c]
add edx, esi
mov dword [ebp - 0x178], esi
mov ecx, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x174], edi
call fcn.004658e6
mov esi, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x164], edx
mov edi, dword [ebp - 0x174]
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x170], esi
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x16c], edi
call fcn.004658e6
mov esi, dword [ebp - 0x170]
imul esi, edx, 0x989680
mov edx, 0x989680
mul edx
add edx, esi
mov ecx, edx
mov ebx, eax
mov eax, dword [ebp - 0x168]
mov edx, dword [ebp - 0x164]
add eax, ebx
adc edx, ecx
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], edx
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x14c], edx
push dword [0x49d31c]
mov edi, dword [ebp - 0x16c]
push dword [0x49d318]
call fcn.0042029c
test eax, eax
jle 0x45ac11
mov esi, dword [ebp - 0x150]
mov dword [0x49d318], esi
mov ecx, dword [ebp - 0x14c]
mov dword [0x49d31c], ecx
inc dword [0x49d320]
mov eax, edi
call fcn.0045892c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
mov dword fs:[0], ecx
mov ebx, dword [ebp - 0x210]
mov esi, dword [ebp - 0x20c]
mov edi, dword [ebp - 0x208]
mov esp, ebp
pop ebp
ret 4