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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44644e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x4138a9
mov eax, dword [ebx + 0x10]
mov esi, dword [eax + 0xe8]
mov edi, dword [eax + 0x60]
test esi, esi
mov dword [esp + 0xb0], esi
je 0x4138a9
cmp dword [esi + 4], 1
jne 0x4138a9
fld qword [eax]
fmul qword [eax + 0x18]
fld qword [eax + 0x10]
fmul qword [eax + 8]
fsubp st(1)
fdivr qword [0x449b30]
fld st(0)
fmul qword [eax + 0x18]
fstp qword [esp + 0x44]
fld st(0)
fmul qword [eax + 8]
fchs
fstp qword [esp + 0x4c]
fld st(0)
fmul qword [eax + 0x10]
fchs
fstp qword [esp + 0x54]
fld st(0)
fmul qword [eax]
fstp qword [esp + 0x5c]
fld qword [eax + 0x28]
fmul qword [eax + 0x10]
fld qword [eax + 0x20]
fmul qword [eax + 0x18]
fsubp st(1)
fmul st(1)
fstp qword [esp + 0x64]
fld qword [eax + 0x20]
fmul qword [eax + 8]
fld qword [eax + 0x28]
fmul qword [eax]
fsubp st(1)
fmulp st(1)
fld qword [ebx + 0x20]
fmul qword [esi + 0x50]
fld qword [esi + 0x58]
fmul qword [ebx + 0x30]
faddp st(1)
fstp qword [esp + 0x74]
fld qword [esi + 0x58]
fmul qword [ebx + 0x38]
fld qword [ebx + 0x28]
fmul qword [esi + 0x50]
faddp st(1)
fstp qword [esp + 0x7c]
fld qword [ebx + 0x20]
fmul qword [esi + 0x60]
fld qword [esi + 0x68]
fmul qword [ebx + 0x30]
faddp st(1)
fstp qword [esp + 0x84]
fld qword [esi + 0x68]
fmul qword [ebx + 0x38]
fld qword [esi + 0x60]
fmul qword [ebx + 0x28]
faddp st(1)
fstp qword [esp + 0x8c]
fld qword [ebx + 0x20]
fmul qword [esi + 0x70]
fld qword [esi + 0x78]
fmul qword [ebx + 0x30]
faddp st(1)
fadd qword [ebx + 0x40]
fstp qword [esp + 0x94]
fld qword [esi + 0x78]
fmul qword [ebx + 0x38]
fld qword [esi + 0x70]
fmul qword [ebx + 0x28]
faddp st(1)
fadd qword [ebx + 0x48]
fstp qword [esp + 0x9c]
fld qword [esp + 0x7c]
fmul qword [esp + 0x54]
fld qword [esp + 0x74]
fmul qword [esp + 0x44]
faddp st(1)
fstp qword [esp + 0xd0]
fld qword [esp + 0x7c]
fmul qword [esp + 0x5c]
fld qword [esp + 0x74]
fmul qword [esp + 0x4c]
mov ecx, dword [ebx + 4]
push eax
faddp st(1)
mov edx, dword [ecx]
fstp qword [esp + 0xdc]
fld qword [esp + 0x90]
fmul qword [esp + 0x58]
fld qword [esp + 0x88]
fmul qword [esp + 0x48]
faddp st(1)
fstp qword [esp + 0xe4]
fld qword [esp + 0x90]
fmul qword [esp + 0x60]
fld qword [esp + 0x88]
fmul qword [esp + 0x50]
faddp st(1)
fstp qword [esp + 0xec]
fld qword [esp + 0xa0]
fmul qword [esp + 0x58]
fld qword [esp + 0x98]
fmul qword [esp + 0x48]
faddp st(1)
fadd qword [esp + 0x68]
fstp qword [esp + 0xf4]
fld qword [esp + 0xa0]
fmul qword [esp + 0x60]
fld qword [esp + 0x98]
fmul qword [esp + 0x50]
faddp st(1)
fadd st(1)
fstp qword [esp + 0xfc]
fstp st(0)
fld qword [esp + 0x90]
fmul qword [esp + 0x78]
fld qword [esp + 0x88]
fmul qword [esp + 0x80]
fsubp st(1)
fdivr qword [0x449b30]
fld qword [esp + 0x90]
fmul st(1)
fstp qword [esp + 0x48]
fld qword [esp + 0x80]
fmul st(1)
fchs
fstp qword [esp + 0x50]
fld qword [esp + 0x88]
fmul st(1)
fchs
fstp qword [esp + 0x58]
fld qword [esp + 0x78]
fmul st(1)
fstp qword [esp + 0x60]
fld qword [esp + 0xa0]
fmul qword [esp + 0x88]
fld qword [esp + 0x98]
fmul qword [esp + 0x90]
fsubp st(1)
fmul st(1)
fstp qword [esp + 0x68]
fld qword [esp + 0x98]
fmul qword [esp + 0x80]
fld qword [esp + 0xa0]
fmul qword [esp + 0x78]
fsubp st(1)
fmul st(1)
fstp qword [esp + 0x70]
fstp st(0)
call dword [edx + 0x2c]
mov ecx, dword [ebx + 0x10]
call fcn.0041f400
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 8]
cmp eax, 2
jne 0x4133f3
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4133f3
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x413426
push 4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x108], 0
je 0x413419
mov ecx, eax
call fcn.0041a510
jmp 0x41341b
xor eax, eax
mov dword [esp + 0x108], 0xffffffff
mov ecx, dword [ebx + 0x10]
push eax
call fcn.0041f060
mov ecx, dword [ebx + 0x10]
push 0
call fcn.0041f0c0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx + 0x54]
mov ecx, dword [ebx + 0x10]
call fcn.0041f1c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 4]
test eax, eax
mov eax, dword [ebx + 0x10]
mov edx, dword [ecx]
push eax
je 0x413465
call dword [edx + 0x98]
jmp 0x41346b
call dword [edx + 0x94]
mov ecx, dword [ebx + 0x10]
call fcn.0041f170
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x1d0]
mov edx, dword [eax + 0x1d4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x1d8]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x1dc]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
fld qword [esp + 0xc]
fmul qword [esp + 0x54]
mov ecx, dword [eax + 0x1e0]
mov edx, dword [eax + 0x1e4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x1e8]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x1ec]
fstp qword [esp + 0xa4]
fld qword [esp + 0x14]
fmul qword [esp + 0x44]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
fst qword [esp + 0xb4]
fadd qword [esp + 0xa4]
fadd qword [esp + 0x64]
fst qword [esp + 0x24]
fld qword [esp + 0xc]
fmul qword [esp + 0x5c]
fstp qword [esp + 0xbc]
fld qword [esp + 0x14]
fmul qword [esp + 0x4c]
fld st(0)
fadd qword [esp + 0xbc]
fadd qword [esp + 0x6c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x34]
fmul qword [esp + 0x54]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
fst qword [esp + 0xc4]
fadd qword [esp + 0xb4]
fadd qword [esp + 0x64]
fstp qword [esp + 0x14]
fld qword [esp + 0x34]
fmul qword [esp + 0x5c]
fst qword [esp + 0x34]
fadd st(1)
fadd qword [esp + 0x6c]
fstp qword [esp + 0xc]
fstp st(0)
fld qword [esp + 0x14]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x413578
fstp st(0)
fld qword [esp + 0x14]
jmp 0x413597
fld qword [esp + 0x14]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x413597
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
fld qword [esp + 0xc]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x4135b8
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jmp 0x4135d7
fld qword [esp + 0xc]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4135d7
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
fld qword [esp + 0x3c]
fmul qword [esp + 0x44]
fst qword [esp + 0xb4]
fadd qword [esp + 0xa4]
fadd qword [esp + 0x64]
fstp qword [esp + 0x14]
fld qword [esp + 0x3c]
fmul qword [esp + 0x4c]
fst qword [esp + 0xa4]
fadd qword [esp + 0xbc]
fadd qword [esp + 0x6c]
fstp qword [esp + 0xc]
fld qword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x413628
fstp st(0)
fld qword [esp + 0x14]
jmp 0x413647
fld qword [esp + 0x14]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x413647
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
fld qword [esp + 0xc]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x413668
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jmp 0x413687
fld qword [esp + 0xc]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x413687
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
fld qword [esp + 0xb4]
fadd qword [esp + 0xc4]
fadd qword [esp + 0x64]
fstp qword [esp + 0x14]
fld qword [esp + 0xa4]
fadd qword [esp + 0x34]
fadd qword [esp + 0x6c]
fstp qword [esp + 0xc]
fld qword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4136c5
fstp st(0)
fld qword [esp + 0x14]
jmp 0x4136e4
fld qword [esp + 0x14]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x4136e4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
fld qword [esp + 0xc]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x413705
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jmp 0x413724
fld qword [esp + 0xc]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x413724
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
fld qword [esi + 0x30]
fabs
fstp qword [esp + 0x34]
fld qword [esi + 0x38]
fabs
fstp qword [esp + 0x3c]
sub esp, 8
fdiv qword [esp + 0x3c]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x2c]
fdiv qword [esp + 0x3c]
mov dword [esp + 0x1c], eax
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x34]
fdiv qword [esp + 0x44]
mov dword [esp + 0x2c], eax
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
fdiv qword [esp + 0x44]
mov dword [esp + 0x34], eax
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
add esp, 8
call sub.MSVCRT.dll__ftol
mov ecx, 8
lea esi, [esp + 0xd0]
lea edi, [esp + 0x74]
mov dword [esp + 0xc], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jge 0x413895
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
cmp esi, ecx
mov dword [esp + 0x2c], esi
jge 0x413884
fild dword [esp + 0x1c]
mov ecx, dword [esp + 0xb0]
fmul qword [esp + 0x3c]
lea edi, [ecx + 0x10]
fld st(0)
fmul qword [esp + 0xe0]
fstp qword [esp + 0xc4]
fmul qword [esp + 0xe8]
fstp qword [esp + 0xbc]
jmp 0x41380f
mov ecx, dword [esp + 0xb0]
fild dword [esp + 0x2c]
fmul qword [esp + 0x34]
fld st(0)
fmul qword [esp + 0xd0]
fadd qword [esp + 0xc4]
fadd qword [esp + 0xf0]
fstp qword [esp + 0x94]
fmul qword [esp + 0xd8]
fadd qword [esp + 0xbc]
fadd qword [esp + 0xf8]
fstp qword [esp + 0x9c]
cmp dword [ecx + 0x40], 7
jne 0x41385c
mov eax, dword [ecx + 0x48]
jmp 0x41385e
xor eax, eax
lea edx, [esp + 0x74]
push edi
push edx
push eax
lea eax, [ecx + 0x80]
mov ecx, ebx
push eax
call fcn.00415ff0
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov dword [esp + 0x2c], esi
jl 0x413808
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x4137c2
mov ecx, dword [ebx + 0x10]
call fcn.0041f410
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x10], eax
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
mov ecx, dword [esp + 0x100]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4