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

Disassembly:
sub esp, 0x70
mov eax, dword [0x4cacfc]
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 0x486520
cmp dword [esp + 0x90], 0
jbe 0x486520
mov ebp, dword [esp + 0x98]
test ebp, ebp
jbe 0x486520
test esi, esi
je 0x486520
test edi, edi
je 0x486520
test ebx, ebx
je 0x486520
push 0x32
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.00487630
push 0x3e800
push 0
push 0x4d1f80
call fcn.00487630
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 [0x4d1d24]
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.004855d0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x486508
call dword [0x4d1d54]
mov dword [esp + 0x10], eax
call dword [0x4d1d54]
cmp dword [esp + 0x10], 0
mov edi, eax
je 0x486508
test edi, edi
je 0x486508
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.00485e70
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.00485e70
push 1
push esi
call dword [0x4d1d58]
add esp, 0x28
test al, al
je 0x486508
push 0x7d000
push esi
call dword [0x4d1d5c]
add esp, 8
test al, al
je 0x486508
push 0x32
push esi
call dword [0x4d1d60]
add esp, 8
test al, al
je 0x486508
push 1
push esi
call dword [0x4d1d64]
add esp, 8
test al, al
je 0x486508
mov ebx, dword [esp + 0x10]
push 0x3e800
push 0x4d1f80
push ebx
call dword [0x4d1d50]
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 0x486478
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push ebx
push esi
mov dword [esp + 0x2c], eax
call dword [0x4d1d68]
add esp, 0xc
test al, al
je 0x486478
cmp dword [ebx + 0x20], 0
jbe 0x486464
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 0x4863b5
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.00485e70
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.00485e70
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.00485f90
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
je 0x486460
cmp eax, 1
jne 0x4863ef
mov eax, dword [esp + 0x64]
mov cx, word [esp + 0x68]
mov dword [ebx], eax
mov word [ebx + 4], cx
jmp 0x4863fe
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 [0x4d1d54]
mov dword [esp + 0x18], eax
test eax, eax
je 0x486474
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
push eax
call dword [0x4d1d50]
mov edx, dword [esp + 0x24]
push 1
push edx
push esi
call dword [0x4d1d4c]
add esp, 0x18
cmp dword [esp + 0x28], 1
jne 0x486452
mov eax, dword [esp + 0x1c]
add ebx, 0xe
push ebx
push eax
call fcn.00486010
add esp, 8
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4d1d6c]
add esp, 4
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x20], edx
jle 0x4862e2
jmp 0x486478
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.00485e70
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.00485e70
push ebx
call dword [0x4d1d6c]
push edi
call dword [0x4d1d6c]
push esi
call dword [0x4d1d70]
add esp, 0x2c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00486dc0
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.00486dc0
add esp, 0x70
ret