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

Disassembly:
sub esp, 0x84
push ebx
push edi
mov edi, ecx
fld dword [edi + 0x2d8]
xor ebx, ebx
fsub dword [edi + 0x2dc]
lea ecx, [esp + 0x24]
fld dword [0x73e798]
mov dword [esp + 8], ebx
fmul st(1)
fstp dword [esp + 0x18]
fstp dword [esp + 0xc]
call fcn.00405ed0
push 0x73d71c
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x2c]
call fcn.00406290
cmp dword [edi + 0x2b4], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
jle 0x591340
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [esp + 0x9c]
jmp 0x591000
mov ebx, dword [esp + 0x10]
mov edi, edi
mov ecx, dword [edi + 0x254]
mov edx, dword [edi + 0x264]
mov eax, dword [esi]
sub ecx, edx
cmp eax, ecx
jge 0x59133e
fld dword [esp + 0x14]
fcomp dword [0x73d700]
fnstsw ax
test ah, 0x41
jne 0x59133e
lea eax, [ebx + ebx*8]
mov ebx, dword [edi + 0x2b0]
shl eax, 2
add ebx, eax
push ebx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x58], eax
call fcn.00406120
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x3c], eax
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x44], ecx
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x48], edx
mov ebx, dword [ebx + 0x20]
cmp ebx, 1
mov dword [esp + 0x4c], ebx
jne 0x5910bd
test ecx, ecx
jne 0x5910bd
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x88]
lea edx, [eax + eax*8]
push ecx
lea ecx, [ebp + edx*4]
call fcn.00406120
fld dword [esp + 0x40]
mov eax, dword [esi]
lea eax, [eax + eax*8]
fstp dword [ebp + eax*4 + 0x14]
mov eax, dword [esi]
fld dword [esp + 0x3c]
lea ecx, [eax + eax*8]
fstp dword [ebp + ecx*4 + 0x10]
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov dword [esp + 0x44], ebx
jmp 0x59132a
fld dword [esp + 0x3c]
fcomp dword [0x73d700]
fnstsw ax
test ah, 0x44
jnp 0x59132a
fld dword [esp + 0x14]
fadd dword [esp + 0x20]
fld dword [esp + 0x40]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x591328
mov eax, dword [esp + 0x50]
fld dword [esp + 0x3c]
mov edx, dword [edi + 0x2b0]
fcomp dword [eax + edx + 0x34]
fnstsw ax
test ah, 0x44
jp 0x591291
mov ebx, dword [esp + 0x10]
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
xor eax, eax
inc ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], eax
cmp ebx, dword [edi + 0x2b4]
mov dword [esp + 0x1c], ebx
jge 0x591186
lea ecx, [ebx + ebx*8]
shl ecx, 2
jmp 0x591140
mov eax, dword [esp + 0x50]
fld dword [ecx + edx + 0x10]
fcomp dword [eax + edx + 0x10]
fnstsw ax
test ah, 0x44
jp 0x591181
mov dword [ecx + edx + 0x1c], 0
mov edx, dword [edi + 0x2b0]
mov eax, dword [ecx + edx + 0x20]
test eax, eax
je 0x59116d
inc dword [esp + 0x24]
inc dword [esp + 0x18]
mov eax, dword [edi + 0x2b4]
inc ebx
add ecx, 0x24
cmp ebx, eax
jl 0x591140
jmp 0x591182
dec ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [edi + 0x2b0]
fcomp dword [ecx - 0x10]
fnstsw ax
test ah, 1
jne 0x591287
jmp 0x5911a0
mov ebx, dword [esp + 0x1c]
mov edx, dword [edi + 0x254]
mov ecx, dword [edi + 0x264]
mov eax, dword [esi]
sub edx, ecx
cmp eax, edx
jge 0x591287
call fcn.006fc447
cdq
idiv dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 0x2b0]
add edx, ebx
lea ebx, [edx + edx*8]
shl ebx, 2
mov ecx, dword [eax + ebx + 0x20]
add eax, ebx
test ecx, ecx
je 0x5911e5
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x591244
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x78]
lea edx, [eax + eax*8]
push ecx
lea ecx, [ebp + edx*4]
call fcn.00406120
fld dword [esp + 0x14]
mov eax, dword [esi]
mov ecx, dword [edi + 0x2b0]
lea edx, [eax + eax*8]
mov eax, dword [ebx + ecx + 0x14]
mov dword [ebp + edx*4 + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [edi + 0x2b0]
lea edx, [eax + eax*8]
mov eax, dword [ebx + ecx + 0x10]
mov dword [ebp + edx*4 + 0x10], eax
inc dword [esi]
mov ecx, dword [edi + 0x2b0]
mov dword [ebx + ecx + 0x18], 1
mov edx, dword [edi + 0x2b0]
fsub dword [ebx + edx + 0x14]
lea eax, [ebx + edx]
fstp dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x591256
mov dword [eax + 0x1c], 1
inc dword [esp + 0x28]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x24]
jne 0x591266
cmp dword [esp + 0x28], eax
je 0x591283
mov eax, dword [edi + 0x2b0]
fld dword [esp + 0x14]
fadd dword [esp + 0x20]
fcomp dword [ebx + eax + 0x14]
fnstsw ax
test ah, 1
je 0x59119c
mov ebx, dword [esp + 0x1c]
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x59132e
fld dword [esp + 0x40]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jp 0x59132a
jmp 0x5912b0
mov ebx, dword [esp + 0x4c]
lea ebx, [ebx]
mov edx, dword [edi + 0x254]
sub edx, dword [edi + 0x264]
mov eax, dword [esi]
cmp eax, edx
jge 0x59132a
test ebx, ebx
je 0x5912ca
test ecx, ecx
jne 0x59132a
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x68]
lea eax, [eax + eax*8]
push edx
lea ecx, [ebp + eax*4]
call fcn.00406120
fld dword [esp + 0x40]
mov eax, dword [esi]
lea ecx, [eax + eax*8]
fstp dword [ebp + ecx*4 + 0x14]
mov eax, dword [esi]
fld dword [esp + 0x3c]
lea edx, [eax + eax*8]
fstp dword [ebp + edx*4 + 0x10]
mov eax, dword [esi]
fld dword [esp + 0x14]
inc eax
fsub dword [esp + 0x40]
mov dword [esi], eax
mov ecx, 1
mov dword [esp + 0x44], ecx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fadd dword [esp + 0x20]
fcomp dword [esp + 0x40]
fnstsw ax
test cl, ah
je 0x5912a6
jmp 0x59132a
fstp st(0)
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x2b4]
jl 0x590ffa
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x84
ret 8