Function at 0x494659
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x80
mov eax, 0x57539d
call fcn.00561213
mov edi, ecx
mov esi, dword [edi]
mov ebx, dword [ebp + 8]
test esi, esi
je 0x4949ec
cmp dword [esi + 0x58c], 0
je 0x4949ec
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x7c], eax
cmp dword [ebx + 0x10], 0
je 0x49493e
test ecx, ecx
jle 0x49493e
mov eax, dword [esi + 0x240]
or eax, dword [esi + 0x244]
je 0x4946c8
mov eax, ecx
cdq
cmp dword [esi + 0x240], eax
jne 0x49493e
cmp dword [esi + 0x244], edx
jne 0x49493e
push ecx
mov ecx, dword [esi + 0x2d0]
push ebx
push esi
call fcn.004a5d4b
cmp dword [edi + 0x58], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x4946f0
cmp dword [edi + 0x5c], 0
je 0x4946f0
call esi
sub eax, dword [edi + 0x5c]
mov dword [edi + 0x58], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x324]
test eax, eax
je 0x494706
cmp eax, 3
je 0x494706
cmp eax, 0x15
jne 0x49472c
cmp dword [edi + 0x54], 0
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x7c], eax
mov byte [edi + 7], 1
je 0x49472c
call esi
sub eax, dword [edi + 0x54]
and dword [edi + 0x54], 0
cmp eax, 0xfa00
jae 0x49472c
add dword [edi + 0x60], eax
inc dword [edi + 0x64]
cmp dword [edi + 0x130], 0
jne 0x4948be
mov esi, dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
push 0x20
call esi
pop ecx
xor ecx, ecx
test eax, eax
je 0x494754
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x18], ecx
jmp 0x494756
mov eax, ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], ecx
lea ecx, [ebp - 0x84]
push eax
call fcn.00495da6
mov ecx, dword [edi + 0x134]
mov eax, dword [ebp - 0x80]
mov dword [edi + 0x134], eax
mov eax, dword [ebp - 0x84]
mov dword [edi + 0x130], eax
test ecx, ecx
je 0x49478f
call fcn.0040283d
push ecx
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], edi
push ebx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00495caa
add esp, 0xc
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 1
and dword [ebp - 0x18], 0
push 0x2c
mov byte [ebp - 4], 2
call esi
pop ecx
test eax, eax
jne 0x4947c4
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_alloc_void_]
push ecx
mov byte [ebp - 4], 4
mov ecx, eax
push dword [ebp - 0x80]
call fcn.00495e55
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
mov ecx, dword [edi + 0x130]
push eax
add ecx, 8
call fcn.004026df
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040276b
lea ecx, [ebp - 0x28]
call fcn.0040276b
push 0
push 1
lea ecx, [ebp - 0x74]
call fcn.00401d3f
xor eax, eax
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x40], al
mov dword [ebp - 4], 6
lea edx, [ebp - 0x40]
mov dword [ebp - 0x80], eax
mov ecx, ebx
lea eax, [ebp - 0x80]
push eax
call fcn.0053362a
pop ecx
test al, al
je 0x4948ae
mov eax, dword [edi]
cmp dword [eax + 0x590], 0
je 0x4948ae
mov ecx, dword [edi + 0x130]
lea eax, [ebp - 0x8c]
push eax
call fcn.00476444
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00495cd5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
call fcn.00495cfd
mov byte [ebp - 4], 9
lea eax, [ebp - 0x58]
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ecx + 0x590]
call fcn.00444ec1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
call fcn.0040276b
lea ecx, [ebp - 0x58]
call fcn.0040276b
lea ecx, [ebp - 0x18]
call fcn.00407a1d
lea ecx, [ebp - 0x8c]
call fcn.00407a1d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.00401d3f
lea ecx, [edi + 0x118]
cmp ecx, ebx
je 0x4948d2
push 0xffffffffffffffff
push 0
push ebx
call fcn.00401cab
mov eax, dword [edi]
mov ecx, dword [eax + 0x694]
test ecx, ecx
je 0x4948e9
mov eax, dword [ebp + 0xc]
cdq
push edx
push eax
call fcn.004a712b
mov esi, dword [edi]
mov ecx, dword [esi + 0x240]
or ecx, dword [esi + 0x244]
jne 0x4949ec
mov eax, dword [ebp + 0xc]
mov ecx, esi
cdq
push edx
push eax
call fcn.0049edbc
mov ecx, dword [edi]
mov eax, dword [ecx + 0x240]
or eax, dword [ecx + 0x244]
mov byte [ecx + 0x69d], 1
je 0x4949ec
call fcn.004994d2
test eax, eax
je 0x4949ec
mov ecx, dword [edi]
call fcn.0049e550
jmp 0x4949ec
mov esi, dword [esi + 0x2d0]
mov ecx, esi
push 2
call fcn.004a5655
push eax
mov ecx, esi
call fcn.004a5688
xor ebx, ebx
mov esi, eax
cmp dword [ebp + 0xc], 0xfffffffe
jne 0x49499a
mov byte [edi + 8], 1
cmp dword [edi + 0x54], ebx
je 0x494981
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x54]
mov dword [edi + 0x54], ebx
cmp eax, 0xfa00
jae 0x494981
add dword [edi + 0x60], eax
inc dword [edi + 0x64]
test esi, esi
je 0x49499a
mov eax, dword [edi]
push ecx
push dword [edi + 0x110]
mov ecx, dword [eax + 0x2d0]
push eax
call fcn.004a5b71
mov eax, dword [edi]
inc dword [eax + 0x6b8]
mov edx, dword [edi]
mov eax, dword [edx + 0x324]
cmp eax, 0x10
je 0x4949b4
cmp eax, 0x14
jne 0x4949e6
add edx, 0x248
lea ecx, [ebp - 0x70]
call fcn.00532cea
mov dword [ebp - 4], ebx
mov ecx, dword [edi]
push ecx
push eax
mov ecx, dword [ecx + 0x58c]
call fcn.00485ffe
mov ecx, eax
call fcn.004a42f9
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00401d84
mov byte [edi + 0x114], bl
call fcn.005611c2
ret 0xc