Function at 0x447fc3
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 [0x51a8b8]
fstp qword [esp]
call sub.MSVCRT.dll_log
fstp qword [esp + 0x44]
fld qword [0x514c88]
fstp qword [esp]
call sub.MSVCRT.dll_log
fdivr qword [esp + 0x44]
fadd qword [0x514140]
fstp qword [esp]
call sub.MSVCRT.dll_floor
fld1
fsubp st(1)
call fcn.0041b1f0
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 [0x51a878]
fmul qword [0x514140]
fdivrp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x51a888]
mov eax, ebx
mov ecx, dword [edi + 0x20]
inc ecx
shl eax, cl
mov dword [esp + 0x30], eax
fsub qword [0x51a8a8]
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.0041b1f0
fild dword [esp + 0x64]
mov dword [edi + 0x1c], eax
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fadd qword [0x51a878]
fmul dword [esp + 0x60]
fmul qword [0x514140]
fdiv qword [esp + 0x3c]
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x51a888]
mov eax, ebx
mov ecx, dword [edi + 0x20]
inc ecx
shl eax, cl
fsub qword [0x51a8a8]
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
fstp qword [esp + 0x44]
fmul qword [esp + 0x44]
fadd qword [0x514140]
call fcn.0041b1f0
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 0x44816b
fstp st(0)
cmp eax, 0x9470
jge 0x44815e
fld dword [0x51a850]
jmp 0x44816b
cmp eax, 0xb3b0
jle 0x44816e
fld dword [0x51a860]
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 [0x51a870]
fld qword [0x51a880]
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 [0x514c88]
fsubp st(2)
fld qword [0x51a8a8]
faddp st(2)
fmulp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_exp
fmul qword [0x514c88]
fmul qword [esp + 0x3c]
fdiv qword [esp + 0x44]
fadd qword [0x514140]
fstp qword [esp]
call sub.MSVCRT.dll_floor
pop ecx
pop ecx
call fcn.0041b1f0
fld dword [ebp*4 + 0x514cf0]
mov ecx, eax
fstp dword [esp + 0x58]
cmp esi, ecx
jge 0x448257
fld dword [ebp*4 + 0x514cf4]
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 0x448224
fxch st(1)
cmp esi, ebx
jge 0x448253
mov eax, dword [edi + 0x10]
fld st(1)
fadd qword [0x514040]
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 0x448255
fld dword [esp + 0x58]
jmp 0x448222
fstp st(1)
fstp st(0)
mov ebp, dword [esp + 0x18]
fld qword [0x51a870]
fld qword [0x51a880]
cmp ebp, 0x57
jl 0x44818e
mov ebp, dword [esp + 0x54]
fstp st(1)
fstp st(0)
jmp 0x448285
mov eax, dword [edi + 0x10]
fld dword [eax + esi*4 - 4]
fstp dword [eax + esi*4]
inc esi
cmp esi, ebx
jl 0x44827a
xor esi, esi
test ebx, ebx
jle 0x448509
mov eax, dword [esp + 0x60]
lea ecx, [ebx + ebx]
cdq
idiv ecx
and dword [esp + 0x18], esi
fld qword [0x51a828]
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 [0x51a8a0]
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 [0x51a848]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x51a8c8]
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 [0x51a838]
faddp st(1)
fstp dword [esp + 0x20]
cmp eax, esi
jge 0x4483f3
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 [0x51a828]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x51a8a0]
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 [0x51a848]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x51a8c8]
mov edx, dword [esp + 0x5c]
pop ecx
pop ecx
fadd qword [esp + 0x2c]
fld dword [esp + 0x1c]
fmul qword [0x51a838]
faddp st(1)
fld dword [esp + 0x20]
fsub dword [edx + 0x70]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4483eb
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 0x44834c
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jg 0x4484d0
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 0x4484b1
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 [0x51a828]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x51a8a0]
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 [0x51a848]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x51a8c8]
mov eax, dword [esp + 0x5c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
fadd qword [esp + 0x44]
fld dword [esp + 0x1c]
fmul qword [0x51a838]
faddp st(1)
fld dword [eax + 0x74]
fadd dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4484cc
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 0x448419
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], ebp
fld qword [0x51a828]
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 0x4482b6
mov ebp, dword [esp + 0x54]
fstp st(0)
xor esi, esi
mov dword [esp + 0x54], esi
test ebx, ebx
jle 0x44857e
fild dword [esp + 0x54]
push ecx
push ecx
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fadd qword [0x51a878]
fmul qword [0x514140]
fmul qword [esp + 0x44]
fdiv qword [esp + 0x3c]
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x51a888]
xor eax, eax
pop ecx
pop ecx
mov ecx, dword [edi + 0x20]
inc eax
inc ecx
fsub qword [0x51a8a8]
shl eax, cl
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fstp qword [esp + 0x44]
fmul qword [esp + 0x44]
fadd qword [0x514140]
call fcn.0041b1f0
mov ecx, dword [edi + 0x14]
mov dword [ecx + esi*4], eax
inc esi
mov dword [esp + 0x54], esi
cmp esi, ebx
jl 0x448513
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 [0x514140]
push ebx
push ecx
fdiv qword [esp + 0x44]
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fstp dword [esp]
push eax
call fcn.004496e2
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 0x4485c8
xor esi, esi
mov dword [esp + 0x54], esi
test ebx, ebx
jle 0x4486e0
fld qword [esp + 0x34]
fmul qword [0x514c88]
fst qword [esp + 0x34]
fild dword [esp + 0x54]
push ecx
push ecx
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
fadd qword [0x514140]
fmul qword [esp + 0x44]
fdivrp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x51a888]
pop ecx
pop ecx
fsub qword [0x51a8a8]
fmul qword [0x514c88]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x44864e
fstp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
jmp 0x448650
fstp st(0)
fld dword [0x51a8d8]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x44866b
fstp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
jmp 0x44866d
fstp st(0)
fld st(0)
call fcn.0041b1f0
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 0x44869b
fstp st(0)
inc esi
mov dword [esp + 0x54], esi
fstp st(0)
fld qword [esp + 0x34]
cmp esi, ebx
jl 0x4485f9
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret