Function at 0x423c99
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 [0x42f380]
fstp qword [esp]
call sub.MSVCRT.dll_log
fstp qword [esp + 0x44]
fld qword [0x42f370]
fstp qword [esp]
call sub.MSVCRT.dll_log
fdivr qword [esp + 0x44]
fadd qword [0x42f158]
fstp qword [esp]
call sub.MSVCRT.dll_floor
fld1
fsubp st(1)
call fcn.004040b0
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 [0x42f150]
fmul qword [0x42f158]
fdivrp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x4350f8]
mov eax, ebx
mov ecx, dword [edi + 0x20]
inc ecx
shl eax, cl
mov dword [esp + 0x30], eax
fsub qword [0x435118]
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.004040b0
fild dword [esp + 0x64]
mov dword [edi + 0x1c], eax
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fadd qword [0x42f150]
fmul dword [esp + 0x60]
fmul qword [0x42f158]
fdiv qword [esp + 0x3c]
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x4350f8]
mov eax, ebx
mov ecx, dword [edi + 0x20]
inc ecx
shl eax, cl
fsub qword [0x435118]
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
fstp qword [esp + 0x44]
fmul qword [esp + 0x44]
fadd qword [0x42f158]
call fcn.004040b0
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 0x423e41
fstp st(0)
cmp eax, 0x9470
jge 0x423e34
fld dword [0x4350c8]
jmp 0x423e41
cmp eax, 0xb3b0
jle 0x423e44
fld dword [0x4350d8]
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 [0x4350e8]
fld qword [0x4350f0]
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 [0x42f370]
fsubp st(2)
fld qword [0x435118]
faddp st(2)
fmulp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_exp
fmul qword [0x42f370]
fmul qword [esp + 0x3c]
fdiv qword [esp + 0x44]
fadd qword [0x42f158]
fstp qword [esp]
call sub.MSVCRT.dll_floor
pop ecx
pop ecx
call fcn.004040b0
fld dword [ebp*4 + 0x42f568]
mov ecx, eax
fstp dword [esp + 0x58]
cmp esi, ecx
jge 0x423f2d
fld dword [ebp*4 + 0x42f56c]
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 0x423efa
fxch st(1)
cmp esi, ebx
jge 0x423f29
mov eax, dword [edi + 0x10]
fld st(1)
fadd qword [0x42f038]
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 0x423f2b
fld dword [esp + 0x58]
jmp 0x423ef8
fstp st(1)
fstp st(0)
mov ebp, dword [esp + 0x18]
fld qword [0x4350e8]
fld qword [0x4350f0]
cmp ebp, 0x57
jl 0x423e64
mov ebp, dword [esp + 0x54]
fstp st(1)
fstp st(0)
jmp 0x423f5b
mov eax, dword [edi + 0x10]
fld dword [eax + esi*4 - 4]
fstp dword [eax + esi*4]
inc esi
cmp esi, ebx
jl 0x423f50
xor esi, esi
test ebx, ebx
jle 0x4241df
mov eax, dword [esp + 0x60]
lea ecx, [ebx + ebx]
cdq
idiv ecx
and dword [esp + 0x18], esi
fld qword [0x4350a0]
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 [0x435110]
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 [0x4350c0]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x435120]
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 [0x4350b0]
faddp st(1)
fstp dword [esp + 0x20]
cmp eax, esi
jge 0x4240c9
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 [0x4350a0]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x435110]
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 [0x4350c0]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x435120]
mov edx, dword [esp + 0x5c]
pop ecx
pop ecx
fadd qword [esp + 0x2c]
fld dword [esp + 0x1c]
fmul qword [0x4350b0]
faddp st(1)
fld dword [esp + 0x20]
fsub dword [edx + 0x70]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4240c1
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 0x424022
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jg 0x4241a6
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 0x424187
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 [0x4350a0]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x435110]
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 [0x4350c0]
fstp qword [esp]
call sub.MSVCRT.dll_atan
fmul qword [0x435120]
mov eax, dword [esp + 0x5c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
fadd qword [esp + 0x44]
fld dword [esp + 0x1c]
fmul qword [0x4350b0]
faddp st(1)
fld dword [eax + 0x74]
fadd dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4241a2
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 0x4240ef
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], ebp
fld qword [0x4350a0]
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 0x423f8c
mov ebp, dword [esp + 0x54]
fstp st(0)
xor esi, esi
mov dword [esp + 0x54], esi
test ebx, ebx
jle 0x424254
fild dword [esp + 0x54]
push ecx
push ecx
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fadd qword [0x42f150]
fmul qword [0x42f158]
fmul qword [esp + 0x44]
fdiv qword [esp + 0x3c]
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x4350f8]
xor eax, eax
pop ecx
pop ecx
mov ecx, dword [edi + 0x20]
inc eax
inc ecx
fsub qword [0x435118]
shl eax, cl
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fstp qword [esp + 0x44]
fmul qword [esp + 0x44]
fadd qword [0x42f158]
call fcn.004040b0
mov ecx, dword [edi + 0x14]
mov dword [ecx + esi*4], eax
inc esi
mov dword [esp + 0x54], esi
cmp esi, ebx
jl 0x4241e9
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 [0x42f158]
push ebx
push ecx
fdiv qword [esp + 0x44]
fstp dword [esp + 0x64]
fld dword [esp + 0x64]
fstp dword [esp]
push eax
call fcn.004253b8
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 0x42429e
xor esi, esi
mov dword [esp + 0x54], esi
test ebx, ebx
jle 0x4243b6
fld qword [esp + 0x34]
fmul qword [0x42f370]
fst qword [esp + 0x34]
fild dword [esp + 0x54]
push ecx
push ecx
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
fadd qword [0x42f158]
fmul qword [esp + 0x44]
fdivrp st(1)
fstp qword [esp]
call sub.MSVCRT.dll_log
fmul qword [0x4350f8]
pop ecx
pop ecx
fsub qword [0x435118]
fmul qword [0x42f370]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x424324
fstp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
jmp 0x424326
fstp st(0)
fld dword [0x435130]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x424341
fstp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
jmp 0x424343
fstp st(0)
fld st(0)
call fcn.004040b0
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 0x424371
fstp st(0)
inc esi
mov dword [esp + 0x54], esi
fstp st(0)
fld qword [esp + 0x34]
cmp esi, ebx
jl 0x4242cf
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret