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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x49ee96
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 [0x4f5400]
mov edx, dword fs:[0x2c]
mov ebx, dword [edx + ecx*4]
cmp dword [ebx + 0xc00], 0
jne 0x49e3de
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 [0x510564]
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 [0x510560]
jne 0x49e430
mov edx, 0x4d9230
mov ecx, 0x4c2a10
mov eax, 0x853
push edx
push 0x5c
push ecx
push 0xf
call fcn.00468078
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.0048ca74
mov eax, edi
call fcn.0048ca74
call fcn.004a4e58
xor ebx, ebx
cmp dword [edi + 0xa8], ebx
je 0x49e4f1
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 0x49e4bd
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.004a941c
jmp 0x49e4e8
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.004a8980
mov ecx, dword [ebp - 0x24]
inc ebx
cmp ebx, dword [ecx + 4]
jb 0x49e481
mov eax, dword [0x510564]
or eax, dword [0x510560]
jne 0x49e518
mov ebx, 0x4d9230
mov esi, 0x4c2a10
mov eax, 0x853
push ebx
push 0x5c
push esi
push 0xf
call fcn.00468078
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 [0x510560]
mov edx, dword [0x510564]
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.004a8c26
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.004a8c26
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.004a8c26
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, 0x511510
call fcn.004a4e44
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ebx
cmp dword [0x4e97bc], 0
je 0x49e69d
push dword [ebp + 8]
mov eax, edi
call fcn.0049ef98
jmp 0x49e6bc
cmp byte [0x5115c8], 0
je 0x49e6b2
push dword [ebp + 8]
mov eax, edi
call fcn.004a3aa8
jmp 0x49e6bc
push dword [ebp + 8]
mov eax, edi
call fcn.004a39c0
mov dword [ebp - 0x48], edi
mov ecx, 0x49eea0
mov ebx, dword [0x51034c]
mov dword [ebp - 0x44], ecx
cmp dword [0x51034c], 0
je 0x49e6f6
mov edx, dword [ebx + 0x50]
test edx, edx
mov dword [ebp - 0x204], edx
je 0x49e6ef
push edx
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.004a3964
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x49e6d6
call fcn.004a3844
lea ebx, [edi + 0x40]
xor eax, eax
push ebx
call fcn.0048cf34
xor eax, eax
push edi
call fcn.0048cf34
mov ecx, dword [0x510564]
or ecx, dword [0x510560]
jne 0x49e736
mov edx, 0x4d9230
mov ebx, 0x4c2a10
mov eax, 0x853
push edx
push 0x5c
push ebx
push 0xf
call fcn.00468078
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 [0x510560]
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 [0x510564]
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.004a8c26
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.004a8c26
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.004a8c26
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, 0x511518
call fcn.004a4e44
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 [0x510560]
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 [0x510564]
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.004a8c26
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.004a8c26
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.004a8c26
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 [0x511534]
mov edi, dword [ebp - 0x1ac]
push dword [0x511530]
call fcn.00451d54
test eax, eax
jle 0x49ea1f
mov esi, dword [ebp - 0x140]
mov dword [0x511530], esi
mov ecx, dword [ebp - 0x13c]
mov dword [0x511534], ecx
push dword [ebp - 0x13c]
mov eax, 0x511528
push dword [ebp - 0x140]
call fcn.004a4e44
mov edx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov esi, dword [0x4f5400]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + esi*4]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ebx
mov byte [eax + 0xd40], 1
mov dword [ebp - 4], 0
mov eax, edi
call fcn.0049db68
mov ecx, dword [0x4f5400]
mov dword [ebp - 0x2c], eax
mov edx, dword fs:[0x2c]
mov ebx, dword [edx + ecx*4]
mov byte [ebx + 0xd40], 0
jmp 0x49eaa1
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 0x49eb29
lea eax, [edi + 0xa4]
mov edx, dword [eax]
mov ebx, dword [edx]
cmp byte [ebx + 0x58], 0
jne 0x49eaf7
movzx ecx, byte [ebp - 0x1c]
lea edx, [ebx + ecx*4]
mov ecx, dword [edx + 0x64]
cmp ecx, dword [ebx + 0x4c]
jb 0x49eb29
lea eax, [edi + 0xa4]
mov dword [ebp - 0x204], eax
mov edx, dword [ebp - 0x204]
inc esi
cmp esi, dword [edx + 4]
jae 0x49eb29
mov ecx, dword [eax]
mov ebx, dword [ecx + esi*4]
cmp byte [ebx + 0x58], 0
jne 0x49eb09
movzx ecx, byte [ebp - 0x1c]
lea ecx, [ebx + ecx*4]
mov ecx, dword [ecx + 0x64]
cmp ecx, dword [ebx + 0x4c]
jae 0x49eb09
mov edx, dword [ebp - 0x28]
cmp esi, dword [edx + 4]
jae 0x49eb35
mov ecx, ebx
jmp 0x49eb37
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 0x49eacc
mov eax, dword [0x510564]
or eax, dword [0x510560]
jne 0x49eb78
mov ebx, 0x4d9230
mov ecx, 0x4c2a10
mov eax, 0x853
push ebx
push 0x5c
push ecx
push 0xf
call fcn.00468078
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 [0x510560]
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 [0x510564]
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.004a8c26
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.004a8c26
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.004a8c26
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, 0x511520
call fcn.004a4e44
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 [0x510560]
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 [0x510564]
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.004a8c26
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.004a8c26
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.004a8c26
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 [0x51153c]
mov edi, dword [ebp - 0x16c]
push dword [0x511538]
call fcn.00451d54
test eax, eax
jle 0x49ee61
mov esi, dword [ebp - 0x150]
mov dword [0x511538], esi
mov ecx, dword [ebp - 0x14c]
mov dword [0x51153c], ecx
inc dword [0x511540]
mov eax, edi
call fcn.0049cb7c
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