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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
xor eax, eax
mov ecx, 0xd
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x40]
mov eax, dword [edi]
mov dword [esi + 0x24], eax
sub esp, 8
fild dword [edi]
mov ebp, 1
mov dword [esp + 0x18], 0xffffff9d
mov dword [esp + 0x1c], ebp
fmul dword [0x45b850]
fldln2
fxch st(1)
fyl2x
fldln2
fld qword [0x45b848]
fyl2x
fdivp st(1)
fadd qword [0x458628]
fstp qword [esp]
call sub.MSVCRT.dll_floor
fsub qword [0x458470]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x50]
fild dword [esp + 0x4c]
lea ecx, [eax + 1]
mov edx, ebp
shl edx, cl
fst qword [esp + 0x2c]
mov dword [esi + 0x20], eax
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fld st(2)
fmul dword [0x45b840]
fmul qword [0x458628]
fdiv st(2)
fldln2
fxch st(1)
fyl2x
fmul qword [0x45b838]
fsub qword [0x45b830]
fmul st(1)
fisub dword [edi]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x4c]
mov edi, eax
mov dword [esi + 0x1c], edi
fadd dword [0x45b840]
fmul st(3)
fmul qword [0x458628]
fdiv st(2)
fldln2
fxch st(1)
fyl2x
fmul qword [0x45b838]
fsub qword [0x45b830]
fmul st(1)
fadd qword [0x458628]
call sub.MSVCRT.dll__ftol
fstp st(0)
sub eax, edi
fstp st(0)
mov edi, dword [esp + 0x4c]
fstp st(0)
inc eax
lea ebx, [edi*4]
push ebx
mov dword [esi + 0x28], eax
call sub.MSVCRT.dll_malloc
push ebx
mov dword [esi + 0x10], eax
call sub.MSVCRT.dll_malloc
push ebx
mov dword [esi + 0x14], eax
call sub.MSVCRT.dll_malloc
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x5c]
add esp, 0x14
cmp eax, 0x6590
mov dword [esi], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0x3f800000
jge 0x449ab3
mov dword [esi + 0x30], 0
jmp 0x449ad1
cmp eax, 0x9470
jge 0x449ac3
mov dword [esi + 0x30], 0x3f70a3d7
jmp 0x449ad1
cmp eax, 0xb3b0
jle 0x449ad1
mov dword [esi + 0x30], 0x3fa33333
fild dword [esp + 0x48]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x40], 0x475514
fstp qword [esp + 0x2c]
inc eax
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
sub esp, 8
fmul qword [0x45b828]
fsub qword [0x45b848]
fadd qword [0x45b830]
fmul qword [0x45b820]
fldl2e
fmulp st(1)
fld st(0)
frndint
fxch st(1)
fsub st(1)
f2xm1
fld1
faddp st(1)
fscale
fstp st(1)
fmul qword [esp + 0x2c]
fadd st(0), st(0)
fdiv qword [esp + 0x34]
fadd qword [0x458628]
fstp qword [esp]
call sub.MSVCRT.dll_floor
add esp, 8
call sub.MSVCRT.dll__ftol
cmp ebx, eax
mov ecx, dword [esp + 0x40]
fld dword [ecx - 4]
jge 0x449b7a
fld dword [ecx]
mov edx, eax
sub edx, ebx
fsub st(1)
mov dword [esp + 0x40], edx
fidiv dword [esp + 0x40]
fstp dword [esp + 0x40]
cmp ebx, edi
jge 0x449b7a
mov edx, dword [esi + 0x10]
fld st(0)
fadd qword [0x45b818]
inc ebx
cmp ebx, eax
fstp dword [edx + ebx*4 - 4]
fadd dword [esp + 0x40]
jl 0x449b5e
mov eax, dword [esp + 0x38]
fstp st(0)
add ecx, 4
cmp ecx, 0x475670
mov dword [esp + 0x40], ecx
jl 0x449ae5
xor ebx, ebx
cmp edi, ebx
jle 0x449d66
mov eax, dword [esp + 0x48]
lea ecx, [edi + edi]
cdq
idiv ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov ecx, eax
mov edx, ecx
imul edx, ecx
mov eax, dword [esp + 0x38]
fild dword [esp + 0x40]
imul eax, ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x78]
fild dword [esp + 0x48]
mov edi, dword [esp + 0x10]
add eax, edi
cmp eax, ebx
fmul dword [0x45b810]
fld1
fpatan
fmul qword [0x45b808]
fld st(1)
fmul dword [0x45b800]
fld1
fpatan
fmul qword [0x45b7f8]
faddp st(1)
fxch st(1)
fmul dword [0x45b7f0]
faddp st(1)
fstp dword [esp + 0x1c]
jge 0x449ca0
mov edi, dword [esp + 0x3c]
fld dword [esp + 0x1c]
fsub dword [edi + 0x70]
mov ebp, ecx
imul ebp, dword [esp + 0x10]
fstp dword [esp + 0x20]
mov edi, edx
imul edi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], ebp
fild dword [esp + 0x48]
mov eax, edi
imul eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fmul dword [0x45b810]
fld1
fpatan
fmul qword [0x45b808]
fld st(1)
fmul dword [0x45b800]
fld1
fpatan
fmul qword [0x45b7f8]
faddp st(1)
fxch st(1)
fmul dword [0x45b7f0]
faddp st(1)
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 0x41
jne 0x449c9c
inc dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add ebp, ecx
add edi, edx
inc eax
cmp eax, ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x18], eax
jl 0x449c35
mov ebp, dword [esp + 0x14]
cmp ebp, dword [esp + 0x44]
jg 0x449d31
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x7c]
add eax, ebx
mov dword [esp + 0x20], eax
mov eax, ecx
imul eax, ebp
mov edi, edx
mov dword [esp + 0x48], eax
imul edi, ebp
cmp ebp, dword [esp + 0x20]
jl 0x449d1e
fild dword [esp + 0x48]
mov eax, edi
imul eax, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
fild dword [esp + 0x18]
fmul dword [0x45b810]
fld1
fpatan
fmul qword [0x45b808]
fld st(1)
fmul dword [0x45b800]
fld1
fpatan
fmul qword [0x45b7f8]
faddp st(1)
fxch st(1)
fmul dword [0x45b7f0]
faddp st(1)
fld dword [esp + 0x1c]
fadd dword [eax + 0x74]
fcompp
fnstsw ax
test ah, 0x41
jne 0x449d2d
add dword [esp + 0x48], ecx
mov eax, dword [esp + 0x44]
inc ebp
add edi, edx
cmp ebp, eax
jle 0x449cc5
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x18]
shl eax, 0x10
lea eax, [eax + ebp - 0x10001]
mov dword [edi + ebx*4], eax
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
add edi, ecx
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x44]
inc ebx
add eax, edx
cmp ebx, edi
mov dword [esp + 0x38], eax
jl 0x449bb6
xor ebx, ebx
test edi, edi
mov dword [esp + 0x44], ebx
jle 0x449dc9
fild dword [esp + 0x44]
mov ecx, dword [esi + 0x20]
inc ecx
mov edx, 1
fadd dword [0x45b840]
shl edx, cl
fmul qword [esp + 0x2c]
mov dword [esp + 0x44], edx
fmul qword [0x458628]
fdiv qword [esp + 0x24]
fldln2
fxch st(1)
fyl2x
fmul qword [0x45b838]
fsub qword [0x45b830]
fild dword [esp + 0x44]
fmulp st(1)
fadd qword [0x458628]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0x14]
mov dword [ecx + ebx*4], eax
inc ebx
cmp ebx, edi
mov dword [esp + 0x44], ebx
jl 0x449d70
fld qword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
fmul qword [0x458628]
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
push edx
fdiv qword [esp + 0x28]
push ecx
push edi
push ecx
add eax, 0x24
fstp dword [esp]
push eax
call fcn.00449ef0
push 0xc
mov dword [esi + 8], eax
call sub.MSVCRT.dll_malloc
add esp, 0x18
mov dword [esi + 0xc], eax
xor ebx, ebx
lea eax, [edi*4]
push eax
call sub.MSVCRT.dll_malloc
mov edx, dword [esi + 0xc]
mov dword [ebx + edx], eax
add ebx, 4
add esp, 4
cmp ebx, 0xc
jl 0x449e03
xor ebx, ebx
test edi, edi
mov dword [esp + 0x44], ebx
jle 0x449ede
fld qword [esp + 0x24]
fadd st(0), st(0)
fild dword [esp + 0x44]
fadd qword [0x458628]
fmul qword [esp + 0x2c]
fdiv st(1)
fldln2
fxch st(1)
fyl2x
fmul qword [0x45b838]
fsub qword [0x45b830]
fadd st(0), st(0)
fcom dword [0x4584c8]
fnstsw ax
test ah, 1
je 0x449e70
fstp st(0)
fld dword [0x4584c8]
jmp 0x449e85
fcom dword [0x45b7ec]
fnstsw ax
test ah, 1
jne 0x449e85
fstp st(0)
fld dword [0x45b7ec]
fld st(0)
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x44], eax
fisub dword [esp + 0x44]
xor ecx, ecx
lea eax, [eax*4 + 0x88]
fld st(0)
fsubr qword [0x458470]
mov edx, dword [esi + 4]
fld dword [edx + eax - 4]
add ecx, 4
fmul st(1)
add eax, 0x44
cmp ecx, 0xc
fld st(2)
fmul dword [edx + eax - 0x44]
mov edx, dword [esi + 0xc]
mov edx, dword [ecx + edx - 4]
faddp st(1)
fstp dword [edx + ebx*4]
jl 0x449ea5
inc ebx
fstp st(0)
cmp ebx, edi
fstp st(0)
mov dword [esp + 0x44], ebx
jl 0x449e35
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret