Function at 0x407010
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 + 0x10], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], ebx
lea edi, [ebx + 5]
lea ebp, [ebx + 1]
jmp 0x407040
fld dword [esi + 0x54]
fsub dword [esi + 0x5c]
fstp dword [esp + 0x28]
fld dword [esi + 0x58]
fsub dword [esi + 0x64]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fld dword [esp + 0x28]
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 + 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 + 0x20]
fld dword [0xc5fbb4]
fsub dword [esi + 0x64]
fld dword [esi + 0x8c]
fmulp st(2)
fsubrp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld dword [esp + 0x20]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.00430490
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
sub esp, 8
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fstp dword [esp]
call fcn.0041ae30
add esp, 8
fstp dword [esp + 0x20]
cmp dword [esi + 0x10], edi
jne 0x407125
mov dword [0x44ec34], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebx
fld dword [0x9107bc]
fstp dword [esi + 0x54]
fld dword [0xc5fbb4]
fstp dword [esi + 0x58]
jmp 0x407040
fld dword [esi + 0x64]
sub esp, 8
fstp dword [esp + 4]
fld dword [esi + 0x5c]
fstp dword [esp]
call fcn.00410b90
fstp qword [esp + 0x20]
fld dword [esi + 0x64]
fstp dword [esp + 4]
fld dword [esi + 0x5c]
fstp dword [esp]
call fcn.0040e320
fsubr qword [esp + 0x20]
add esp, 8
fld dword [esi + 0x44]
fmul qword [0x4417e8]
fcompp
fnstsw ax
test ah, 5
jp 0x407172
or dword [esi + 0xc], 0x10000
jmp 0x407175
mov dword [esi + 0xc], ebx
cmp dword [esi + 0x30], 9
je 0x4072b7
cmp dword [0x19504c0], ebx
jne 0x40718f
mov dword [esi + 0x10], ebx
jmp 0x40728e
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x40728e
fld dword [0x9107bc]
fstp dword [esi + 0x54]
fld dword [0xc5fbb4]
mov dword [esi + 0x20], ebx
fstp dword [esi + 0x58]
cmp ecx, ebp
jle 0x407201
fld dword [esp + 0x20]
sub esp, 8
fstp dword [esp + 4]
fld dword [esi + 0x78]
fstp dword [esp]
call fcn.00402170
fcomp qword [0x441698]
add esp, 8
fnstsw ax
test ah, 5
jp 0x407201
push ebp
cmp ecx, 2
jne 0x4071eb
call fcn.0041ad70
add esp, 4
add eax, edi
jmp 0x4071f6
call fcn.0041ad70
add esp, 4
add eax, 6
fldz
mov dword [esi + 0x30], eax
fstp dword [esi + 0x3c]
mov dword [esi + 0x10], ebp
fld dword [0x4417e0]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x407289
fld dword [0xc5e7a8]
fsub dword [esi + 0x60]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fabs
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fcomp dword [0x441590]
fnstsw ax
test ah, 5
jp 0x407289
fld dword [esi + 0x38]
push 3
fmul qword [0x441588]
push esi
mov dword [esi + 0x10], ebp
mov dword [esi + 0x30], 9
fstp dword [esi + 0x38]
call fcn.00401f90
mov eax, dword [0x14bb1f0]
fld dword [esi + 0x44]
add esp, 8
imul eax, eax, 0x9c
fstp dword [eax + 0x8b25b0]
fld dword [esi + 0x78]
fstp dword [eax + 0x8b25e4]
fldz
fstp dword [esi + 0x40]
mov edx, dword [0x44ec30]
mov dword [0xb10864], edx
cmp dword [esi + 0x10], ebx
jne 0x4072b7
fld dword [0x4417dc]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x4072b7
fld dword [0x441578]
push ecx
fstp dword [esp]
push esi
call fcn.00403150
add esp, 8
jmp 0x407040
fld dword [0x4415a4]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x4072cb
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x4072db
dec eax
mov dword [esi + 0x18], eax
jmp 0x407396
fld dword [esi + 0x78]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x30]
fstp dword [esp + 4]
fld dword [esp + 0x34]
fstp dword [esp]
call fcn.0041ae30
add esp, 4
fstp dword [esp]
call fcn.004021b0
fstp dword [esp + 0x30]
add esp, 8
fld dword [esp + 0x28]
fstp dword [esi + 0x74]
cmp dword [esi + 0x10], ebx
je 0x407396
fld dword [0x4417d8]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x407396
fild dword [0x19924b0]
fdiv qword [0x441568]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
call fcn.004303a0
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fdiv qword [0x4414a0]
fadd dword [esp + 0x28]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fst dword [esi + 0x74]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x407378
fld qword [0x441558]
fadd st(1), st(0)
fxch st(1)
fstp dword [esi + 0x74]
jmp 0x407380
fstp st(0)
fld qword [0x441558]
fld dword [esi + 0x74]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x407394
fsubr dword [esi + 0x74]
fstp dword [esi + 0x74]
jmp 0x407396
fstp st(0)
xor eax, eax
cmp dword [esi + 0x10], ebx
sete al
push eax
push ebx
push esi
call fcn.00402da0
add esp, 0xc
cmp dword [esi + 0x14], 0xc
jle 0x4073c2
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 0x4073da
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 0x4073f6
fsubr dword [esi + 0x74]
fstp dword [esi + 0x74]
jmp 0x4073f8
fstp st(0)
push esi
call fcn.00401d80
mov ecx, dword [esi + 0x30]
add esp, 4
cmp ecx, 4
je 0x407417
cmp ecx, edi
je 0x407417
cmp ecx, 6
je 0x407417
cmp ecx, 7
jne 0x40741b
mov dword [esp + 0x38], ebp
mov edx, dword [0x1493f00]
add dword [esi + 0x34], edx
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]
cmp eax, ecx
jl 0x407443
cdq
idiv ecx
mov dword [esi + 0x34], edx
mov dword [0x44ec34], ebp
mov eax, dword [esi + 0x30]
cmp eax, 9
je 0x407529
mov ecx, dword [0x44ec34]
cmp ecx, ebx
jne 0x407462
cmp eax, 2
je 0x407529
cmp dword [esi + 0x10], ebx
jne 0x4074b2
cmp ecx, ebx
je 0x4074bc
push 0x80
call fcn.0041ad70
add esp, 4
cmp eax, 0x6e
jle 0x4074b2
push 0x80
call fcn.0041ad70
add esp, 4
push ebp
cmp eax, 0x40
jle 0x4074a2
call fcn.0041ad70
add esp, 4
add eax, edi
mov dword [esi + 0x30], eax
jmp 0x407529
call fcn.0041ad70
add esp, 4
add eax, 6
mov dword [esi + 0x30], eax
jmp 0x407529
mov ecx, dword [0x44ec34]
cmp ecx, ebx
jne 0x4074c2
cmp dword [esp + 0x38], ebx
jne 0x407529
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x407516
cmp ecx, ebx
je 0x4074dc
cmp dword [esp + 0x38], ebx
je 0x4074dc
mov dword [esi + 0x30], 2
jmp 0x407529
cmp eax, ebx
je 0x407516
cmp eax, ebp
jg 0x407516
fld dword [esi + 0x74]
fsub dword [esi + 0x78]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fabs
fstp dword [esp + 0x30]
fld1
fld dword [esp + 0x30]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x407585
fcomp dword [0x441550]
fnstsw ax
test ah, 0x41
je 0x407587
mov dword [esi + 0x30], ebp
test dword [esi + 0xc], 0x10000
je 0x407529
mov dword [esi + 0x30], 3
mov edi, dword [esp + 0x10]
cmp edi, dword [esi + 0x30]
jne 0x40753a
cmp dword [0x44ec34], ebx
je 0x407543
push esi
call fcn.00401dc0
add esp, 4
mov ecx, dword [esi + 0x30]
cmp edi, ecx
je 0x4075ad
cmp dword [0x1493ee8], ebx
je 0x407597
cmp edi, ebp
jg 0x40758c
cmp ecx, ebp
jg 0x40758c
mov edi, dword [esi + 8]
mov edx, dword [esp + 0x10]
lea eax, [ecx + ecx*2]
add eax, eax
mov eax, dword [edi + eax*8 + 0x54]
imul eax, dword [esp + 0x2c]
lea ebp, [edx + edx*2]
cdq
add ebp, ebp
idiv dword [edi + ebp*8 + 0x54]
mov edi, dword [esp + 0x10]
add eax, 0x40
mov dword [esi + 0x34], eax
jmp 0x407597
fstp st(0)
mov dword [esi + 0x30], ebx
jmp 0x407519
cmp dword [0x44ec34], ebx
jne 0x407597
mov dword [esi + 0x34], ebx
cmp dword [esi + 0x24], 0x80
jle 0x4075ad
mov edx, dword [esp + 0x2c]
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 + 0x30]
idiv dword [ebp + edi*8 + 0x54]
fld dword [esp + 0x30]
fabs
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fst dword [esp + 0x14]
fld qword [0x441548]
fcom st(1)
fnstsw ax
mov dword [esi + 0x34], edx
test ah, 5
jp 0x4075ff
fld st(1)
fsubr qword [0x441558]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
cmp ecx, 2
je 0x40779b
cmp ecx, 9
je 0x40779b
cmp dword [esp + 0x38], ebx
jne 0x40779b
fcom qword [0x441540]
fnstsw ax
test ah, 0x41
jne 0x407651
fld dword [esi + 0x74]
fld dword [esi + 0x78]
fcompp
fnstsw ax
fmul qword [0x441510]
test ah, 5
jp 0x407649
fadd qword [0x4417d0]
jmp 0x407655
fsubr qword [0x4417c8]
jmp 0x407655
fstp st(0)
fldz
fstp dword [esp + 0x38]
cmp dword [esi + 0x1c], ebx
je 0x40766c
fld dword [esp + 0x38]
fmul qword [0x441520]
fstp dword [esp + 0x38]
fcompp
fnstsw ax
test ah, 5
jp 0x407683
fld dword [esp + 0x38]
fmul qword [0x441518]
fstp dword [esp + 0x38]
fild dword [0x1493f00]
sub esp, 8
lea edi, [esi + 0x3c]
cmp dword [esi + 0x10], ebx
je 0x4076a4
fdiv qword [0x4417c0]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
jmp 0x4076b2
fdiv qword [0x4417b8]
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 + 0x20]
fmul qword [0x4414c0]
add esp, 0xc
fstp dword [esp + 0x10]
fld dword [0x4417b0]
fcom dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4076eb
fstp dword [esp + 0x10]
jmp 0x4076ed
fstp st(0)
fld dword [esp + 0x38]
push ecx
fstp dword [esp]
call fcn.0041ab40
fmul dword [esp + 0x14]
lea eax, [esi + 0x40]
fstp dword [esp + 0x14]
fild dword [0x1493f00]
fdiv qword [0x4416a8]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fstp dword [esp]
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
push eax
call fcn.0041ab60
fild dword [0x1493f00]
add esp, 0xc
fmul dword [edi]
fmul qword [0x4414d8]
fstp dword [esp + 0x38]
fld dword [esp + 0x14]
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 0x407765
fstp st(0)
fld dword [esi + 0x74]
jmp 0x407768
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 0x407787
fld dword [esi + 0x78]
fsub st(1)
fstp dword [esi + 0x78]
fldz
fcomp dword [esi + 0x78]
fnstsw ax
test ah, 0x41
jne 0x40779f
fadd dword [esi + 0x78]
fstp dword [esi + 0x78]
jmp 0x4077a1
fstp st(2)
fstp st(1)
fstp st(0)
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
fstp dword [esp + 0x38]
cmp eax, ebx
jne 0x4077e4
fld dword [0x4417ac]
fstp dword [esp + 0x38]
cmp eax, 1
jne 0x4077f3
fld dword [0x4417a8]
fstp dword [esp + 0x38]
cmp eax, 3
jne 0x407802
fld dword [0x441774]
fstp dword [esp + 0x38]
fld dword [esp + 0x14]
fcom qword [0x441710]
fnstsw ax
test ah, 0x41
jne 0x40782f
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 0x407831
fstp st(0)
fild dword [0x1493f00]
sub esp, 8
lea edi, [esi + 0x38]
fdiv qword [0x441678]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
push edi
call fcn.0041ab60
fild dword [0x1493f00]
add esp, 0xc
push 1
fstp dword [esp + 0x3c]
push ebx
fld dword [esi + 0x8c]
sub esp, 8
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
add esp, 0x14
test dword [esi + 0xc], 0x10000
je 0x4078f8
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 [0x4417a0]
fsubp st(1)
fstp dword [esi + 0x60]
fld dword [esi + 0x7c]
fmul qword [0x4414c0]
fstp dword [esi + 0x7c]
fldz
fstp dword [esi + 0x80]
jmp 0x40792b
fld dword [0x4414bc]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [0x4414b8]
fstp dword [esp + 8]
fld dword [0x4414b4]
fstp dword [esp + 4]
fld dword [0x4414b0]
fstp dword [esp]
push esi
call fcn.00402240
add esp, 0x14
cmp dword [esi + 0x30], 1
fld dword [esi + 0x3c]
jne 0x40793c
fmul qword [0x441798]
jmp 0x407942
fdiv qword [0x441790]
fadd dword [esi + 0x80]
sub esp, 8
add esi, 0x84
fstp dword [esi - 4]
fild dword [0x1493f00]
fdiv qword [0x441788]
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