Function at 0x42a4b3
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 [0x458790]
fstp qword [esp]
call sub.MSVCRT.dll_log
fstp qword [esp + 0x44]
fld qword [0x458780]
fstp qword [esp]
call sub.MSVCRT.dll_log
fdivr qword [esp + 0x44]
fadd qword [0x458748]
fstp qword [esp]
call sub.MSVCRT.dll_floor
fld1
fsubp st(1)
call fcn.0040b270
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 [0x45e500]
fmul qword [0x458748]
fdivrp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x45e510]
mov eax, ebx
mov ecx, dword [edi + 0x20]
inc ecx
shl eax, cl
mov dword [esp + 0x30], eax
fsub qword [0x45e530]
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.0040b270
fild dword [esp + 0x64]
mov dword [edi + 0x1c], eax
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fadd qword [0x45e500]
fmul dword [esp + 0x60]
fmul qword [0x458748]
fdiv qword [esp + 0x3c]
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x45e510]
mov eax, ebx
mov ecx, dword [edi + 0x20]
inc ecx
shl eax, cl
fsub qword [0x45e530]
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
fstp qword [esp + 0x44]
fmul qword [esp + 0x44]
fadd qword [0x458748]
call fcn.0040b270
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 0x42a65b
fstp st(0)
cmp eax, 0x9470
jge 0x42a64e
fld dword [0x45e4d8]
jmp 0x42a65b
cmp eax, 0xb3b0
jle 0x42a65e
fld dword [0x45e4e8]
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 [0x45e4f8]
fld qword [0x45e508]
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 [0x458780]
fsubp st(2)
fld qword [0x45e530]
faddp st(2)
fmulp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_exp
fmul qword [0x458780]
fmul qword [esp + 0x3c]
fdiv qword [esp + 0x44]
fadd qword [0x458748]
fstp qword [esp]
call sub.MSVCRT.dll_floor
pop ecx
pop ecx
call fcn.0040b270
fld dword [ebp*4 + 0x458978]
mov ecx, eax
fstp dword [esp + 0x58]
cmp esi, ecx
jge 0x42a747
fld dword [ebp*4 + 0x45897c]
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 0x42a714
fxch st(1)
cmp esi, ebx
jge 0x42a743
mov eax, dword [edi + 0x10]
fld st(1)
fadd qword [0x458038]
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 0x42a745
fld dword [esp + 0x58]
jmp 0x42a712
fstp st(1)
fstp st(0)
mov ebp, dword [esp + 0x18]
fld qword [0x45e4f8]
fld qword [0x45e508]
cmp ebp, 0x57
jl 0x42a67e
mov ebp, dword [esp + 0x54]
fstp st(1)
fstp st(0)
jmp 0x42a775
mov eax, dword [edi + 0x10]
fld dword [eax + esi*4 - 4]
fstp dword [eax + esi*4]
inc esi
cmp esi, ebx
jl 0x42a76a
xor esi, esi
test ebx, ebx
jle 0x42a9f9
mov eax, dword [esp + 0x60]
lea ecx, [ebx + ebx]
cdq
idiv ecx
and dword [esp + 0x18], esi
fld qword [0x45e4b0]
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 [0x45e528]
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 [0x45e4d0]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x45e540]
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 [0x45e4c0]
faddp st(1)
fstp dword [esp + 0x20]
cmp eax, esi
jge 0x42a8e3
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 [0x45e4b0]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x45e528]
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 [0x45e4d0]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x45e540]
mov edx, dword [esp + 0x5c]
pop ecx
pop ecx
fadd qword [esp + 0x2c]
fld dword [esp + 0x1c]
fmul qword [0x45e4c0]
faddp st(1)
fld dword [esp + 0x20]
fsub dword [edx + 0x70]
fcompp
fnstsw ax
test ah, 0x41
jne 0x42a8db
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 0x42a83c
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jg 0x42a9c0
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 0x42a9a1
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 [0x45e4b0]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x45e528]
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 [0x45e4d0]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x45e540]
mov eax, dword [esp + 0x5c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
fadd qword [esp + 0x44]
fld dword [esp + 0x1c]
fmul qword [0x45e4c0]
faddp st(1)
fld dword [eax + 0x74]
fadd dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 0x41
jne 0x42a9bc
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 0x42a909
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], ebp
fld qword [0x45e4b0]
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 0x42a7a6
mov ebp, dword [esp + 0x54]
fstp st(0)
xor esi, esi
mov dword [esp + 0x54], esi
test ebx, ebx
jle 0x42aa6e
fild dword [esp + 0x54]
push ecx
push ecx
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fadd qword [0x45e500]
fmul qword [0x458748]
fmul qword [esp + 0x44]
fdiv qword [esp + 0x3c]
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x45e510]
xor eax, eax
pop ecx
pop ecx
mov ecx, dword [edi + 0x20]
inc eax
inc ecx
fsub qword [0x45e530]
shl eax, cl
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fstp qword [esp + 0x44]
fmul qword [esp + 0x44]
fadd qword [0x458748]
call fcn.0040b270
mov ecx, dword [edi + 0x14]
mov dword [ecx + esi*4], eax
inc esi
mov dword [esp + 0x54], esi
cmp esi, ebx
jl 0x42aa03
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 [0x458748]
push ebx
push ecx
fdiv qword [esp + 0x44]
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fstp dword [esp]
push eax
call fcn.0042bbd2
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 0x42aab8
xor esi, esi
mov dword [esp + 0x54], esi
test ebx, ebx
jle 0x42abd0
fld qword [esp + 0x34]
fmul qword [0x458780]
fst qword [esp + 0x34]
fild dword [esp + 0x54]
push ecx
push ecx
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
fadd qword [0x458748]
fmul qword [esp + 0x44]
fdivrp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x45e510]
pop ecx
pop ecx
fsub qword [0x45e530]
fmul qword [0x458780]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x42ab3e
fstp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
jmp 0x42ab40
fstp st(0)
fld dword [0x45e550]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x42ab5b
fstp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
jmp 0x42ab5d
fstp st(0)
fld st(0)
call fcn.0040b270
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 0x42ab8b
fstp st(0)
inc esi
mov dword [esp + 0x54], esi
fstp st(0)
fld qword [esp + 0x34]
cmp esi, ebx
jl 0x42aae9
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret