Function at 0x487950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4f1e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
mov eax, dword [0x54a2b0]
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xe4]
add ecx, eax
cmp ecx, 5
push esi
push edi
mov dword [esp + 0x10], ecx
jle 0x4879a2
mov dword [esp + 0x10], 5
mov ecx, dword [esp + 0x10]
xor ebx, ebx
cmp eax, ebx
jge 0x4879aa
xor eax, eax
inc eax
inc ecx
cmp eax, ecx
mov dword [esp + 0x14], eax
jge 0x487b6f
mov dword [esp + 0x18], ebx
jmp 0x4879c2
mov eax, dword [esp + 0x14]
push eax
lea edx, [esp + 0x78]
push 0x5088a8
push edx
call fcn.004c2e53
lea eax, [esp + 0x80]
add esp, 0xc
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4879f0
sub eax, esi
push eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x60]
call fcn.00401eb0
mov edx, dword [ebp]
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
mov dword [esp + 0xe8], ebx
call dword [edx + 0x60]
mov esi, eax
mov edx, dword [esi]
push 0xff
mov ecx, esi
call dword [edx + 0x58]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x34]
push 0x20
mov dword [esi + 0x68], ebx
call fcn.004c14e8
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0xe4], 1
je 0x487a5e
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00412800
jmp 0x487a60
xor eax, eax
mov ecx, dword [eax + 0xc]
or ecx, 1
push 1
mov dword [eax + 0xc], ecx
push eax
mov ecx, esi
mov byte [esp + 0xec], bl
call fcn.004066a0
push 0x3c
call fcn.004c14e8
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0xe4], 2
je 0x487aac
push 0x258
push 0x3f800000
push ebx
push ebx
push ebx
mov ecx, eax
call fcn.004238b0
mov edi, eax
jmp 0x487aae
xor edi, edi
push 1
push edi
mov ecx, esi
mov byte [esp + 0xec], bl
call fcn.004066a0
cmp dword [esp + 0xf4], ebx
je 0x487b1a
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x10]
jne 0x487b1a
mov eax, dword [edi + 0xc]
or eax, 1
push 0x1c
mov dword [edi + 0xc], eax
call fcn.004c14e8
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0xe4], 3
je 0x487b07
mov ecx, dword [esp + 0xf4]
push ecx
push ebp
mov ecx, eax
call fcn.004146f0
jmp 0x487b09
xor eax, eax
push 1
push eax
mov ecx, esi
mov byte [esp + 0xec], bl
call fcn.004066a0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x70]
add ecx, 0x12c
cmp eax, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0xe4], 0xffffffff
jb 0x487b49
mov edx, dword [esp + 0x5c]
push edx
call fcn.004c2c15
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
inc eax
cmp ecx, eax
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov dword [esp + 0x14], ecx
jl 0x4879be
push 5
mov esi, 0xf
push 0x5088b0
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00401eb0
mov edi, 0x10
push edi
push 0x5088b8
lea ecx, [esp + 0x44]
mov dword [esp + 0xec], 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00401eb0
push ebx
push 0x80
push 0xff
mov byte [esp + 0xf0], 5
call fcn.00483e50
mov ecx, eax
call fcn.00483b00
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00409d30
mov ecx, eax
call fcn.0040ac80
mov ecx, eax
call fcn.00409790
cmp dword [esp + 0x54], edi
jb 0x487c0b
mov edx, dword [esp + 0x40]
push edx
call fcn.004c2c15
add esp, 4
cmp dword [esp + 0x38], edi
pop edi
mov dword [esp + 0x50], esi
pop esi
pop ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
pop ebx
jb 0x487c2e
mov eax, dword [esp + 0x14]
push eax
call fcn.004c2c15
add esp, 4
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc8]
call fcn.004c2e45
add esp, 0xd8
ret 0xc