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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52b800
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x53a090]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x53a090]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x30]
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x24], eax
test esi, esi
je 0x487ec2
mov cl, byte [edi]
cmp cl, 0x2b
je 0x487ebb
cmp cl, 0x2d
jne 0x487ec2
mov ebx, 1
jmp 0x487ec4
xor ebx, ebx
mov eax, dword [eax + 0x14]
and eax, 0x3000
cmp eax, 0x3000
je 0x487eda
mov edx, 0x43c200
jmp 0x487efc
lea eax, [ebx + 2]
mov edx, 0x43c204
cmp eax, esi
ja 0x487efc
cmp byte [edi + ebx], 0x30
jne 0x487efc
mov cl, byte [edi + ebx + 1]
cmp cl, 0x78
je 0x487efa
cmp cl, 0x58
jne 0x487efc
mov ebx, eax
push edx
push edi
call fcn.00510ef0
mov dword [esp + 0x1c], eax
mov eax, 0x2e
mov word [esp + 0x18], ax
call fcn.00510d51
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00510ef0
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push eax
call fcn.0046fc60
push eax
mov dword [esp + 0x7c], 0
call fcn.00488e00
mov dword [esp + 0x7c], 0xffffffff
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x487f74
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x487f74
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x1c]
push 0x30
mov eax, dword [ecx]
call dword [eax + 0x30]
movzx eax, ax
mov dword [esp + 0x20], eax
xor eax, eax
push eax
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.004889e0
mov dword [esp + 0x78], 1
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x487fbf
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x1c]
push eax
mov edx, dword [ecx]
lea eax, [esi + edi]
push eax
push edi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
call fcn.0046fc60
push eax
mov byte [esp + 0x7c], 2
call fcn.004894b0
mov byte [esp + 0x7c], 1
mov ecx, dword [esp + 0x30]
add esp, 4
mov edi, eax
test ecx, ecx
je 0x48800a
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x48800a
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call fcn.004887b0
mov byte [esp + 0x78], 3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x20]
movzx eax, ax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
cmp eax, esi
jne 0x488042
mov eax, dword [ebp + 0x24]
push eax
lea esi, [ecx + eax]
jmp 0x488092
push dword [ebp + 0x2c]
mov esi, dword [ebp + 0x24]
push ecx
lea ecx, [esp + 0x44]
add esi, eax
call fcn.004879c0
push dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
push dword [ebp + 0x28]
inc eax
push eax
lea ecx, [esp + 0x44]
call fcn.004879c0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp dword [esp + 0x4c], 8
movzx edx, ax
mov eax, dword [esp + 0x38]
jae 0x488083
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x28]
push dword [esp + 0x20]
mov word [eax + ecx*2], dx
push dword [ebp + 0x24]
push ecx
lea ecx, [esp + 0x44]
call fcn.004879c0
cmp dword [esp + 0x64], 0x10
mov edi, dword [esp + 0x50]
jae 0x4880ab
lea edi, [esp + 0x50]
mov al, byte [edi]
cmp al, 0x7f
je 0x4880e3
test al, al
jle 0x4880e3
movsx ecx, al
mov eax, esi
sub eax, ebx
cmp ecx, eax
jae 0x4880e3
push dword [esp + 0x1c]
sub esi, ecx
push 1
push esi
lea ecx, [esp + 0x44]
call fcn.004879c0
cmp byte [edi + 1], 0
lea eax, [edi + 1]
jle 0x4880dd
mov edi, eax
mov al, byte [edi]
cmp al, 0x7f
jne 0x4880b1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
cmp dword [eax + 0x24], 0
mov dword [esp + 0x2c], ecx
jl 0x488108
jg 0x4880fd
cmp dword [eax + 0x20], 0
jbe 0x488108
mov esi, dword [eax + 0x20]
cmp esi, ecx
jbe 0x488108
sub esi, ecx
jmp 0x48810a
xor esi, esi
mov eax, dword [eax + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x4881b1
cmp eax, 0x100
je 0x488164
mov edi, dword [ebp + 8]
push esi
push dword [ebp + 0x1c]
lea eax, [esp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.00488740
mov ecx, eax
add esp, 0x18
mov eax, dword [ecx]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 4]
xor esi, esi
cmp dword [esp + 0x4c], 8
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x38]
jae 0x48815b
lea eax, [esp + 0x38]
push ebx
push eax
push dword [ecx + 4]
push dword [ecx]
jmp 0x4881cb
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x488173
lea eax, [esp + 0x38]
mov edi, dword [ebp + 8]
push ebx
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x20]
push dword [ebp + 0x10]
push eax
push edi
call fcn.004886c0
mov ecx, eax
push esi
mov eax, dword [ecx]
push dword [ebp + 0x1c]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 0x14], eax
push dword [ecx + 4]
lea eax, [esp + 0x38]
push dword [ecx]
push eax
push edi
call fcn.00488740
add esp, 0x30
xor esi, esi
jmp 0x4881d9
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4881c0
lea eax, [esp + 0x38]
mov edi, dword [ebp + 8]
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [esp + 0x24]
push eax
push edi
call fcn.004886c0
add esp, 0x18
cmp dword [esp + 0x4c], 8
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x14], edx
jae 0x4881f3
lea eax, [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
sub eax, ebx
push eax
mov eax, dword [esp + 0x18]
lea eax, [eax + ebx*2]
push eax
push edx
push ecx
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.004886c0
mov ecx, dword [eax]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x4c]
push esi
push dword [ebp + 0x1c]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 4]
push eax
push ecx
push ebx
push edi
mov dword [ebp + 0x14], eax
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
call fcn.00488740
add esp, 0x30
cmp dword [esp + 0x64], 0x10
jb 0x488257
push dword [esp + 0x50]
call fcn.00510ee0
add esp, 4
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jb 0x48827f
push dword [esp + 0x38]
call fcn.00510ee0
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret