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

Disassembly:
sub esp, 0x140
push ebx
mov ebx, ecx
push esi
mov dword [esp + 0xa8], ebx
mov esi, dword [ebx + 0x28c]
test esi, esi
je 0x58733c
push edi
mov ecx, 0x72b998
call fcn.00482200
mov eax, dword [ebx + 0x1ec]
mov edi, dword [0x72b9a0]
mov dword [esp + 0x40], edi
mov ecx, dword [eax + 0x10]
add ecx, 0x24
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x318]
mov ecx, dword [ecx + 8]
test eax, eax
mov dword [esp + 0x2c], ecx
jne 0x586d89
push 0
call fcn.00476630
mov edx, dword [eax]
push 1
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 4]
fld dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 8]
fchs
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fchs
fstp dword [esp + 0x18]
mov dword [esp + 0x1c], edx
fld dword [esp + 0x1c]
fchs
fstp dword [esp + 0x1c]
call fcn.00476630
mov ecx, dword [eax]
add esp, 8
fld dword [esp + 0x24]
fmul dword [esp + 0xc]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
fstp dword [esp + 0xc]
fld dword [esp + 0x28]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x2c]
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
mov ecx, dword [ebx + 0x1ec]
mov eax, dword [ebx + 0x268]
test eax, eax
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x84], 0
mov dword [esp + 0x68], edx
jle 0x587331
add edi, 0x30
push ebp
add esi, 0x10
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x586ddf
lea eax, [esp + 0x10]
lea ebp, [esi + 0x34]
push eax
push 0
mov ecx, ebp
call fcn.00478290
lea ecx, [esp + 0x1c]
push ecx
push 1
mov ecx, ebp
call fcn.00478290
fld dword [esi + 0x78]
fmul dword [0x5a83e8]
mov eax, dword [ebx + 0x31c]
fld dword [esp + 0x1c]
test eax, eax
fmul st(1)
jne 0x586fff
fld st(1)
fmul dword [esp + 0x20]
fstp dword [esp + 0x13c]
fxch st(1)
fmul dword [esp + 0x24]
fstp dword [esp + 0x140]
fld dword [esi + 0x74]
fmul dword [0x5a83e8]
fld dword [esp + 0x10]
fmul st(1)
fld dword [esp + 0x14]
fmul st(2)
fstp dword [esp + 0xf4]
fld dword [esp + 0x18]
fmul st(2)
fstp dword [esp + 0xf8]
fld dword [esi - 8]
fsub st(1)
fstp st(2)
fstp st(0)
fld dword [esi - 4]
fsub dword [esp + 0xf4]
fstp dword [esp + 0xdc]
fld dword [esi]
fsub dword [esp + 0xf8]
fstp dword [esp + 0xe0]
fsub st(1)
fstp dword [esp + 0x38]
mov eax, dword [esp + 0x38]
fstp st(0)
fld dword [esp + 0xdc]
fsub dword [esp + 0x13c]
fstp dword [esp + 0x3c]
fld dword [esp + 0xe0]
fsub dword [esp + 0x140]
mov ecx, dword [esp + 0x3c]
fstp dword [esp + 0x40]
fld dword [esi + 0x74]
fld dword [esp + 0x10]
fmul st(1)
fld dword [esp + 0x14]
fmul st(2)
mov edx, dword [esp + 0x40]
fstp dword [esp + 0xc4]
fld dword [esp + 0x18]
fmul st(2)
fstp dword [esp + 0xc8]
fadd dword [esp + 0x38]
fstp dword [esp + 0x7c]
mov ebx, dword [esp + 0x7c]
fstp st(0)
fld dword [esp + 0xc4]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x80]
fld dword [esp + 0xc8]
fadd dword [esp + 0x40]
mov ebp, dword [esp + 0x80]
mov dword [esp + 0xb8], ebp
fstp dword [esp + 0x84]
fld dword [esi + 0x78]
fld dword [esp + 0x1c]
fmul st(1)
fld st(1)
fmul dword [esp + 0x20]
mov ebp, dword [esp + 0x84]
mov dword [esp + 0xbc], ebp
fstp dword [esp + 0x124]
fxch st(1)
fmul dword [esp + 0x24]
fstp dword [esp + 0x128]
fadd dword [esp + 0x7c]
fstp dword [esp + 0x8c]
fld dword [esp + 0x124]
fadd dword [esp + 0x80]
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x70], ebp
fstp dword [esp + 0x90]
fld dword [esp + 0x128]
fadd dword [esp + 0x84]
fstp dword [esp + 0x94]
fld dword [esi + 0x78]
fld dword [esp + 0x1c]
fmul st(1)
fld st(1)
fmul dword [esp + 0x20]
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x74], ebp
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x78], ebp
fstp dword [esp + 0x10c]
fxch st(1)
fmul dword [esp + 0x24]
fstp dword [esp + 0x110]
fadd dword [esp + 0x38]
fstp dword [esp + 0x98]
fld dword [esp + 0x10c]
fadd dword [esp + 0x3c]
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x28], ebp
fstp dword [esp + 0x9c]
fld dword [esp + 0x110]
fadd dword [esp + 0x40]
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x2c], ebp
fstp dword [esp + 0xa0]
mov ebp, dword [esp + 0xa0]
jmp 0x5871cc
fstp dword [esp + 0xa4]
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0xa8]
fmul dword [esp + 0x24]
fstp dword [esp + 0xac]
fld dword [esi + 0x74]
fmul dword [0x5a83e8]
fld st(0)
fld dword [esp + 0x10]
fmul st(1)
fld dword [esp + 0x14]
fmul st(2)
fstp dword [esp + 0xd0]
fld dword [esp + 0x18]
fmul st(2)
fstp dword [esp + 0xd4]
fld dword [esi - 8]
fsub st(1)
fstp st(2)
fstp st(0)
fld dword [esi - 4]
fsub dword [esp + 0xd0]
fld dword [esi]
fsub dword [esp + 0xd4]
fstp dword [esp + 0x14c]
fxch st(1)
fsub dword [esp + 0xa4]
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x48]
fsub dword [esp + 0xa8]
fstp dword [esp + 0x4c]
fld dword [esp + 0x14c]
fsub dword [esp + 0xac]
mov ecx, dword [esp + 0x4c]
fstp dword [esp + 0x50]
fld dword [esi + 0x74]
fld dword [esp + 0x10]
fmul st(1)
fld dword [esp + 0x14]
fmul st(2)
mov edx, dword [esp + 0x50]
fstp dword [esp + 0xe8]
fld dword [esp + 0x18]
fmul st(2)
fstp dword [esp + 0xec]
fadd dword [esp + 0x48]
fstp dword [esp + 0x54]
mov ebx, dword [esp + 0x54]
fstp st(0)
fld dword [esp + 0xe8]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x58]
fld dword [esp + 0xec]
fadd dword [esp + 0x50]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0xb8], ebp
fstp dword [esp + 0x5c]
fld dword [esp + 0x10]
fmul st(1)
fld dword [esp + 0x14]
fmul st(2)
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0xbc], ebp
fstp dword [esp + 0x130]
fld dword [esp + 0x18]
fmul st(2)
fstp dword [esp + 0x134]
fld dword [esi + 0x78]
fld dword [esp + 0x1c]
fmul st(1)
fld st(1)
fmul dword [esp + 0x20]
fstp dword [esp + 0x100]
fxch st(1)
fmul dword [esp + 0x24]
fstp dword [esp + 0x104]
fadd dword [esp + 0x54]
fld dword [esp + 0x100]
fadd dword [esp + 0x58]
fstp dword [esp + 0x118]
fld dword [esp + 0x104]
fadd dword [esp + 0x5c]
fstp dword [esp + 0x11c]
fsub st(1)
fstp dword [esp + 0x60]
mov ebp, dword [esp + 0x60]
fstp st(0)
fstp st(0)
fld dword [esp + 0x118]
fsub dword [esp + 0x130]
mov dword [esp + 0x70], ebp
fstp dword [esp + 0x64]
fld dword [esp + 0x11c]
fsub dword [esp + 0x134]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x74], ebp
fstp dword [esp + 0x68]
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x44]
mov dword [ebp], eax
mov eax, dword [esp + 0xb8]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0xbc]
mov dword [ebp + 8], edx
lea edx, [edi - 0x18]
mov dword [edi - 0x18], ebx
mov ebx, dword [esp + 0xb0]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x70]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x74]
mov edx, edi
mov dword [edx], eax
mov eax, dword [esp + 0x78]
mov dword [edx + 4], ecx
lea ecx, [edi + 0x18]
mov dword [edx + 8], eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov eax, dword [ebx + 0x280]
fld dword [esi + 0x84]
fdiv dword [esi + 0x8c]
test eax, eax
fstp dword [esp + 0x34]
je 0x587299
fld dword [esp + 0x34]
fcomp dword [ebx + 0x278]
fnstsw ax
test ah, 5
jp 0x587299
fld dword [ebx + 0x278]
fsub dword [esp + 0x34]
mov ebp, dword [esp + 0x6c]
push ecx
fdiv dword [ebx + 0x278]
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x44]
mov edx, dword [ebp + 0x40]
fsubr dword [0x5a83f4]
fmul dword [ebp + 0x70]
fstp dword [esp]
push eax
push ecx
push edx
call fcn.004761a0
add esp, 0x10
mov dword [edi - 0x24], eax
mov dword [edi - 0xc], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x24], eax
jmp 0x58729d
mov ebp, dword [esp + 0x6c]
mov eax, dword [ebx + 0x284]
test eax, eax
je 0x5872ff
fld dword [esp + 0x34]
fcomp dword [ebx + 0x27c]
fnstsw ax
and eax, 0x4100
jne 0x5872ff
fld dword [esp + 0x34]
fsub dword [ebx + 0x27c]
fld dword [0x5a83f4]
fsub dword [ebx + 0x27c]
mov eax, dword [ebp + 0x48]
mov edx, dword [ebp + 0x40]
fdivp st(1)
push ecx
mov ecx, dword [ebp + 0x44]
fsubr dword [0x5a83f4]
fmul dword [ebp + 0x70]
fstp dword [esp]
push eax
push ecx
push edx
call fcn.004761a0
add esp, 0x10
mov dword [edi - 0x24], eax
mov dword [edi - 0xc], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x24], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x88]
add ecx, 0x60
add edi, 0x60
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0x268]
inc eax
add esi, 0xac
cmp eax, ecx
mov dword [esp + 0x88], eax
jl 0x586db6
pop ebp
mov ecx, 0x72b998
call fcn.00482260
pop edi
pop esi
pop ebx
add esp, 0x140
ret