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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebx, ebx
push 0xffffffffffffff9d
pop eax
push 0x34
push 0
inc ebx
mov dword [esp + 0x1c], eax
push edi
mov dword [esp + 0x1c], ebx
call sub.MSVCRT.dll_memset
mov esi, dword [esp + 0x64]
add esp, 4
mov eax, dword [esi]
mov dword [edi + 0x24], eax
fild dword [esi]
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fmul qword [0x508b78]
fstp qword [esp]
call sub.MSVCRT.dll_log
fstp qword [esp + 0x44]
fld qword [0x508b68]
fstp qword [esp]
call sub.MSVCRT.dll_log
fdivr qword [esp + 0x44]
fadd qword [0x508180]
fstp qword [esp]
call sub.MSVCRT.dll_floor
fld1
fsubp st(1)
call fcn.004151f0
fild dword [esp + 0x68]
mov dword [edi + 0x20], eax
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fstp dword [esp + 0x60]
fild dword [esp + 0x64]
fstp qword [esp + 0x44]
fld qword [esp + 0x44]
fst qword [esp + 0x3c]
fld dword [esp + 0x60]
fmul qword [0x50e8d8]
fmul qword [0x508180]
fdivrp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x50e8e8]
mov eax, ebx
mov ecx, dword [edi + 0x20]
inc ecx
shl eax, cl
mov dword [esp + 0x30], eax
fsub qword [0x50e908]
fild dword [esp + 0x30]
fstp qword [esp + 0x44]
fmul qword [esp + 0x44]
fild dword [esi]
fstp qword [esp + 0x44]
fsub qword [esp + 0x44]
call fcn.004151f0
fild dword [esp + 0x64]
mov dword [edi + 0x1c], eax
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fadd qword [0x50e8d8]
fmul dword [esp + 0x60]
fmul qword [0x508180]
fdiv qword [esp + 0x3c]
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x50e8e8]
mov eax, ebx
mov ecx, dword [edi + 0x20]
inc ecx
shl eax, cl
fsub qword [0x50e908]
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
fstp qword [esp + 0x44]
fmul qword [esp + 0x44]
fadd qword [0x508180]
call fcn.004151f0
mov ebx, dword [esp + 0x64]
mov ebp, ebx
sub eax, dword [edi + 0x1c]
inc eax
shl ebp, 2
push ebp
mov dword [edi + 0x28], eax
call sub.MSVCRT.dll_malloc
push ebp
mov dword [edi + 0x10], eax
call sub.MSVCRT.dll_malloc
push ebp
mov dword [edi + 0x14], eax
call sub.MSVCRT.dll_malloc
fld1
add esp, 0x14
mov ebp, dword [esp + 0x54]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x60]
mov dword [edi + 4], ebp
mov dword [edi], ebx
mov dword [edi + 0x2c], eax
fstp dword [edi + 0x30]
fldz
cmp eax, 0x6590
jl 0x44117b
fstp st(0)
cmp eax, 0x9470
jge 0x44116e
fld dword [0x50e8b0]
jmp 0x44117b
cmp eax, 0xb3b0
jle 0x44117e
fld dword [0x50e8c0]
fstp dword [edi + 0x30]
fild dword [esp + 0x60]
xor esi, esi
xor ebp, ebp
fstp qword [esp + 0x3c]
fld qword [esp + 0x3c]
fstp qword [esp + 0x3c]
fld qword [0x50e8d0]
fld qword [0x50e8e0]
lea eax, [ebp + 1]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
push ecx
push ecx
fstp qword [esp + 0x34]
fld qword [esp + 0x34]
fmulp st(2)
fld qword [0x508b68]
fsubp st(2)
fld qword [0x50e908]
faddp st(2)
fmulp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_exp
fmul qword [0x508b68]
fmul qword [esp + 0x3c]
fdiv qword [esp + 0x44]
fadd qword [0x508180]
fstp qword [esp]
call sub.MSVCRT.dll_floor
pop ecx
pop ecx
call fcn.004151f0
fld dword [ebp*4 + 0x508d50]
mov ecx, eax
fstp dword [esp + 0x58]
cmp esi, ecx
jge 0x441267
fld dword [ebp*4 + 0x508d54]
sub eax, esi
fld dword [esp + 0x58]
fld st(0)
mov dword [esp + 0x58], eax
fsubp st(2)
fild dword [esp + 0x58]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
jmp 0x441234
fxch st(1)
cmp esi, ebx
jge 0x441263
mov eax, dword [edi + 0x10]
fld st(1)
fadd qword [0x508038]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fstp dword [eax + esi*4]
inc esi
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x58]
cmp esi, ecx
jge 0x441265
fld dword [esp + 0x58]
jmp 0x441232
fstp st(1)
fstp st(0)
mov ebp, dword [esp + 0x18]
fld qword [0x50e8d0]
fld qword [0x50e8e0]
cmp ebp, 0x57
jl 0x44119e
mov ebp, dword [esp + 0x54]
fstp st(1)
fstp st(0)
jmp 0x441295
mov eax, dword [edi + 0x10]
fld dword [eax + esi*4 - 4]
fstp dword [eax + esi*4]
inc esi
cmp esi, ebx
jl 0x44128a
xor esi, esi
test ebx, ebx
jle 0x441519
mov eax, dword [esp + 0x60]
lea ecx, [ebx + ebx]
cdq
idiv ecx
and dword [esp + 0x18], esi
fld qword [0x50e888]
mov ebp, eax
imul eax, ebp
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x28], eax
imul eax, esi
push ecx
push ecx
mov dword [esp + 0x68], eax
fild dword [esp + 0x68]
fstp dword [esp + 0x68]
fmul dword [esp + 0x68]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x50e900]
fstp qword [esp + 0x34]
fild dword [esp + 0x20]
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fmul qword [0x50e8a8]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x50e918]
mov edx, dword [esp + 0x5c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
fadd qword [esp + 0x2c]
mov eax, dword [edx + 0x78]
add eax, ecx
fld dword [esp + 0x60]
fmul qword [0x50e898]
faddp st(1)
fstp dword [esp + 0x20]
cmp eax, esi
jge 0x441403
mov edi, dword [esp + 0x58]
mov eax, ebp
imul eax, ecx
mov dword [esp + 0x24], eax
mov ebx, eax
mov dword [esp + 0x1c], eax
mov eax, edi
imul eax, ecx
mov dword [esp + 0x60], eax
imul eax, ecx
push ecx
push ecx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fmul qword [0x50e888]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x50e900]
fstp qword [esp + 0x34]
fild dword [esp + 0x24]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul qword [0x50e8a8]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x50e918]
mov edx, dword [esp + 0x5c]
pop ecx
pop ecx
fadd qword [esp + 0x2c]
fld dword [esp + 0x1c]
fmul qword [0x50e898]
faddp st(1)
fld dword [esp + 0x20]
fsub dword [edx + 0x70]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4413fb
mov ecx, dword [esp + 0x14]
add ebx, ebp
mov eax, dword [edx + 0x78]
inc ecx
add dword [esp + 0x60], edi
add eax, ecx
cmp eax, esi
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], ebx
jl 0x44135c
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jg 0x4414e0
mov edi, dword [esp + 0x58]
mov edx, ebp
imul edx, ecx
mov eax, edi
imul eax, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x7c]
add eax, esi
cmp ecx, eax
jl 0x4414c1
mov eax, dword [esp + 0x60]
imul eax, ecx
push ecx
push ecx
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fmul qword [0x50e888]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x50e900]
fstp qword [esp + 0x4c]
fild dword [esp + 0x24]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul qword [0x50e8a8]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x50e918]
mov eax, dword [esp + 0x5c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
fadd qword [esp + 0x44]
fld dword [esp + 0x1c]
fmul qword [0x50e898]
faddp st(1)
fld dword [eax + 0x74]
fadd dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4414dc
mov edx, dword [esp + 0x24]
add dword [esp + 0x60], edi
inc ecx
add edx, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edx
cmp ecx, ebx
jle 0x441429
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], ebp
fld qword [0x50e888]
shl eax, 0x10
add eax, 0xfffeffff
add ecx, eax
mov eax, dword [edi + 0x18]
mov dword [eax + esi*4], ecx
inc esi
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x58]
mov dword [esp + 0x28], eax
cmp esi, ebx
jl 0x4412c6
mov ebp, dword [esp + 0x54]
fstp st(0)
xor esi, esi
mov dword [esp + 0x54], esi
test ebx, ebx
jle 0x44158e
fild dword [esp + 0x54]
push ecx
push ecx
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fadd qword [0x50e8d8]
fmul qword [0x508180]
fmul qword [esp + 0x44]
fdiv qword [esp + 0x3c]
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x50e8e8]
xor eax, eax
pop ecx
pop ecx
mov ecx, dword [edi + 0x20]
inc eax
inc ecx
fsub qword [0x50e908]
shl eax, cl
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fstp qword [esp + 0x44]
fmul qword [esp + 0x44]
fadd qword [0x508180]
call fcn.004151f0
mov ecx, dword [edi + 0x14]
mov dword [ecx + esi*4], eax
inc esi
mov dword [esp + 0x54], esi
cmp esi, ebx
jl 0x441523
fld dword [ebp + 0x1c]
lea eax, [ebp + 0x24]
push ecx
push ecx
fstp dword [esp + 4]
fld dword [ebp + 0x18]
fstp dword [esp]
fld qword [esp + 0x44]
fmul qword [0x508180]
push ebx
push ecx
fdiv qword [esp + 0x44]
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fstp dword [esp]
push eax
call fcn.004426f2
push 0xc
mov dword [edi + 8], eax
call sub.MSVCRT.dll_malloc
mov ebp, ebx
mov dword [edi + 0xc], eax
add esp, 0x18
xor esi, esi
shl ebp, 2
push ebp
call sub.MSVCRT.dll_malloc
pop ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + ecx], eax
add esi, 4
cmp esi, 0xc
jl 0x4415d8
xor esi, esi
mov dword [esp + 0x54], esi
test ebx, ebx
jle 0x4416f0
fld qword [esp + 0x34]
fmul qword [0x508b68]
fst qword [esp + 0x34]
fild dword [esp + 0x54]
push ecx
push ecx
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
fadd qword [0x508180]
fmul qword [esp + 0x44]
fdivrp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x50e8e8]
pop ecx
pop ecx
fsub qword [0x50e908]
fmul qword [0x508b68]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x44165e
fstp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
jmp 0x441660
fstp st(0)
fld dword [0x50e928]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x44167b
fstp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
jmp 0x44167d
fstp st(0)
fld st(0)
call fcn.004151f0
mov dword [esp + 0x54], eax
xor ecx, ecx
fild dword [esp + 0x54]
lea edx, [eax*4 + 0x88]
fstp dword [esp + 0x54]
fsub dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fld st(0)
fld1
fsubrp st(1)
mov eax, dword [edi + 4]
fld dword [eax + edx]
fld st(2)
fmulp st(1)
fld dword [eax + edx - 4]
add edx, 0x44
mov eax, dword [edi + 0xc]
fmul st(2)
mov eax, dword [eax + ecx]
add ecx, 4
faddp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fstp dword [eax + esi*4]
cmp ecx, 0xc
jl 0x4416ab
fstp st(0)
inc esi
mov dword [esp + 0x54], esi
fstp st(0)
fld qword [esp + 0x34]
cmp esi, ebx
jl 0x441609
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret