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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d70bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
push ebx
inc eax
lea ebx, [ecx + 1]
push esi
imul ebx, eax
mov esi, ebx
push edi
imul esi, ebx
shl esi, 3
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x48], edi
lea esi, [ebx*8]
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x48], edi
add esp, 8
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
xor esi, esi
mov dword [esp + 0x110], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov edx, dword [ebp + 8]
mov byte [esp + 0x110], 1
mov eax, dword [edx]
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x46f6f7
mov dword [esp + 0xc], esi
jmp 0x46f703
mov ecx, dword [edx + 4]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0xc], ecx
cmp eax, esi
je 0x46f9e4
cmp dword [esp + 0xc], 4
jl 0x46f9e4
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x74]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x54], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x64], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x68], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
push ecx
lea eax, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.00405110
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0xb4]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x118], 2
call fcn.004051b0
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
test edi, edi
mov byte [esp + 0x110], 1
jle 0x46f7cc
fld qword [esp + 0x64]
fld qword [esp + 0x5c]
fld qword [esp + 0x54]
mov edx, edi
mov eax, dword [ecx]
add ecx, 4
dec edx
fadd dword [eax]
fld dword [eax + 4]
faddp st(2)
fld dword [eax + 8]
faddp st(3)
jne 0x46f7ac
fstp qword [esp + 0x54]
fstp qword [esp + 0x5c]
fstp qword [esp + 0x64]
fild dword [esp + 0xc]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
fstp qword [esp + 0x20]
fld qword [esp + 0x58]
fdiv qword [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0xc0]
fld qword [esp + 0x68]
fdiv qword [esp + 0x28]
fld qword [esp + 0x70]
fdiv qword [esp + 0x28]
fstp dword [esp + 0x38]
fstp dword [esp + 0x1c]
fstp dword [esp + 0x24]
call fcn.00405110
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
mov byte [esp + 0x118], 3
call fcn.004051b0
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x110], 1
test edi, edi
jle 0x46f8d2
mov eax, dword [ecx]
add ecx, 4
dec edi
fld dword [eax]
fsub dword [esi]
fld st(0)
fmul st(1)
fadd qword [esp + 0x6c]
fstp qword [esp + 0x6c]
fstp st(0)
fld dword [eax + 4]
fsub dword [esi + 4]
fld st(0)
fmul st(1)
fadd qword [esp + 0x8c]
fstp qword [esp + 0x8c]
fstp st(0)
fld dword [eax + 8]
fsub dword [esi + 8]
fld st(0)
fmul st(1)
fadd qword [esp + 0xac]
fstp qword [esp + 0xac]
fstp st(0)
fld dword [eax + 4]
fsub dword [esi + 4]
fld dword [eax]
fsub dword [esi]
fmulp st(1)
fadd qword [esp + 0x74]
fstp qword [esp + 0x74]
fld dword [eax]
fsub dword [esi]
fld dword [eax + 8]
fsub dword [esi + 8]
fmulp st(1)
fadd qword [esp + 0x7c]
fstp qword [esp + 0x7c]
fld dword [eax + 4]
fsub dword [esi + 4]
fld dword [eax + 8]
fsub dword [esi + 8]
fmulp st(1)
fadd qword [esp + 0x94]
fstp qword [esp + 0x94]
jne 0x46f83c
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0xa0], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x98]
push eax
lea ecx, [esp + 0x70]
push 3
push ecx
mov dword [esp + 0xb4], edx
call fcn.00475860
mov edi, dword [ebp + 0x1c]
lea eax, [esp + 0xe4]
fstp st(0)
add esp, 0xc
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 3
jmp 0x46f956
mov eax, dword [esp + 0x14]
fld qword [eax + 0x18]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
fstp dword [esp + 0x2c]
fld qword [eax]
push edx
fstp dword [esp + 0x14]
fld qword [eax - 0x18]
lea eax, [esp + 0x14]
fstp dword [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0xc0]
call fcn.00405110
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x54]
push eax
push edx
mov byte [esp + 0x118], 4
call fcn.004051b0
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x110], 1
call fcn.00405150
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
add edx, 8
add ecx, 0xc
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
jne 0x46f952
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
cmp eax, ecx
mov dword [esp + 0xc], eax
je 0x46fb82
jmp 0x46f9f3
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
jmp 0x46f9d1
mov eax, dword [esp + 0xc]
mov esi, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0041a670
add esp, 0xc
lea ecx, [esp + 0xb4]
push eax
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x118], 5
call fcn.004051b0
fld dword [esp + 0x34]
fmul dword [edi]
fld dword [esp + 0x38]
fmul dword [edi + 4]
xor esi, esi
mov byte [esp + 0x110], 1
faddp st(1)
fld dword [esp + 0x3c]
fmul dword [edi + 8]
test ebx, ebx
faddp st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x34]
fmul dword [edi + 0xc]
fld dword [esp + 0x38]
fmul dword [edi + 0x10]
mov dword [esp + 0x18], esi
faddp st(1)
fld dword [esp + 0x3c]
fmul dword [edi + 0x14]
faddp st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x34]
fmul dword [edi + 0x18]
fld dword [esp + 0x38]
fmul dword [edi + 0x1c]
faddp st(1)
fld dword [esp + 0x3c]
fmul dword [edi + 0x20]
faddp st(1)
fstp dword [esp + 0x4c]
jle 0x46fb69
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0x18]
mov eax, esi
cdq
fld dword [esp + 0x4c]
inc ecx
idiv ecx
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], ecx
sub eax, edx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
call sub.MSVCRT.dll__CIpow
mov eax, esi
mov ecx, dword [ebp + 0x14]
cdq
fld dword [esp + 0x48]
idiv dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
call sub.MSVCRT.dll__CIpow
fmulp st(1)
cmp esi, ebx
fstp qword [esp + 0x2c]
jge 0x46fb44
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
imul edx, esi
lea edi, [eax + edx*8]
mov ecx, dword [ebp + 0x18]
mov eax, esi
cdq
fld dword [esp + 0x4c]
inc ecx
idiv ecx
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], ecx
sub eax, edx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
call sub.MSVCRT.dll__CIpow
mov eax, esi
mov ecx, dword [ebp + 0x14]
cdq
fld dword [esp + 0x48]
idiv dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
call sub.MSVCRT.dll__CIpow
fmulp st(1)
inc esi
add edi, 8
cmp esi, ebx
fmul qword [esp + 0x2c]
fadd qword [edi - 8]
fstp qword [edi - 8]
jl 0x46fae9
mov edi, dword [ebp + 0x1c]
mov esi, dword [esp + 0x18]
fld dword [esp + 0x50]
fmul qword [esp + 0x2c]
mov eax, dword [esp + 0x10]
inc esi
mov dword [esp + 0x18], esi
fadd qword [eax]
add eax, 8
cmp esi, ebx
mov dword [esp + 0x10], eax
fstp qword [eax - 8]
jl 0x46fa92
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
add eax, 4
mov ecx, dword [edx + 4]
mov dword [esp + 0xc], eax
cmp eax, ecx
jne 0x46f9ec
test ebx, ebx
jle 0x46fbd6
xor edx, edx
mov esi, 1
mov dword [esp + 0x10], edx
cmp esi, ebx
jge 0x46fbc8
mov ecx, dword [esp + 0x44]
lea eax, [esi + edx]
add edx, esi
add edx, ebx
lea eax, [ecx + eax*8]
lea ecx, [ecx + edx*8 - 8]
mov edx, ebx
sub edx, esi
mov edi, dword [eax]
add eax, 8
mov dword [ecx], edi
mov edi, dword [eax - 4]
mov dword [ecx + 4], edi
lea edi, [ebx*8]
add ecx, edi
dec edx
jne 0x46fbab
mov edx, dword [esp + 0x10]
inc esi
add edx, ebx
mov dword [esp + 0x10], edx
lea eax, [esi - 1]
cmp eax, ebx
jl 0x46fb91
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
push ecx
push ebx
push edx
push esi
call fcn.00474c00
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x54]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x120]
add esp, 0x18
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18