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

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
xor ebp, ebp
mov dword [0x44ec34], ebp
mov eax, dword [esi + 0x34]
mov ebx, dword [esi + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x1c]
push edi
cmp eax, ebp
je 0x409d05
sub eax, dword [0x1493f00]
mov ecx, ebp
sets cl
dec ecx
and eax, ecx
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x10], 2
mov edi, 1
jne 0x409d20
mov dword [0x44ec34], edi
mov dword [esi + 0x10], edi
lea esp, [esp]
fld dword [esi + 0x54]
fsub dword [esi + 0x5c]
fstp dword [esp + 0x18]
fld dword [esi + 0x58]
fsub dword [esi + 0x64]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld dword [esp + 0x18]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
call fcn.00430490
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp + 0x24]
fld dword [0x9107bc]
fsub dword [esi + 0x5c]
fstp dword [esp + 0x2c]
fld dword [0xc5fbb4]
fsub dword [esi + 0x64]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [esp + 0x2c]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
call fcn.00430490
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 0x20]
cmp dword [esi + 0x10], ebp
je 0x409e18
cmp dword [esi + 0x1c], ebp
jne 0x409dc5
mov dword [esi + 0x10], ebp
fld dword [0x441578]
push ecx
fstp dword [esp]
push esi
call fcn.00403150
add esp, 8
jmp 0x409d20
fld dword [esp + 0x2c]
push ecx
fstp dword [0x1750478]
fld dword [esp + 0x18]
fstp dword [0x1750480]
fldz
fstp dword [0x175047c]
fld dword [0x4415a4]
fstp dword [esp]
push 0x1750478
call fcn.0041aac0
fld dword [esi + 0x5c]
fsub dword [0x1750478]
add esp, 8
fstp dword [esi + 0x54]
fld dword [esi + 0x64]
fsub dword [0x1750480]
mov dword [esi + 0x20], ebp
fstp dword [esi + 0x58]
cmp dword [esi + 0x10], ebp
jne 0x409e5f
fld dword [0x441864]
mov dword [esi + 0x1c], ebp
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x409e4a
push 8
mov dword [esi + 0x10], edi
call fcn.0041ad70
add eax, 6
add esp, 4
shl eax, 0xa
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], edi
jmp 0x409d20
fld dword [esp + 0x24]
fcomp qword [0x441580]
fnstsw ax
test ah, 5
jnp 0x409dad
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x409e6f
dec eax
mov dword [esi + 0x18], eax
jmp 0x409f19
fld dword [esi + 0x78]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fld dword [esp + 0x24]
fstp dword [esp]
call fcn.0041ae30
add esp, 4
fstp dword [esp]
call fcn.004021b0
fstp dword [esp + 0x34]
add esp, 8
fld dword [esp + 0x2c]
fstp dword [esi + 0x74]
cmp dword [esi + 0x1c], ebp
je 0x409f19
fild dword [0x19924b0]
fmul qword [0x4414d8]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
call fcn.004303a0
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fdiv qword [0x4414f8]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fst dword [esi + 0x74]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x409efb
fld qword [0x441558]
fadd st(1), st(0)
fxch st(1)
fstp dword [esi + 0x74]
jmp 0x409f03
fstp st(0)
fld qword [0x441558]
fld dword [esi + 0x74]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x409f17
fsubr dword [esi + 0x74]
fstp dword [esi + 0x74]
jmp 0x409f19
fstp st(0)
push edi
push edi
push esi
call fcn.00402da0
add esp, 0xc
cmp dword [esi + 0x14], 8
jle 0x409f3d
push 0x50
mov dword [esi + 0x14], ebp
call fcn.0041ad70
add esp, 4
add eax, 0x2c
mov dword [esi + 0x18], eax
fldz
fcomp dword [esi + 0x74]
fnstsw ax
test ah, 0x41
jne 0x409f55
fld dword [esi + 0x74]
fadd qword [0x441558]
fstp dword [esi + 0x74]
fld dword [esi + 0x74]
fld qword [0x441558]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x409f71
fsubr dword [esi + 0x74]
fstp dword [esi + 0x74]
jmp 0x409f73
fstp st(0)
push esi
call fcn.00401d80
mov edx, dword [0x1493f00]
add dword [esi + 0x34], edx
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x34]
lea ecx, [ecx + ecx*2]
add ecx, ecx
mov ecx, dword [edx + ecx*8 + 0x54]
add esp, 4
cmp eax, ecx
jl 0x409fa9
cdq
idiv ecx
mov dword [esi + 0x34], edx
mov dword [0x44ec34], edi
jmp 0x409fb1
cmp dword [0x44ec34], ebp
je 0x40a01a
cmp dword [esi + 0x10], ebp
jne 0x40a00f
mov eax, dword [esi + 0x30]
cmp eax, 2
je 0x409fe1
cmp eax, 3
je 0x409fe1
push 0x80
call fcn.0041ad70
xor ecx, ecx
add esp, 4
cmp eax, 0x78
setle cl
dec ecx
and ecx, 2
mov dword [esi + 0x30], ecx
jmp 0x40a01a
push 0x80
call fcn.0041ad70
add esp, 4
cmp eax, 0x40
jle 0x409ffe
cmp dword [esi + 0x30], 3
jne 0x409ffe
mov dword [esi + 0x30], ebp
jmp 0x40a01a
push edi
call fcn.0041ad70
add esp, 4
add eax, 2
mov dword [esi + 0x30], eax
jmp 0x40a01a
xor edx, edx
cmp dword [esi + 0x1c], ebp
setne dl
mov dword [esi + 0x30], edx
cmp ebx, dword [esi + 0x30]
jne 0x40a027
cmp dword [0x44ec34], ebp
je 0x40a030
push esi
call fcn.00401dc0
add esp, 4
mov ecx, dword [esi + 0x30]
cmp ebx, ecx
je 0x40a087
cmp ebx, 2
jg 0x40a066
cmp ecx, 2
jg 0x40a066
mov edi, dword [esi + 8]
lea eax, [ecx + ecx*2]
add eax, eax
mov eax, dword [edi + eax*8 + 0x54]
imul eax, dword [esp + 0x1c]
lea ebp, [ebx + ebx*2]
cdq
add ebp, ebp
idiv dword [edi + ebp*8 + 0x54]
add eax, 0x40
mov dword [esi + 0x34], eax
xor ebp, ebp
jmp 0x40a071
cmp dword [0x44ec34], ebp
jne 0x40a071
mov dword [esi + 0x34], ebp
cmp dword [esi + 0x24], 0x80
jle 0x40a087
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x24], ebp
mov eax, dword [esi + 0x34]
fld dword [esi + 0x74]
mov ebx, dword [esi + 8]
fsub dword [esi + 0x78]
lea edi, [ecx + ecx*2]
cdq
add edi, edi
fstp dword [esp + 0x2c]
idiv dword [ebx + edi*8 + 0x54]
fld dword [esp + 0x2c]
fabs
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fst dword [esp + 0x14]
fld qword [0x441548]
fcom st(1)
fnstsw ax
mov dword [esi + 0x34], edx
test ah, 5
jp 0x40a0d9
fld st(1)
fsubr qword [0x441558]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
cmp ecx, 2
je 0x40a2a4
cmp ecx, 3
je 0x40a2a4
fcom qword [0x441540]
fnstsw ax
test ah, 0x41
jne 0x40a11b
fld dword [esi + 0x74]
fld dword [esi + 0x78]
fcompp
fnstsw ax
test ah, 5
jp 0x40a113
fadd qword [0x441740]
jmp 0x40a11f
fsubr qword [0x441818]
jmp 0x40a11f
fstp st(0)
fldz
fstp dword [esp + 0x2c]
cmp dword [esi + 0x1c], ebp
je 0x40a136
fld dword [esp + 0x2c]
fmul qword [0x441848]
fstp dword [esp + 0x2c]
fcompp
fnstsw ax
test ah, 5
jp 0x40a14d
fld dword [esp + 0x2c]
fmul qword [0x441518]
fstp dword [esp + 0x2c]
test dword [esi + 0x10], 0x10000
jne 0x40a15a
cmp ecx, ebp
jne 0x40a168
fld dword [esp + 0x2c]
fdiv qword [0x441510]
fstp dword [esp + 0x2c]
fild dword [0x1493f00]
sub esp, 8
lea edi, [esi + 0x3c]
fdiv qword [0x441680]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp + 4]
fld dword [esp + 0x34]
fstp dword [esp]
push edi
call fcn.0041ab60
fld dword [esp + 0x20]
fdiv qword [0x4414f8]
add esp, 0xc
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp qword [0x441710]
fnstsw ax
test ah, 0x41
jne 0x40a1bf
fld dword [0x441838]
fstp dword [esp + 0x10]
fld dword [esp + 0x2c]
push ecx
fstp dword [esp]
call fcn.0041ab40
fmul dword [esp + 0x14]
lea ecx, [esi + 0x40]
add esp, 4
sub esp, 8
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld st(0)
fabs
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [ecx]
fabs
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fcompp
fnstsw ax
fild dword [0x1493f00]
test ah, 5
jp 0x40a218
fdiv qword [0x4415b8]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
jmp 0x40a226
fdiv qword [0x4416e0]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 4]
fstp dword [esp]
push ecx
call fcn.0041ab60
fild dword [0x1493f00]
add esp, 0xc
fmul dword [edi]
fdiv qword [0x441830]
fstp dword [esp + 0x2c]
fld dword [esp + 0x14]
fld dword [esp + 0x2c]
fld st(0)
fabs
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x40a26e
fstp st(0)
fld dword [esi + 0x74]
jmp 0x40a271
fadd dword [esi + 0x78]
fstp dword [esi + 0x78]
fld dword [esi + 0x78]
fld qword [0x441558]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x40a290
fld dword [esi + 0x78]
fsub st(1)
fstp dword [esi + 0x78]
fldz
fcomp dword [esi + 0x78]
fnstsw ax
test ah, 0x41
jne 0x40a2a8
fadd dword [esi + 0x78]
fstp dword [esi + 0x78]
jmp 0x40a2aa
fstp st(2)
fstp st(1)
fstp st(0)
fld dword [esi + 0x78]
call fcn.00430270
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esi + 0x88]
fld dword [esi + 0x78]
call fcn.004303a0
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
mov eax, dword [esi + 0x30]
fstp dword [esi + 0x8c]
fldz
fstp dword [esp + 0x2c]
cmp eax, 1
jne 0x40a2ee
fld dword [0x44177c]
fstp dword [esp + 0x2c]
cmp eax, ebp
jne 0x40a2fc
fld dword [0x4414bc]
fstp dword [esp + 0x2c]
fld dword [esp + 0x14]
fcom qword [0x441710]
fnstsw ax
test ah, 0x41
jne 0x40a329
fld qword [0x4416f8]
fmul st(1), st(0)
fxch st(1)
fdiv qword [0x441548]
fsubp st(1)
fmul dword [esp + 0x2c]
fstp dword [esp + 0x2c]
jmp 0x40a32b
fstp st(0)
fld dword [esi + 0x44]
lea edi, [esi + 0x38]
fmul dword [esp + 0x2c]
sub esp, 8
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld dword [edi]
fcomp st(1)
fnstsw ax
fild dword [0x1493f00]
test ah, 5
jp 0x40a361
fmul qword [0x4414d8]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
jmp 0x40a36f
fmul qword [0x441828]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 4]
fstp dword [esp]
push edi
call fcn.0041ab60
fild dword [0x1493f00]
add esp, 0xc
push 1
fstp dword [esp + 0x30]
push 1
fld dword [esi + 0x8c]
sub esp, 8
fmul dword [edi]
fld dword [esp + 0x3c]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fstp dword [esp + 4]
fld dword [esi + 0x88]
fmul dword [edi]
fmulp st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fstp dword [esp]
push esi
call fcn.00403000
fld dword [0x4414bc]
fstp dword [esp + 0x10]
add esp, 4
fld dword [0x4415c8]
fstp dword [esp + 8]
fld dword [0x441638]
fstp dword [esp + 4]
fld dword [0x4417f8]
fstp dword [esp]
push esi
call fcn.00402240
fld dword [esi + 0x3c]
add esp, 0x14
cmp dword [esi + 0x30], ebp
jne 0x40a40c
fdiv qword [0x441790]
jmp 0x40a412
fmul qword [0x441588]
fadd dword [esi + 0x80]
sub esp, 8
add esi, 0x84
fstp dword [esi - 4]
fild dword [0x1493f00]
fmul qword [0x441820]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 4]
fld dword [esi - 4]
fstp dword [esp]
push esi
call fcn.0041ab60
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret