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

Disassembly:
sub esp, 0x70
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x78], 0
mov eax, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
mov esi, dword [esp + 0x88]
push edi
mov edi, dword [esp + 0x94]
mov dword [esp + 0x1c], eax
jbe 0x476760
cmp dword [esp + 0x90], 0
jbe 0x476760
mov ebp, dword [esp + 0x98]
test ebp, ebp
jbe 0x476760
test esi, esi
je 0x476760
test edi, edi
je 0x476760
test ebx, ebx
je 0x476760
push 0x32
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.00477820
push 0x3e800
push 0
push 0x4bb4a0
call fcn.00477820
movzx eax, word [esi + 4]
mov edx, dword [esi]
mov ecx, dword [edi]
mov dword [esp + 0x84], edx
movzx edx, word [edi + 4]
mov word [esp + 0x88], ax
mov eax, ecx
mov dword [esp + 0x56], ecx
mov cx, word [edi + 4]
mov dword [esp + 0x8c], eax
movzx eax, word [ebx + 4]
mov word [esp + 0x5a], dx
mov edx, dword [ebx]
mov word [esp + 0x90], cx
mov ecx, edx
mov dword [esp + 0x60], edx
movzx edx, word [ebx + 4]
mov ebx, dword [esi]
mov word [esp + 0x64], ax
movzx eax, word [esi + 4]
mov word [esp + 0x80], dx
movzx edx, word [esi + 4]
mov word [esp + 0x6e], ax
mov eax, dword [0x4bb244]
mov dword [esp + 0x7c], ecx
mov ecx, ebx
push eax
mov dword [esp + 0x6e], ebx
mov dword [esp + 0x78], ecx
mov word [esp + 0x7c], dx
call fcn.00475810
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x476748
call dword [0x4bb274]
mov dword [esp + 0x10], eax
call dword [0x4bb274]
cmp dword [esp + 0x10], 0
mov edi, eax
je 0x476748
test edi, edi
je 0x476748
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x3e]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
movzx ecx, word [esp + 0x4e]
mov dword [eax + 4], edx
mov word [eax + 8], cx
movzx ecx, word [esp + 0x6c]
sub esp, 0xc
mov eax, esp
mov dword [eax], ebp
mov edx, ebx
push edi
mov dword [eax + 4], edx
push esi
mov word [eax + 8], cx
call fcn.004760b0
movzx ecx, word [esp + 0x6c]
mov edx, dword [esp + 0x68]
add esp, 0x14
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], edx
mov edx, dword [esp + 0x9c]
mov word [eax + 8], cx
movzx ecx, word [esp + 0x62]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
push edi
mov dword [eax + 4], ebx
push esi
mov word [eax + 8], cx
call fcn.004760b0
push 1
push esi
call dword [0x4bb278]
add esp, 0x28
test al, al
je 0x476748
push 0x7d000
push esi
call dword [0x4bb27c]
add esp, 8
test al, al
je 0x476748
push 0x32
push esi
call dword [0x4bb280]
add esp, 8
test al, al
je 0x476748
push 1
push esi
call dword [0x4bb284]
add esp, 8
test al, al
je 0x476748
mov ebx, dword [esp + 0x10]
push 0x3e800
push 0x4bb4a0
push ebx
call dword [0x4bb270]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [eax + 0x1d4c0]
cmp eax, ecx
mov dword [esp + 0x24], ecx
jg 0x4766b8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push ebx
push esi
mov dword [esp + 0x2c], eax
call dword [0x4bb288]
add esp, 0xc
test al, al
je 0x4766b8
cmp dword [ebx + 0x20], 0
jbe 0x4766a4
mov eax, dword [ebx + 0x18]
movzx ebx, word [eax + 0x10]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x2c], edx
add ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x14]
cmp eax, 0x7d0
jl 0x4765f5
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x3e]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
movzx ecx, word [esp + 0x4e]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x68]
mov word [eax + 8], cx
movzx ecx, word [esp + 0x6c]
sub esp, 0xc
mov eax, esp
mov dword [eax], ebp
push edi
mov dword [eax + 4], edx
push esi
mov word [eax + 8], cx
call fcn.004760b0
movzx ecx, word [esp + 0x6c]
mov edx, dword [esp + 0x68]
add esp, 0x14
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], edx
mov edx, dword [esp + 0x9c]
mov word [eax + 8], cx
mov ecx, dword [esp + 0x5e]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov dx, word [esp + 0x6e]
push edi
mov dword [eax + 4], ecx
push esi
mov word [eax + 8], dx
call fcn.004760b0
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x74]
push edx
push ebx
call fcn.004761d0
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
je 0x4766a0
cmp eax, 1
jne 0x47662f
mov eax, dword [esp + 0x64]
mov cx, word [esp + 0x68]
mov dword [ebx], eax
mov word [ebx + 4], cx
jmp 0x47663e
mov edx, dword [esp + 0x74]
mov ax, word [esp + 0x78]
mov dword [ebx], edx
mov word [ebx + 4], ax
mov ecx, dword [esp + 0x6c]
mov dx, word [esp + 0x70]
mov dword [ebx + 6], ecx
mov word [ebx + 0xa], dx
call dword [0x4bb274]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4766b4
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
push eax
call dword [0x4bb270]
mov edx, dword [esp + 0x24]
push 1
push edx
push esi
call dword [0x4bb26c]
add esp, 0x18
cmp dword [esp + 0x28], 1
jne 0x476692
mov eax, dword [esp + 0x1c]
add ebx, 0xe
push ebx
push eax
call fcn.00476250
add esp, 8
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4bb28c]
add esp, 4
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x20], edx
jle 0x476522
jmp 0x4766b8
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x3e]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
movzx ecx, word [esp + 0x4e]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x54]
mov word [eax + 8], cx
movzx ecx, word [esp + 0x58]
sub esp, 0xc
mov eax, esp
mov dword [eax], ebp
push edi
mov dword [eax + 4], edx
push esi
mov word [eax + 8], cx
call fcn.004760b0
movzx ecx, word [esp + 0x6c]
mov edx, dword [esp + 0x68]
add esp, 0x14
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], edx
mov edx, dword [esp + 0x9c]
mov word [eax + 8], cx
mov ecx, dword [esp + 0x4a]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov dx, word [esp + 0x5a]
push edi
mov dword [eax + 4], ecx
push esi
mov word [eax + 8], dx
call fcn.004760b0
push ebx
call dword [0x4bb28c]
push edi
call dword [0x4bb28c]
push esi
call dword [0x4bb290]
add esp, 0x2c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004771de
add esp, 0x70
ret
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004771de
add esp, 0x70
ret