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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
push ebx
push esi
call fcn.0047f4f0
cmp eax, 1
jbe 0x4876b9
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x54]
cmp ecx, ebx
je 0x4876b9
call fcn.0054a0f0
test eax, eax
je 0x4876b9
mov ecx, dword [edi + 0x54]
mov eax, 0x2710
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], eax
mov eax, dword [ecx]
lea edx, [esp + 0x70]
push edx
call dword [eax + 0x34]
fld qword [esp + 0x8c]
fadd qword [esp + 0x70]
mov ecx, esi
fmul qword [0x5e7c18]
fstp qword [esp + 0xa8]
fld qword [esp + 0x78]
fadd qword [esp + 0x94]
fmul qword [0x5e7c18]
fstp qword [esp + 0xb0]
call fcn.0054a8e0
cmp eax, ebx
je 0x4876ae
mov ecx, eax
call fcn.00548df0
mov ecx, eax
xor edx, edx
mov dword [esp + 0x2c], ecx
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x4876ae
jmp 0x487484
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edi, dword [eax + 8]
cmp eax, ebx
jne 0x487494
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], ecx
jmp 0x48749b
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
inc edx
cmp edx, eax
mov dword [esp + 0x30], edx
ja 0x4876ae
cmp edi, ebx
je 0x4876a4
mov ecx, edi
call fcn.0054a0f0
test eax, eax
je 0x4876a4
mov edx, dword [edi]
mov eax, 0x2710
mov dword [esp + 0x50], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x38]
mov ecx, edi
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
call dword [edx + 0x34]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
lea eax, [ecx - 0x13b1]
mov dword [esp + 0x20], 0
cmp eax, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
ja case.default.0x48757e
jmp dword [eax*4 + 0x4876c8]
fld qword [esp + 0x70]
fsub qword [esp + 0x38]
fstp qword [esp + 0x14]
jmp case.default.0x48757e
fld qword [esp + 0x8c]
fsub qword [esp + 0x54]
fstp qword [esp + 0x14]
jmp case.default.0x48757e
fld qword [esp + 0x94]
fsub qword [esp + 0x5c]
jmp 0x4875fb
fld qword [esp + 0x78]
fsub qword [esp + 0x40]
jmp 0x4875fb
fld qword [esp + 0x54]
fadd qword [esp + 0x38]
fmul qword [0x5e7c18]
fld qword [esp + 0x40]
fadd qword [esp + 0x5c]
fmul qword [0x5e7c18]
fstp qword [esp + 0xcc]
fld qword [esp + 0xa8]
fsub st(1)
fstp qword [esp + 0x14]
fstp st(0)
fld qword [esp + 0xb0]
fsub qword [esp + 0xcc]
fstp qword [esp + 0x1c]
mov edx, dword [edi]
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call dword [edx + 4]
push 0x28
call fcn.005b449a
add esp, 4
cmp eax, ebx
je 0x48762f
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], ebx
mov esi, eax
jmp 0x487631
xor esi, esi
push 4
mov dword [esi], 3
mov dword [esi + 8], 1
call fcn.005b449a
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 4], ecx
mov dword [eax], edi
fld qword [esp + 0x18]
fchs
fstp qword [esi + 0x10]
fld qword [esp + 0x20]
mov eax, dword [ebp + 0x14]
add esp, 4
fchs
fstp qword [esi + 0x18]
fld qword [esp + 0x24]
fchs
fstp qword [esi + 0x20]
cmp eax, ebx
je 0x48768a
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
push edx
lea ecx, [eax + 0x1a0c]
call fcn.00526d60
jmp 0x48769c
mov ecx, dword [esi + 0xc]
push ecx
call fcn.005b44c3
push esi
call fcn.005b44c3
add esp, 8
cmp dword [ebp + 0x18], ebx
je 0x4876a4
mov dword [ebp + 0x18], ebx
cmp dword [esp + 0x10], ebx
jne 0x487478
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
mov eax, 0xc0000000
pop ebx
mov esp, ebp
pop ebp
ret 0x14