Function at 0x42a2d3
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 [0x462528]
fstp qword [esp]
call sub.MSVCRT.dll_log
fstp qword [esp + 0x44]
fld qword [0x45c8f8]
fstp qword [esp]
call sub.MSVCRT.dll_log
fdivr qword [esp + 0x44]
fadd qword [0x45c7a0]
fstp qword [esp]
call sub.MSVCRT.dll_floor
fld1
fsubp st(1)
call fcn.0040b260
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 [0x4624e8]
fmul qword [0x45c7a0]
fdivrp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x4624f8]
mov eax, ebx
mov ecx, dword [edi + 0x20]
inc ecx
shl eax, cl
mov dword [esp + 0x30], eax
fsub qword [0x462518]
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.0040b260
fild dword [esp + 0x64]
mov dword [edi + 0x1c], eax
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fadd qword [0x4624e8]
fmul dword [esp + 0x60]
fmul qword [0x45c7a0]
fdiv qword [esp + 0x3c]
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x4624f8]
mov eax, ebx
mov ecx, dword [edi + 0x20]
inc ecx
shl eax, cl
fsub qword [0x462518]
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
fstp qword [esp + 0x44]
fmul qword [esp + 0x44]
fadd qword [0x45c7a0]
call fcn.0040b260
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 0x42a47b
fstp st(0)
cmp eax, 0x9470
jge 0x42a46e
fld dword [0x4624c0]
jmp 0x42a47b
cmp eax, 0xb3b0
jle 0x42a47e
fld dword [0x4624d0]
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 [0x4624e0]
fld qword [0x4624f0]
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 [0x45c8f8]
fsubp st(2)
fld qword [0x462518]
faddp st(2)
fmulp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_exp
fmul qword [0x45c8f8]
fmul qword [esp + 0x3c]
fdiv qword [esp + 0x44]
fadd qword [0x45c7a0]
fstp qword [esp]
call sub.MSVCRT.dll_floor
pop ecx
pop ecx
call fcn.0040b260
fld dword [ebp*4 + 0x45c960]
mov ecx, eax
fstp dword [esp + 0x58]
cmp esi, ecx
jge 0x42a567
fld dword [ebp*4 + 0x45c964]
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 0x42a534
fxch st(1)
cmp esi, ebx
jge 0x42a563
mov eax, dword [edi + 0x10]
fld st(1)
fadd qword [0x45c040]
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 0x42a565
fld dword [esp + 0x58]
jmp 0x42a532
fstp st(1)
fstp st(0)
mov ebp, dword [esp + 0x18]
fld qword [0x4624e0]
fld qword [0x4624f0]
cmp ebp, 0x57
jl 0x42a49e
mov ebp, dword [esp + 0x54]
fstp st(1)
fstp st(0)
jmp 0x42a595
mov eax, dword [edi + 0x10]
fld dword [eax + esi*4 - 4]
fstp dword [eax + esi*4]
inc esi
cmp esi, ebx
jl 0x42a58a
xor esi, esi
test ebx, ebx
jle 0x42a819
mov eax, dword [esp + 0x60]
lea ecx, [ebx + ebx]
cdq
idiv ecx
and dword [esp + 0x18], esi
fld qword [0x462498]
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 [0x462510]
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 [0x4624b8]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x462538]
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 [0x4624a8]
faddp st(1)
fstp dword [esp + 0x20]
cmp eax, esi
jge 0x42a703
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 [0x462498]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x462510]
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 [0x4624b8]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x462538]
mov edx, dword [esp + 0x5c]
pop ecx
pop ecx
fadd qword [esp + 0x2c]
fld dword [esp + 0x1c]
fmul qword [0x4624a8]
faddp st(1)
fld dword [esp + 0x20]
fsub dword [edx + 0x70]
fcompp
fnstsw ax
test ah, 0x41
jne 0x42a6fb
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 0x42a65c
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jg 0x42a7e0
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 0x42a7c1
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 [0x462498]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x462510]
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 [0x4624b8]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x462538]
mov eax, dword [esp + 0x5c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
fadd qword [esp + 0x44]
fld dword [esp + 0x1c]
fmul qword [0x4624a8]
faddp st(1)
fld dword [eax + 0x74]
fadd dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 0x41
jne 0x42a7dc
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 0x42a729
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], ebp
fld qword [0x462498]
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 0x42a5c6
mov ebp, dword [esp + 0x54]
fstp st(0)
xor esi, esi
mov dword [esp + 0x54], esi
test ebx, ebx
jle 0x42a88e
fild dword [esp + 0x54]
push ecx
push ecx
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fadd qword [0x4624e8]
fmul qword [0x45c7a0]
fmul qword [esp + 0x44]
fdiv qword [esp + 0x3c]
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x4624f8]
xor eax, eax
pop ecx
pop ecx
mov ecx, dword [edi + 0x20]
inc eax
inc ecx
fsub qword [0x462518]
shl eax, cl
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fstp qword [esp + 0x44]
fmul qword [esp + 0x44]
fadd qword [0x45c7a0]
call fcn.0040b260
mov ecx, dword [edi + 0x14]
mov dword [ecx + esi*4], eax
inc esi
mov dword [esp + 0x54], esi
cmp esi, ebx
jl 0x42a823
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 [0x45c7a0]
push ebx
push ecx
fdiv qword [esp + 0x44]
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fstp dword [esp]
push eax
call fcn.0042b9f2
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 0x42a8d8
xor esi, esi
mov dword [esp + 0x54], esi
test ebx, ebx
jle 0x42a9f0
fld qword [esp + 0x34]
fmul qword [0x45c8f8]
fst qword [esp + 0x34]
fild dword [esp + 0x54]
push ecx
push ecx
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
fadd qword [0x45c7a0]
fmul qword [esp + 0x44]
fdivrp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x4624f8]
pop ecx
pop ecx
fsub qword [0x462518]
fmul qword [0x45c8f8]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x42a95e
fstp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
jmp 0x42a960
fstp st(0)
fld dword [0x462548]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x42a97b
fstp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
jmp 0x42a97d
fstp st(0)
fld st(0)
call fcn.0040b260
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 0x42a9ab
fstp st(0)
inc esi
mov dword [esp + 0x54], esi
fstp st(0)
fld qword [esp + 0x34]
cmp esi, ebx
jl 0x42a909
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret