Function at 0x487100
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x5d9184]
push ebx
mov ebx, edx
mov edx, ecx
mov dword [esp + 0x10], edx
push esi
push edi
cmp eax, 5
jl 0x487127
cmp eax, 7
jle 0x487666
mov esi, dword [ebx*4 + 0x20a514c]
mov dword [esp + 0x14], esi
mov al, byte [esi + 0x149]
cmp al, 0x2d
jb 0x487144
cmp al, 0x32
jbe 0x487666
movzx edi, byte [edx + 5]
movzx eax, byte [edx + 6]
shl edi, 8
or edi, eax
mov dword [esp + 0x2c], edi
test ebx, ebx
js 0x487666
cmp ebx, 0x1194
jge 0x487666
cmp edi, 0x1194
jae 0x487666
mov ecx, dword [edi*4 + 0x20a514c]
mov dword [esp + 0x24], ecx
cmp dword [ecx + 4], 3
jne 0x487651
movzx eax, word [ecx + 0x78]
cmp eax, 1
je 0x48719c
cmp eax, 6
jne 0x487651
cmp byte [ecx + 0xa], 0
jg 0x487651
cmp byte [ecx + 0x9c0], 0
jne 0x487651
test byte [ecx + 0x3e4], 1
je 0x487666
mov esi, dword [esi + 0x290]
mov dword [esp + 0x20], esi
test esi, esi
je 0x487635
mov edi, dword [ecx + 0x290]
test edi, edi
je 0x487635
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x2a0], 0x80
je 0x487218
cmp dword [ecx + 0x2a0], 0x80
je 0x487218
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x45104c1
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [eax + 0x384], 3
jbe 0x48723d
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x65104c1
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ecx + 0x384], 3
ja 0x487221
xor eax, eax
mov dword [esp + 0x31], eax
mov word [esp + 0x35], ax
movzx eax, byte [edx + 4]
mov byte [esp + 0x34], al
movzx eax, byte [edx + 3]
mov byte [esp + 0x33], al
mov al, byte [edx + 5]
mov byte [esp + 0x36], al
mov al, byte [edx + 6]
mov byte [esp + 0x37], al
mov eax, dword [esp + 0x14]
mov word [esp + 0x30], 0x8c1
mov byte [esp + 0x32], 0xe6
cmp dword [eax + 0x2a0], 0x80
jne 0x48761c
cmp dword [ecx + 0x2a0], 0x80
jne 0x48761c
test eax, eax
je 0x4872c1
mov eax, dword [esi + 0x71c]
test eax, eax
jne 0x4872af
mov eax, dword [esi]
push dword [edi]
push eax
call fcn.0051bf90
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jmp 0x4872c9
mov dword [esp + 0x10], 0
mov al, byte [edx + 4]
cmp al, 1
jne 0x487513
mov cl, byte [edx + 3]
cmp cl, al
jne 0x4874bb
movzx eax, byte [edi + 0x2d]
cmp eax, dword [0xbda940]
jge 0x487304
push 8
lea eax, [esp + 0x34]
mov byte [esp + 0x39], 0x1d
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x71c]
test eax, eax
je 0x487383
cmp eax, dword [edi]
jne 0x487383
push eax
call fcn.0051c030
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x487324
xor ecx, ecx
jmp 0x487357
lea esi, [eax + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x18]
lock inc dword [eax]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0x20]
sub ecx, dword [edx + 0x1c]
sar ecx, 2
mov dword [esp + 0x1c], ecx
lock dec dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [0xbda944]
mov edx, 5
cmp eax, edx
cmovg eax, edx
cmp ecx, eax
jl 0x487383
push 8
lea eax, [esp + 0x34]
mov byte [esp + 0x39], 0x1e
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5d9198]
mov ecx, dword [0x5d919c]
mov dword [esp + 0x38], eax
lea eax, [esi + 4]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x40], 0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4873c2
test dl, dl
je 0x4873be
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4873c2
add eax, 2
add ecx, 2
test dl, dl
jne 0x4873a2
xor eax, eax
jmp 0x4873c7
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4873e4
push 8
lea eax, [esp + 0x34]
mov byte [esp + 0x39], 0x17
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x71c], 0
jne 0x4873cb
cmp byte [esp + 0x10], 2
jne 0x48740d
push 8
lea eax, [esp + 0x34]
mov byte [esp + 0x39], 0x16
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x71c]
test eax, eax
je 0x487434
cmp dword [edi], eax
je 0x487434
push 8
lea eax, [esp + 0x34]
mov byte [esp + 0x39], 0x1b
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
mov al, byte [edx + 4]
cmp al, 2
jne 0x487585
cmp byte [edx + 3], 1
jne 0x487585
mov eax, dword [ebx*4 + 0x20a514c]
mov eax, dword [eax + 0x290]
test eax, eax
je 0x487666
mov eax, dword [eax]
xorps xmm0, xmm0
movups xmmword [esp + 0x45], xmm0
mov ecx, 0xffff
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x71c]
mov edx, 0x14
mov word [esp + 0x4a], cx
lea ecx, [esp + 0x44]
mov word [esp + 0x55], 0
mov byte [esp + 0x57], 0
mov word [esp + 0x44], 0x14c1
mov byte [esp + 0x46], 0xe6
mov word [esp + 0x48], bx
mov byte [esp + 0x4c], 1
mov dword [esp + 0x54], eax
call fcn.00478f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 2
jne 0x48743b
cmp dword [esi + 0x720], 0
jne 0x4874fa
cmp dword [edi + 0x720], 0
jne 0x4874fa
cmp byte [esp + 0x10], 1
jne 0x48743b
push 8
lea eax, [esp + 0x34]
mov byte [esp + 0x39], 0x15
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
lea eax, [esp + 0x34]
mov byte [esp + 0x39], 0x18
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 2
jne 0x487585
mov al, byte [edx + 3]
cmp al, 1
jne 0x487544
cmp dword [esi + 0x71c], 0
jne 0x487443
push 8
lea eax, [esp + 0x34]
mov byte [esp + 0x39], 0x19
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 2
jne 0x487443
mov eax, dword [esi + 0x720]
test eax, eax
je 0x48752b
mov ecx, dword [edi + 0x720]
test ecx, ecx
je 0x48752b
cmp eax, dword [edi]
jne 0x48756c
cmp dword [esi], ecx
je 0x487443
push 8
lea eax, [esp + 0x34]
mov byte [esp + 0x39], 0x1c
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [edi + 0x384]
and eax, 0xffff0381
or eax, 0x381
mov dword [edi + 0x384], eax
call esi
mov dword [edi + 0x388], eax
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x384]
and eax, 0xffff0381
or eax, 0x381
mov dword [edi + 0x384], eax
call esi
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x388], eax
xor eax, eax
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
movzx eax, byte [ecx + 4]
mov byte [esp + 0x28], al
movzx eax, byte [ecx + 3]
mov byte [esp + 0x27], al
lea eax, [esp + 0x24]
push 7
push eax
push dword [esp + 0x34]
mov byte [esp + 0x36], bl
shr ebx, 8
mov word [esp + 0x30], 0x7c1
mov byte [esp + 0x32], 0xe5
mov byte [esp + 0x35], bl
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
lea eax, [esp + 0x34]
mov byte [esp + 0x39], 0x11
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x55104c1
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x35104c1
push eax
push ebx
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret