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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor edx, edx
mov ecx, dword [esi + 0x128]
push edi
lea eax, [esi + 0x128]
cmp ecx, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edx
jne 0x478130
mov ecx, dword [esi + 0x11c]
cmp ecx, 3
je 0x478130
cmp ecx, 2
je 0x478130
mov ebx, eax
mov dword [eax], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edx
mov eax, dword [esi + 0x18c]
mov byte [ebp - 4], 1
cmp eax, edx
jne 0x477e83
mov ecx, dword [esi + 0x15c]
cmp ecx, 0x80000
jbe 0x477e83
mov eax, dword [esi + 0x158]
sub eax, ecx
add ecx, ecx
cmp eax, ecx
jae 0x477e83
mov ecx, esi
call fcn.00477d50
mov eax, dword [esi + 0x158]
mov ecx, dword [esi + 0x15c]
sub eax, ecx
mov edi, eax
je 0x47812a
mov eax, dword [esi + 0x20]
test eax, eax
jbe 0x477ee6
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esi + 0x120]
test eax, eax
jne 0x477eb8
mov dword [esi + 0x120], ecx
mov edx, dword [esi + 0x120]
mov eax, ecx
sub eax, edx
mov edx, dword [esi + 0x20]
imul edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
cmp edi, edx
jb 0x477ed8
mov edi, edx
test edi, edi
je 0x47812a
mov dword [esi + 0x120], ecx
lea ebx, [esi + 0x14c]
mov ecx, ebx
call fcn.00464560
mov edx, dword [esi]
push edi
push eax
mov ecx, esi
call dword [edx + 0x14]
mov edi, eax
test edi, edi
mov dword [ebp - 0x1c], edi
jg 0x477f1f
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x134]
mov eax, dword [esi + 0x118]
add ecx, edi
test eax, eax
mov dword [esi + 0x134], ecx
je 0x477fc2
mov eax, dword [0x532934]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea ecx, [edi + edi + 0x400]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x14]
call fcn.004dad23
push 0
lea ecx, [ebp - 0x14]
call fcn.004dacfb
xor edi, edi
cmp edi, dword [ebp - 0x1c]
jge 0x477f98
mov ecx, ebx
call fcn.00464560
xor edx, edx
mov dl, byte [eax + edi]
lea eax, [ebp - 0x18]
push edx
push str._02x
push eax
call fcn.004d383a
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004dac94
inc edi
jmp 0x477f66
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0xa0]
push edx
call fcn.0045bf50
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004da87c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004da87c
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x10]
mov eax, dword [esi + 0x15c]
add ecx, edi
mov dword [ebp - 0x1c], eax
push ecx
mov ecx, ebx
call fcn.00464640
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
mov edx, dword [esi + 0x15c]
cmp eax, ecx
mov dword [ebp - 0x14], edx
jne 0x478022
push 0
mov ecx, ebx
mov dword [esi + 0x120], 0
call fcn.00464590
mov eax, dword [esi + 0x18c]
test eax, eax
je 0x478071
push 0x10000
mov ecx, ebx
call fcn.004645c0
mov ecx, esi
call fcn.004785c0
mov ecx, eax
call fcn.00478300
mov eax, dword [esi + 0x18c]
test eax, eax
je 0x478071
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, dword [esi + 0x18c]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x18c]
mov ebx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
push ebx
push edi
mov edi, dword [eax + 8]
mov edx, dword [ecx]
xor ebx, ebx
cmp edi, esi
sete bl
push ebx
call dword [edx]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x13c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x140]
test eax, eax
je 0x478058
mov eax, dword [esi + 0x13c]
mov eax, dword [eax]
add eax, 8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x34], edx
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x478058
mov eax, dword [ebp - 0x14]
cmp edi, eax
ja 0x478058
mov edx, ebx
sub edx, edi
cmp eax, ebx
jb 0x4780bb
mov eax, ebx
cmp dword [ebp - 0x1c], edi
jbe 0x4780c3
mov edi, dword [ebp - 0x1c]
sub eax, edi
push 0
push eax
mov eax, dword [ebp - 0x34]
push edx
push eax
push ecx
push 1
mov ecx, esi
call fcn.004778d0
cmp ebx, dword [ebp - 0x14]
ja 0x478058
mov ecx, dword [esi + 0x13c]
mov eax, dword [ecx]
push eax
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
call fcn.004dae3e
mov eax, dword [esi + 0x140]
add esp, 4
dec eax
mov dword [esi + 0x140], eax
jmp 0x478080
mov dword [ebx], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret