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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56506f
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push esi
push edi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0x880]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
and dword [esp + 0x18], 0
cmp dword [edi + 0x238], 0
je 0x491d99
mov ecx, edi
call fcn.0049ca57
test al, al
jne 0x491d99
xor ebx, ebx
inc ebx
cmp dword [esi + 0x54], 0
jne 0x491cd1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
cmove eax, ebx
mov dword [esi + 0x54], eax
and dword [esp + 0x54], 0
lea edi, [esi + 0x208]
push 0x10
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x60], 0xf
mov byte [esp + 0x4c], 0
call fcn.00401ce0
and dword [esp + 0x888], 0
mov ecx, dword [esi + 0x2e4]
cmp ecx, 0xd
jne 0x491d18
mov eax, dword [esi + 0x51c]
mov al, byte [eax + 0x10e]
test al, al
jne 0x491d2b
mov al, byte [esi + 4]
test al, al
jne 0x491d2b
mov byte [esp + 0x18], al
cmp byte [esi + 0x1f8], al
je 0x491d2f
mov byte [esp + 0x18], bl
push ecx
push dword [esp + 0x1c]
mov ecx, dword [esi + 0x51c]
lea eax, [esp + 0x4c]
push eax
call fcn.0047b4ff
mov eax, dword [esi + 0x2e4]
cmp eax, 0x10
je 0x491d54
cmp eax, 0x14
jne 0x491d86
mov edx, edi
lea ecx, [esp + 0x5c]
call fcn.005200cb
push ecx
mov byte [esp + 0x88c], bl
mov ecx, dword [esi + 0x51c]
push eax
call fcn.0047dc4f
mov ecx, eax
call fcn.0049904a
push 0
push ebx
lea ecx, [esp + 0x64]
call fcn.00401c9b
push 0
push ebx
lea ecx, [esp + 0x4c]
call fcn.00401c56
xor eax, eax
jmp 0x491eff
push dword [edi]
mov ecx, dword [esi + 0x608]
call fcn.0049aec7
xor ebx, ebx
inc ebx
test eax, eax
je 0x491db0
mov byte [eax + 0x24], bl
push 0
push 0x800
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x28]
call fcn.0051ef51
push 2
pop eax
mov dword [esp + 0x888], eax
cmp dword [esi + 0x2d8], ebx
jne 0x491ed8
push 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x32
push eax
lea ecx, [esp + 0x28]
call fcn.0051eb7a
push 0
push 0x10
lea eax, [esi + 0x208]
push eax
lea ecx, [esp + 0x28]
call fcn.0051eb7a
mov eax, dword [esi + 0x200]
lea ecx, [esp + 0x1c]
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.0051eb7a
mov ecx, dword [esi + 0x520]
call fcn.0044d5a6
push 0
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x20]
push 4
lea eax, [esp + 0x20]
push eax
call fcn.0051eb7a
mov al, byte [esi + 0x1a0]
lea ecx, [esp + 0x1c]
push 0
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0051eb7a
mov eax, dword [esi + 0x520]
lea ecx, [esp + 0x1c]
push 0
push ebx
mov al, byte [eax + 0x1c]
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push eax
call fcn.0051eb7a
mov al, byte [esi + 0x13c]
lea ecx, [esp + 0x1c]
push 0
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0051eb7a
mov ecx, esi
call fcn.00495184
push 0
mov byte [esp + 0x18], al
lea ecx, [esp + 0x20]
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.0051eb7a
mov eax, dword [esi + 0x520]
lea ecx, [esp + 0x1c]
push 0
push 2
movzx eax, word [eax + 0x240]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
call fcn.0051eb7a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esp + 0x34]
mov dword [edi + 0x220], eax
lea eax, [esp + 0x78]
push eax
push ecx
push edi
mov ecx, esi
call fcn.00494f75
xor ecx, ecx
test al, al
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x880]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x868]
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret 4