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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x4aba0e
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 bl, byte [ebp + 8]
mov dword [ebp - 0x20c], esi
mov ecx, dword [0x50a40c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp dword [ecx + 0x1e0], 0
jne 0x4aaf39
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 edx, dword [0x50ed14]
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 edx, dword [0x50ed10]
jne 0x4aaf8b
mov ecx, 0x5031f0
mov edx, 0x501ec0
mov eax, 0x841
push ecx
push 0x5c
push edx
push 0xf
call fcn.0048ed78
lea ecx, [ebp - 0x148]
push ecx
call sub.KERNEL32.DLL_QueryPerformanceCounter
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
cmp dword [0x4f6dfc], 0
setne cl
mov byte [ebp - 0x1c], cl
je 0x4aafdb
cmp dword [edi + 0x2bc], 0
jne 0x4aafdb
test bl, bl
je 0x4aafd4
mov byte [ebp - 0x1c], 0
jmp 0x4aafdb
mov eax, edi
call fcn.004abd58
mov byte [ebp + 8], bl
lea eax, [edi + 0x40]
call fcn.0048e8dc
mov eax, edi
call fcn.0048e8dc
call fcn.004b1f58
xor ebx, ebx
cmp dword [edi + 0xa8], ebx
je 0x4ab078
lea edx, [edi + 0xa4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov esi, dword [edx + ebx*4]
cmp byte [esi + 0x58], 0
je 0x4ab044
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.004b99a4
jmp 0x4ab06f
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.004b8760
mov ecx, dword [ebp - 0x28]
inc ebx
cmp ebx, dword [ecx + 4]
jb 0x4ab008
mov eax, dword [0x50ed14]
or eax, dword [0x50ed10]
jne 0x4ab09f
mov ebx, 0x5031f0
mov esi, 0x501ec0
mov eax, 0x841
push ebx
push 0x5c
push esi
push 0xf
call fcn.0048ed78
lea ecx, [ebp - 0x140]
push ecx
call sub.KERNEL32.DLL_QueryPerformanceCounter
mov edx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x38], edx
mov ebx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ebx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xe8], esi
sub eax, dword [ebp - 0xe8]
sbb edx, dword [ebp - 0xe4]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x10c], edx
mov esi, dword [ebp - 0x10c]
mov dword [ebp - 0x84], esi
mov eax, dword [0x50ed10]
mov edx, dword [0x50ed14]
mov dword [ebp - 0x74], edx
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x78]
mov dword [ebp - 0x200], esi
mov dword [ebp - 0x1fc], edi
call fcn.004b8b36
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 - 0x74]
mov ebx, dword [ebp - 0x78]
mov dword [ebp - 0x1f4], edi
call fcn.004b8b36
mov esi, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x1e4], edx
mov edi, dword [ebp - 0x1f4]
mov ebx, dword [ebp - 0x78]
mov dword [ebp - 0x1e8], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x1f0], esi
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x1ec], edi
call fcn.004b8b36
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 - 0x108], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x104], edx
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x114], edx
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
push edx
mov eax, dword [ebp - 0x118]
push eax
mov edi, dword [ebp - 0x1ec]
mov eax, 0x50f0c0
call fcn.004b1f44
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ebx
cmp byte [ebp - 0x1c], 0
je 0x4ab234
mov bl, byte [ebp + 8]
mov eax, edi
push ebx
call fcn.004abb08
jmp 0x4ab252
mov bl, byte [ebp + 8]
cmp byte [0x50f1c8], 0
je 0x4ab24a
push ebx
mov eax, edi
call fcn.004b10f8
jmp 0x4ab252
push ebx
mov eax, edi
call fcn.004b1010
mov dword [ebp - 0x48], edi
mov ecx, 0x4aba18
mov ebx, dword [0x50f058]
mov dword [ebp - 0x44], ecx
cmp dword [0x50f058], 0
je 0x4ab28c
mov edx, dword [ebx + 0x50]
test edx, edx
mov dword [ebp - 0x204], edx
je 0x4ab285
push edx
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.004b0fb4
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x4ab26c
call fcn.004b0e94
xor ebx, ebx
mov dword [edi + 0x40], ebx
mov dword [edi], ebx
mov esi, dword [0x50ed14]
or esi, dword [0x50ed10]
jne 0x4ab2c0
mov eax, 0x5031f0
mov ecx, 0x501ec0
push eax
mov eax, 0x841
push 0x5c
push ecx
push 0xf
call fcn.0048ed78
lea edx, [ebp - 0x150]
push edx
call sub.KERNEL32.DLL_QueryPerformanceCounter
mov ebx, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], ebx
mov esi, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], esi
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xe0], ecx
mov ecx, dword [0x50ed10]
sub eax, dword [ebp - 0xe0]
sbb edx, dword [ebp - 0xdc]
mov dword [ebp - 0xd0], eax
mov ebx, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], edx
mov esi, dword [ebp - 0xcc]
mov dword [ebp - 0x94], esi
mov eax, dword [0x50ed14]
mov dword [ebp - 0x98], ebx
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1dc], edi
call fcn.004b8b36
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.004b8b36
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.004b8b36
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 - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc4], edx
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0xd4], edx
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], eax
push edx
mov eax, dword [ebp - 0xd8]
push eax
mov edi, dword [ebp - 0x1cc]
mov eax, 0x50f0c8
call fcn.004b1f44
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], ebx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0xb0]
mov ebx, dword [0x50ed10]
sbb edx, dword [ebp - 0xac]
mov dword [ebp - 0xb8], eax
mov esi, dword [ebp - 0xb8]
mov dword [ebp - 0xb4], edx
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x8c], ecx
mov eax, dword [0x50ed14]
mov dword [ebp - 0x90], esi
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ebx
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x1c0], esi
mov dword [ebp - 0x1bc], edi
call fcn.004b8b36
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 - 0x6c]
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x1b4], edi
call fcn.004b8b36
mov esi, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x1a4], edx
mov edi, dword [ebp - 0x1b4]
mov ebx, dword [ebp - 0x70]
mov dword [ebp - 0x1a8], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x1b0], esi
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x1ac], edi
call fcn.004b8b36
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 - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xbc], edx
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x160]
mov dword [ebp - 0x15c], edx
push dword [0x50f0e4]
mov edi, dword [ebp - 0x1ac]
push dword [0x50f0e0]
call fcn.0048f714
test eax, eax
jle 0x4ab5a9
mov esi, dword [ebp - 0x160]
mov dword [0x50f0e0], esi
mov ecx, dword [ebp - 0x15c]
mov dword [0x50f0e4], ecx
push dword [ebp - 0x15c]
mov eax, 0x50f0d8
push dword [ebp - 0x160]
call fcn.004b1f44
mov edx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov esi, dword [0x50a40c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + esi*4]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ebx
mov byte [eax + 0x220], 1
mov dword [ebp - 4], 0
mov eax, edi
call fcn.004aa5b4
mov ecx, dword [0x50a40c]
mov dword [ebp - 0x2c], eax
mov edx, dword fs:[0x2c]
mov ebx, dword [edx + ecx*4]
mov byte [ebx + 0x220], 0
jmp 0x4ab62b
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 - 0x1b], al
mov dword [ebp - 0x24], ecx
xor esi, esi
xor ebx, ebx
cmp dword [edi + 0xa8], ebx
je 0x4ab6b3
lea eax, [edi + 0xa4]
mov edx, dword [eax]
mov ebx, dword [edx]
cmp byte [ebx + 0x58], 0
jne 0x4ab681
movzx ecx, byte [ebp - 0x1b]
lea edx, [ebx + ecx*4]
mov ecx, dword [edx + 0x64]
cmp ecx, dword [ebx + 0x4c]
jb 0x4ab6b3
lea eax, [edi + 0xa4]
mov dword [ebp - 0x204], eax
mov edx, dword [ebp - 0x204]
inc esi
cmp esi, dword [edx + 4]
jae 0x4ab6b3
mov ecx, dword [eax]
mov ebx, dword [ecx + esi*4]
cmp byte [ebx + 0x58], 0
jne 0x4ab693
movzx ecx, byte [ebp - 0x1b]
lea ecx, [ebx + ecx*4]
mov ecx, dword [ecx + 0x64]
cmp ecx, dword [ebx + 0x4c]
jae 0x4ab693
mov edx, dword [ebp - 0x24]
cmp esi, dword [edx + 4]
jae 0x4ab6bf
mov ecx, ebx
jmp 0x4ab6c1
xor ecx, ecx
movzx edx, byte [ebp - 0x1b]
lea edx, [edi + edx*4]
inc byte [ebp - 0x1b]
mov dword [edx + 0x100], ecx
cmp byte [ebp - 0x1b], 0xe
jb 0x4ab656
mov eax, dword [0x50ed14]
or eax, dword [0x50ed10]
jne 0x4ab702
mov ebx, 0x5031f0
mov ecx, 0x501ec0
mov eax, 0x841
push ebx
push 0x5c
push ecx
push 0xf
call fcn.0048ed78
lea edx, [ebp - 0x158]
push edx
call sub.KERNEL32.DLL_QueryPerformanceCounter
mov esi, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], esi
mov ebx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ebx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [0x50ed10]
sub eax, dword [ebp - 0xa8]
sbb edx, dword [ebp - 0xa4]
mov dword [ebp - 0xf8], eax
mov esi, dword [ebp - 0xf8]
mov dword [ebp - 0xf4], edx
mov ebx, dword [ebp - 0xf4]
mov dword [ebp - 0x7c], ebx
mov eax, dword [0x50ed14]
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x19c], edi
call fcn.004b8b36
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 - 0x54]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x194], edi
call fcn.004b8b36
mov esi, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x184], edx
mov edi, dword [ebp - 0x194]
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x190], esi
mov dword [ebp - 0x18c], edi
call fcn.004b8b36
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 - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xec], edx
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0xfc], edx
mov edx, dword [ebp - 0xfc]
mov dword [ebp - 0x100], eax
push edx
mov eax, dword [ebp - 0x100]
push eax
mov edi, dword [ebp - 0x18c]
mov eax, 0x50f0d0
call fcn.004b1f44
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ebx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x130]
mov ebx, dword [0x50ed10]
sbb edx, dword [ebp - 0x12c]
mov dword [ebp - 0x128], eax
mov esi, dword [ebp - 0x128]
mov dword [ebp - 0x124], edx
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x9c], ecx
mov eax, dword [0x50ed14]
mov dword [ebp - 0xa0], esi
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ebx
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x180], esi
mov dword [ebp - 0x17c], edi
call fcn.004b8b36
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 - 0x5c]
mov ebx, dword [ebp - 0x60]
mov dword [ebp - 0x174], edi
call fcn.004b8b36
mov esi, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x164], edx
mov edi, dword [ebp - 0x174]
mov ebx, dword [ebp - 0x60]
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.004b8b36
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 - 0x120], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], edx
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x134], edx
push dword [0x50f0ec]
mov edi, dword [ebp - 0x16c]
push dword [0x50f0e8]
call fcn.0048f714
test eax, eax
jle 0x4ab9d9
mov esi, dword [ebp - 0x138]
mov dword [0x50f0e8], esi
mov ecx, dword [ebp - 0x134]
mov dword [0x50f0ec], ecx
inc dword [0x50f0f0]
mov eax, edi
call fcn.004a9594
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