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

Disassembly:
sub esp, 0x24
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, dword [esp + 0x34]
mov dword [0x44ec34], ebx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
lea ebp, [ebx + 1]
lea edi, [ebx + 7]
jmp 0x405bb0
fld dword [esi + 0x54]
fsub dword [esi + 0x5c]
fstp dword [esp + 0x20]
fld dword [esi + 0x58]
fsub dword [esi + 0x64]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld dword [esp + 0x20]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
call fcn.00430490
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp + 0x30]
fld dword [0x9107bc]
fsub dword [esi + 0x5c]
fld dword [esi + 0x88]
fld qword [0x4415b0]
fmul st(1), st(0)
fxch st(2)
fsubrp st(1)
fstp dword [esp + 0x18]
fld dword [0xc5fbb4]
fsub dword [esi + 0x64]
fld dword [esi + 0x8c]
fmulp st(2)
fsubrp st(1)
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 + 0x38]
fld dword [esp + 0x38]
call fcn.00430490
fstp dword [esp + 0x38]
cmp dword [esi + 0x10], 2
fld dword [esp + 0x38]
fstp dword [esp + 0x38]
jne 0x405c64
cmp dword [esi + 0x30], 5
je 0x405c5e
mov dword [0x44ec34], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x30], ebx
fld dword [esi + 0x64]
sub esp, 8
fstp dword [esp + 4]
fld dword [esi + 0x5c]
fstp dword [esp]
call fcn.00410b90
fstp qword [esp + 0x30]
fld dword [esi + 0x64]
fstp dword [esp + 4]
fld dword [esi + 0x5c]
fstp dword [esp]
call fcn.0040e320
fsubr qword [esp + 0x30]
add esp, 8
fld dword [esi + 0x44]
fmul qword [0x4415a8]
fcompp
fnstsw ax
test ah, 5
jp 0x405cb1
or dword [esi + 0xc], 0x10000
jmp 0x405cb4
mov dword [esi + 0xc], ebx
cmp dword [esi + 0x30], edi
je 0x405e86
cmp dword [0x19504c0], ebx
jne 0x405ccd
mov dword [esi + 0x10], ebx
jmp 0x405e5a
cmp dword [esi + 0x10], ebx
je 0x405e5a
mov ecx, dword [0x14c11f8]
fld dword [esp + 0x38]
mov eax, dword [0x8b2604]
imul ecx, ecx, 0x8c
cdq
and edx, edi
add eax, edx
sar eax, 3
add ecx, eax
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fcompp
fnstsw ax
test ah, 5
jp 0x405d6a
fld dword [esp + 0x18]
push ecx
fstp dword [0x1750478]
fld dword [esp + 0x14]
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], ebx
fstp dword [esi + 0x58]
mov edx, dword [0x1493f00]
sub dword [esi + 0x1c], edx
cmp dword [esi + 0x1c], ebx
jg 0x405d7f
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x10], ebx
jmp 0x405d7f
fld dword [0x9107bc]
fstp dword [esi + 0x54]
fld dword [0xc5fbb4]
mov dword [esi + 0x20], ebx
fstp dword [esi + 0x58]
test dword [esi + 0xc], 0x10000
jne 0x405df1
fld dword [esp + 0x38]
fld dword [esi + 0x44]
fmul qword [0x441750]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x405def
fld dword [esi + 0x44]
fmul qword [0x441748]
fcompp
fnstsw ax
test ah, 5
jp 0x405df1
fld dword [esp + 0x10]
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.0041ae30
fstp dword [esp + 4]
fld dword [esi + 0x78]
fstp dword [esp]
call fcn.00402170
fcomp qword [0x441740]
add esp, 8
fnstsw ax
test ah, 5
jp 0x405df1
mov dword [esi + 0x30], 5
jmp 0x405df1
fstp st(0)
fld dword [0x441780]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x405e55
fld dword [0xc5e7a8]
fsub dword [esi + 0x60]
fsub qword [0x441598]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fabs
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fcomp dword [0x441590]
fnstsw ax
test ah, 5
jp 0x405e55
test dword [esi + 0xc], 0x10000
jne 0x405e4b
fld dword [esi + 0x38]
mov dword [esi + 0x10], ebp
fmul qword [0x441588]
mov dword [esi + 0x30], edi
fstp dword [esi + 0x38]
push ebx
push esi
call fcn.00401f90
add esp, 8
cmp dword [esi + 0x10], ebx
jne 0x405e86
fld dword [esp + 0x30]
mov dword [esi + 0x1c], ebx
fcomp qword [0x441580]
fnstsw ax
test ah, 5
jp 0x405e86
fld dword [0x441578]
push ecx
fstp dword [esp]
push esi
call fcn.00403150
add esp, 8
jmp 0x405bb0
fld dword [0x4415a4]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x405e9a
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x405eaa
dec eax
mov dword [esi + 0x18], eax
jmp 0x405f65
fld dword [esi + 0x78]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x28]
fstp dword [esp + 4]
fld dword [esp + 0x2c]
fstp dword [esp]
call fcn.0041ae30
add esp, 4
fstp dword [esp]
call fcn.004021b0
fstp dword [esp + 0x28]
add esp, 8
fld dword [esp + 0x20]
fstp dword [esi + 0x74]
cmp dword [esi + 0x10], ebx
je 0x405f65
fld dword [esp + 0x38]
fcomp qword [0x441570]
fnstsw ax
test ah, 0x41
jne 0x405f65
fild dword [0x19924b0]
fdiv qword [0x441568]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
call fcn.004303a0
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fmul qword [0x441560]
fadd dword [esp + 0x20]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fst dword [esi + 0x74]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x405f47
fld qword [0x441558]
fadd st(1), st(0)
fxch st(1)
fstp dword [esi + 0x74]
jmp 0x405f4f
fstp st(0)
fld qword [0x441558]
fld dword [esi + 0x74]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x405f63
fsubr dword [esi + 0x74]
fstp dword [esi + 0x74]
jmp 0x405f65
fstp st(0)
push ebp
push ebx
push esi
call fcn.00402da0
add esp, 0xc
cmp dword [esi + 0x14], 0xc
jle 0x405f89
push 0x14
mov dword [esi + 0x14], ebx
call fcn.0041ad70
add esp, 4
add eax, 0x10
mov dword [esi + 0x18], eax
fldz
fcomp dword [esi + 0x74]
fnstsw ax
test ah, 0x41
jne 0x405fa1
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 0x405fbd
fsubr dword [esi + 0x74]
fstp dword [esi + 0x74]
jmp 0x405fbf
fstp st(0)
push esi
call fcn.00401d80
mov ecx, dword [esi + 0x30]
mov eax, dword [0x1493f00]
add dword [esi + 0x34], eax
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 0x405ff2
cdq
idiv ecx
mov dword [esi + 0x34], edx
mov dword [0x44ec34], ebp
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4060bf
mov ecx, dword [0x44ec34]
cmp ecx, ebx
je 0x406016
cmp dword [esp + 0x14], 5
jne 0x406016
mov dword [esi + 0x30], ebx
jmp 0x4060bf
cmp eax, 5
je 0x4060bf
cmp ecx, ebx
je 0x406053
cmp dword [esi + 0x10], ebx
jne 0x406050
push 0x80
call fcn.0041ad70
add esp, 4
cmp eax, 0x6e
jle 0x40604b
push ebp
call fcn.0041ad70
add esp, 4
add eax, 3
mov dword [esi + 0x30], eax
jmp 0x4060bf
mov dword [esi + 0x30], ebp
jmp 0x406053
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x30]
cmp eax, 3
je 0x4060a6
cmp eax, 4
je 0x4060a6
cmp dword [esi + 0x10], ebx
jne 0x40606a
mov dword [esi + 0x30], ebp
jmp 0x4060a6
fld dword [esi + 0x74]
fsub dword [esi + 0x78]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fabs
fstp dword [esp + 0x38]
fld1
fld dword [esp + 0x38]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x4060a1
fcomp dword [0x441550]
fnstsw ax
test ah, 0x41
je 0x4060a3
mov dword [esi + 0x30], ebp
jmp 0x4060a6
fstp st(0)
mov dword [esi + 0x30], ebx
test dword [esi + 0xc], 0x10000
je 0x4060b2
mov dword [esi + 0x30], ebp
cmp dword [esi + 0x48], 0x28
jle 0x4060bf
mov dword [esi + 0x30], 2
mov edi, dword [esp + 0x14]
cmp edi, dword [esi + 0x30]
jne 0x4060d0
cmp dword [0x44ec34], ebx
je 0x4060d9
push esi
call fcn.00401dc0
add esp, 4
mov ecx, dword [esi + 0x30]
cmp edi, ecx
je 0x40613e
cmp dword [0x1493ee8], ebx
je 0x406128
cmp edi, 3
jg 0x40611d
cmp ecx, 3
jg 0x40611d
mov edi, dword [esi + 8]
mov edx, dword [esp + 0x14]
lea eax, [ecx + ecx*2]
add eax, eax
mov eax, dword [edi + eax*8 + 0x54]
imul eax, dword [esp + 0x24]
lea ebp, [edx + edx*2]
cdq
add ebp, ebp
idiv dword [edi + ebp*8 + 0x54]
mov edi, dword [esp + 0x14]
add eax, 0x40
mov dword [esi + 0x34], eax
jmp 0x406128
cmp dword [0x44ec34], ebx
jne 0x406128
mov dword [esi + 0x34], ebx
cmp dword [esi + 0x24], 0x80
jle 0x40613e
mov edx, dword [esp + 0x24]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edx
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x34]
fld dword [esi + 0x74]
mov ebp, dword [esi + 8]
fsub dword [esi + 0x78]
lea edi, [ecx + ecx*2]
cdq
add edi, edi
fstp dword [esp + 0x38]
idiv dword [ebp + edi*8 + 0x54]
fld dword [esp + 0x38]
fabs
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fst dword [esp + 0x10]
fld qword [0x441548]
fcom st(1)
fnstsw ax
mov dword [esi + 0x34], edx
test ah, 5
jp 0x406190
fld st(1)
fsubr qword [0x441558]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov ebp, 5
cmp ecx, ebp
je 0x40638c
cmp ecx, 7
je 0x40638c
cmp ecx, 3
je 0x40638c
cmp ecx, 4
je 0x40638c
fcom qword [0x441540]
fnstsw ax
test ah, 0x41
jne 0x4061ee
fld dword [esi + 0x74]
fld dword [esi + 0x78]
fcompp
fnstsw ax
fmul qword [0x441538]
test ah, 5
jp 0x4061e6
fadd qword [0x441530]
jmp 0x4061f2
fsubr qword [0x441528]
jmp 0x4061f2
fstp st(0)
fldz
mov edx, dword [esi + 0x1c]
fstp dword [esp + 0x38]
cmp edx, ebx
je 0x40620b
fld dword [esp + 0x38]
fmul qword [0x441520]
fstp dword [esp + 0x38]
fcompp
fnstsw ax
test ah, 5
jp 0x406222
fld dword [esp + 0x38]
fmul qword [0x441518]
fstp dword [esp + 0x38]
test dword [esi + 0xc], 0x10000
jne 0x406230
cmp ecx, 1
jne 0x40623e
fld dword [esp + 0x38]
fdiv qword [0x441510]
fstp dword [esp + 0x38]
fild dword [0x1493f00]
sub esp, 8
lea edi, [esi + 0x3c]
cmp edx, ebx
je 0x40625e
fdiv qword [0x441508]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
jmp 0x40626c
fdiv qword [0x441500]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
push edi
call fcn.0041ab60
fld dword [esp + 0x1c]
fdiv qword [0x4414f8]
add esp, 0xc
fstp dword [esp + 0x14]
fld dword [0x4414f0]
fcom dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x4062a5
fstp dword [esp + 0x14]
jmp 0x4062a7
fstp st(0)
fld dword [esp + 0x38]
push ecx
fstp dword [esp]
call fcn.0041ab40
fmul dword [esp + 0x18]
lea ecx, [esi + 0x40]
add esp, 4
sub esp, 8
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld st(0)
fabs
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fld dword [ecx]
fabs
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fcompp
fnstsw ax
fild dword [0x1493f00]
test ah, 5
jp 0x406300
fdiv qword [0x4414e8]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
jmp 0x40630e
fdiv qword [0x4414e0]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [esp + 4]
fstp dword [esp]
push ecx
call fcn.0041ab60
fild dword [0x1493f00]
add esp, 0xc
fmul dword [edi]
fmul qword [0x4414d8]
fstp dword [esp + 0x38]
fld dword [esp + 0x10]
fld dword [esp + 0x38]
fld st(0)
fabs
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x406356
fstp st(0)
fld dword [esi + 0x74]
jmp 0x406359
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 0x406378
fld dword [esi + 0x78]
fsub st(1)
fstp dword [esi + 0x78]
fldz
fcomp dword [esi + 0x78]
fnstsw ax
test ah, 0x41
jne 0x406390
fadd dword [esi + 0x78]
fstp dword [esi + 0x78]
jmp 0x406392
fstp st(2)
fstp st(1)
fstp st(0)
cmp dword [esi + 0x48], ebx
jne 0x4063f9
fld dword [esi + 0x38]
fcomp qword [str.333333]
fnstsw ax
test ah, 0x41
jne 0x4063f9
cmp dword [esi + 0x30], ebp
je 0x4063f9
fld dword [esi + 0x78]
sub esp, 8
fstp dword [esp + 4]
fld dword [esi + 0x74]
fstp dword [esp]
call fcn.00402170
fcomp dword [0x441730]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x4063f9
fld dword [esi + 0x38]
fmul qword [0x441728]
call fcn.00430550
fld dword [esi + 0x88]
fstp dword [esi + 0x4c]
mov dword [esi + 0x48], eax
fld dword [esi + 0x8c]
fstp dword [esi + 0x50]
fldz
fstp dword [esi + 0x38]
fld dword [esi + 0x78]
call fcn.00430270
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esi + 0x88]
fld dword [esi + 0x78]
call fcn.004303a0
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
mov eax, dword [esi + 0x30]
fstp dword [esi + 0x8c]
fldz
fst dword [esp + 0x38]
cmp eax, ebx
jne 0x40643c
fld dword [0x44177c]
fstp dword [esp + 0x38]
cmp eax, ebp
jne 0x40644a
fld dword [0x441778]
fstp dword [esp + 0x38]
cmp eax, 1
jne 0x406463
fld dword [0x441774]
fstp dword [esp + 0x38]
fld dword [0x4414b8]
fstp dword [esp + 0x38]
cmp eax, 7
jne 0x40646c
fst dword [esp + 0x38]
cmp eax, ebx
jne 0x4064c7
cmp dword [esi + 0x48], ebx
je 0x4064c7
fld dword [esp + 0x38]
fmul qword [0x441588]
fstp dword [esp + 0x38]
fld dword [esp + 0x10]
fcom qword [0x441710]
fnstsw ax
test ah, 0x41
jne 0x40649c
fstp st(0)
fstp dword [esp + 0x38]
jmp 0x4064f8
fstp st(1)
fcom qword [0x441708]
fnstsw ax
test ah, 0x41
jne 0x4064f6
fmul qword [0x441700]
fdiv qword [0x441548]
fsubr qword [0x4416f8]
fmul dword [esp + 0x38]
fstp dword [esp + 0x38]
jmp 0x4064f8
fstp st(0)
fld dword [esp + 0x10]
fcom qword [0x441710]
fnstsw ax
test ah, 0x41
jne 0x4064f6
fld qword [0x4416f8]
fmul st(1), st(0)
fxch st(1)
fdiv qword [0x441548]
fsubp st(1)
fmul dword [esp + 0x38]
fstp dword [esp + 0x38]
jmp 0x4064f8
fstp st(0)
fild dword [0x1493f00]
sub esp, 8
lea edi, [esi + 0x38]
fdiv qword [0x4414c8]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
push edi
call fcn.0041ab60
add esp, 0xc
cmp dword [esi + 0x30], ebp
jne 0x406533
fld dword [0x44171c]
fstp dword [edi]
fild dword [0x1493f00]
push 1
push ebx
sub esp, 8
fstp dword [esp + 0x48]
fld dword [esi + 0x8c]
fmul dword [edi]
fld dword [esp + 0x48]
fld st(0)
fmulp st(2)
fld dword [esi + 0x44]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp + 4]
fld dword [esi + 0x88]
fmul dword [edi]
fmulp st(1)
fmul dword [esi + 0x44]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp]
push esi
call fcn.00403000
mov eax, dword [esi + 0x48]
add esp, 0x14
mov dword [esp + 0x38], eax
cmp eax, ebx
je 0x406605
fild dword [esp + 0x38]
push 1
push ebx
sub esp, 8
fstp dword [esp + 0x40]
fild dword [0x1493f00]
fstp dword [esp + 0x48]
fld dword [esi + 0x50]
fld dword [esp + 0x40]
fld st(0)
fmulp st(2)
fld qword [0x4414e0]
fdiv st(2), st(0)
fld dword [esp + 0x48]
fld st(0)
fmulp st(4)
fld dword [esi + 0x44]
fmulp st(4)
fxch st(3)
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp + 4]
fld dword [esi + 0x4c]
fmulp st(2)
fdivp st(1)
fmulp st(1)
fmul dword [esi + 0x44]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp]
push esi
call fcn.00403000
mov eax, dword [0x1493f00]
add esp, 0x14
sub dword [esi + 0x48], eax
jns 0x406605
mov dword [esi + 0x48], ebx
test dword [esi + 0xc], 0x10000
je 0x40664a
fld dword [esi + 0x64]
sub esp, 8
fstp dword [esp + 4]
fld dword [esi + 0x5c]
fstp dword [esp]
call fcn.00410b90
fld dword [esi + 0x44]
add esp, 8
fmul qword [0x441508]
fsubp st(1)
fstp dword [esi + 0x60]
fld dword [esi + 0x7c]
fmul qword [0x4414c0]
fstp dword [esi + 0x7c]
fldz
fstp dword [esi + 0x80]
jmp 0x40667d
fld dword [0x441770]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [0x4414bc]
fstp dword [esp + 8]
fld dword [0x44176c]
fstp dword [esp + 4]
fld dword [0x441768]
fstp dword [esp]
push esi
call fcn.00402240
add esp, 0x14
mov eax, dword [esi + 0x30]
fld dword [esi + 0x3c]
cmp eax, 1
jne 0x406690
fdiv qword [0x4414a8]
jmp 0x406696
fdiv qword [0x4414a0]
fadd dword [esi + 0x80]
fstp dword [esi + 0x80]
cmp eax, ebp
jne 0x4066ae
fldz
fstp dword [esi + 0x80]
fild dword [0x1493f00]
sub esp, 8
add esi, 0x84
fdiv qword [0x441498]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
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, 0x24
ret