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

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x1b0]
mov eax, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x54]
mov dword [esp + 0x40], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x44], eax
fild qword [esp + 0x40]
and ecx, 0x80000000
mov dword [esp + 0x44], ecx
xor ebx, ebx
mov dword [esp + 0x40], ebx
fild qword [esp + 0x40]
push esi
push edi
fchs
faddp st(1)
fmul qword [edx + 0x10]
call fcn.004fbc66
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], edx
mov edx, dword [ebp + 0x54]
fld qword [edx + 0x18]
lea eax, [esp + 0x48]
push eax
fstp qword [ebp + 0xa0]
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4b32bc
call fcn.004b7d90
mov ecx, dword [0x648b4c]
push ecx
mov ecx, dword [0x648b48]
push ecx
push edx
push eax
call fcn.004fbce0
mov edi, eax
mov esi, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
jmp 0x4b32c4
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov eax, dword [ebp + 0xd0]
cmp dword [eax + 0x18], ebx
jne 0x4b32d9
mov dword [esp + 0x18], 0xffffffff
jmp 0x4b32e5
mov edx, dword [eax + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x18], ecx
cmp esi, dword [ebp + 0x1bc]
ja 0x4b3355
jb 0x4b32f7
cmp edi, dword [ebp + 0x1b8]
ja 0x4b3355
mov edx, dword [ebp + 0x54]
mov eax, dword [edx + 0x50]
cmp eax, ebx
jle 0x4b3309
cmp eax, dword [ebp + 0x1f8]
jle 0x4b3355
mov eax, dword [ebp + 0x1fc]
shl eax, 6
cmp eax, dword [ebp + 0x1f8]
jg 0x4b3419
lea ecx, [esp + 0x24]
push ecx
push ebp
lea edx, [esp + 0x30]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x30], 4
mov dword [esp + 0x2c], 2
call fcn.004b15e0
add dword [ebp + 0x1fc], 1
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
jmp 0x4b3419
lea edx, [esp + 0x2c]
push edx
push ebp
lea edx, [esp + 0x38]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 2
call fcn.004b15e0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4b33ab
call fcn.004b7d90
mov ecx, dword [0x648b4c]
push ecx
mov ecx, dword [0x648b48]
push ecx
push edx
push eax
call fcn.004fbce0
mov edi, eax
mov esi, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
jmp 0x4b33b3
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov edx, dword [ebp + 0x54]
mov eax, dword [edx + 0x4c]
cmp eax, ebx
jle 0x4b33e5
mov ecx, dword [ebp + 0x1b4]
push ecx
mov ecx, dword [ebp + 0x1b0]
cdq
push ecx
push edx
push eax
call fcn.004fbce0
add eax, edi
adc edx, esi
mov dword [ebp + 0x1b8], eax
mov dword [ebp + 0x1bc], edx
jmp 0x4b3409
mov edx, dword [ebp + 0x1d8]
mov eax, dword [ebp + 0x1dc]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
add edx, edi
adc eax, esi
mov dword [ebp + 0x1b8], edx
mov dword [ebp + 0x1bc], eax
mov dword [ebp + 0x1f8], ebx
mov dword [ebp + 0x1fc], 1
cmp dword [esp + 0x18], ebx
jl 0x4b34a9
cmp esi, dword [ebp + 0x1c4]
jb 0x4b34a9
ja 0x4b3435
cmp edi, dword [ebp + 0x1c0]
jbe 0x4b34a9
lea ecx, [esp + 0x34]
push ecx
push ebp
lea edx, [esp + 0x40]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], 3
call fcn.004b15e0
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4b3485
call fcn.004b7d90
mov ecx, dword [0x648b4c]
push ecx
mov ecx, dword [0x648b48]
push ecx
push edx
push eax
call fcn.004fbce0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov edx, dword [ebp + 0x1e0]
mov eax, dword [ebp + 0x1e4]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
add edx, edi
adc eax, esi
mov dword [ebp + 0x1c0], edx
mov dword [ebp + 0x1c4], eax
cmp esi, dword [ebp + 0x1cc]
lea ebx, [ebp + 0x1c8]
jb 0x4b36fc
ja 0x4b34c5
cmp edi, dword [ebx]
jbe 0x4b36fc
cmp dword [ebp + 0x68], 0x10
jle 0x4b3534
call fcn.004b7d90
mov ecx, dword [ebp + 0x1f0]
mov esi, dword [ebp + 0x1f4]
sub eax, ecx
sbb edx, esi
mov dword [esp + 0x1c], edx
jne 0x4b34ed
cmp eax, 0x989680
jbe 0x4b3534
mov ecx, dword [ebp + 0x208]
mov byte [ebp + 0x5e], 1
lea edx, [esp + 0x54]
mov byte [ebp + 0x60], 1
mov dword [ebp + 0x64], 0x1e
mov edi, dword [ecx + 4]
push edx
mov eax, ebp
mov byte [esp + 0x58], 1
call fcn.004b3c40
mov esi, ebp
call fcn.004b1580
mov edx, dword [0x648b40]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
mov eax, dword [ebp + 0x7c]
xor edi, edi
cmp dword [eax + 0x24], edi
jle 0x4b360a
mov eax, dword [ebp + 0xb0]
cmp eax, 0x7fffffff
jne 0x4b3553
xor ecx, ecx
jmp 0x4b3556
lea ecx, [eax + 1]
mov edx, dword [ebp + 0xa8]
cmp ecx, edx
lea eax, [ebp + 0xa8]
je 0x4b358c
mov ecx, dword [ebp + 0xb0]
mov esi, dword [ebp + 0x80]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ecx
call fcn.004b9a70
add dword [ebp + 0x180], eax
add dword [ebp + 0x140], eax
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x1b0]
mov eax, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x54]
mov dword [esp + 0x18], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
and ecx, 0x80000000
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
fild qword [esp + 0x18]
fchs
faddp st(1)
fmul qword [edx + 0x10]
call fcn.004fbc66
mov ecx, dword [ebp + 0x208]
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], edx
mov edx, dword [ebp + 0x54]
fld qword [edx + 0x18]
lea eax, [esp + 0x17]
fstp qword [ebp + 0xa0]
mov edi, dword [ecx + 4]
push eax
mov eax, ebp
mov byte [esp + 0x1b], 1
call fcn.004b3c40
jmp 0x4b3629
lea edx, [esp + 0x40]
push edx
push ebp
lea edx, [esp + 0x4c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], 1
call fcn.004b15e0
mov edx, dword [ebp + 0x70]
mov eax, dword [ebp + 0x74]
add dword [ebp + 0x68], 1
mov ecx, dword [ebp + 0x68]
lea eax, [edx + eax*4]
imul eax, ecx
mov ecx, dword [ebp + 0x1b4]
push ecx
mov ecx, dword [ebp + 0x1b0]
add eax, 0x2710
cdq
push ecx
push edx
push eax
call fcn.004fbce0
mov ecx, dword [ebp + 0x1b4]
mov dword [ebp + 0x1e8], eax
mov eax, dword [ebp + 0x68]
imul eax, eax, 0x186a0
push ecx
mov ecx, dword [ebp + 0x1b0]
mov dword [ebp + 0x1ec], edx
cdq
push ecx
push edx
push eax
call fcn.004fbce0
mov ecx, dword [ebp + 0x1e8]
cmp dword [ebp + 0x1ec], edx
ja 0x4b36c1
jb 0x4b3696
cmp ecx, eax
jae 0x4b36c1
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x1b4]
imul eax, eax, 0x186a0
push ecx
mov ecx, dword [ebp + 0x1b0]
cdq
push ecx
push edx
push eax
call fcn.004fbce0
mov dword [ebp + 0x1e8], eax
mov dword [ebp + 0x1ec], edx
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4b36eb
call fcn.004b7d90
mov ecx, dword [0x648b4c]
push ecx
mov ecx, dword [0x648b48]
push ecx
push edx
push eax
call fcn.004fbce0
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov edx, dword [ebp + 0x1e8]
mov eax, dword [ebp + 0x1ec]
add dword [ebx], edx
adc dword [ebx + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4