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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494ec9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x484
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 0x6c]
xor ecx, ecx
push edi
push 0x64
mov cx, word [eax + 0xfe]
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov cx, word [eax + 0xfc]
mov dword [esp + 0x24], ecx
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x498], ebx
je 0x464b0c
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ecx
push edx
mov ecx, edi
call fcn.0047fe10
mov dword [edi], 0x4a03e8
mov dword [edi + 0x54], ebx
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x58], ebx
mov dword [edi + 0x60], ebx
mov dword [esp + 0x1c], edi
jmp 0x464b10
mov dword [esp + 0x1c], ebx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0045d990
mov ecx, edi
mov dword [esp + 0x28], eax
call fcn.0045d9a0
mov dword [esp + 0x18], eax
mov eax, 3
mov dword [esp + 0x8c], ebx
mov word [esp + 0x6a], ax
mov word [esp + 0x68], ax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x6c], 9
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x68]
push eax
mov dword [esp + 0x49c], 1
mov dword [esp + 0x8c], 0x484e60
call fcn.0047bc40
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x8c], 0x484e60
call fcn.0047bc40
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x464db0
mov edx, dword [edi + 0x6c]
cmp byte [edx + 0xf6], 0x10
jne 0x464db0
mov eax, dword [esi + 0x24]
mov dword [esp + 0x14], 1
fld dword [eax + 0x10]
fcomp qword [0x4a0490]
fnstsw ax
test ah, 1
je 0x464c00
lea ecx, [esp + 0x90]
push str._n16_bit_Data_and_12_bit_LUT_LUT_Error__incorrect_data_n
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
push ebx
lea edx, [esp + 0x9c]
push edx
call fcn.0045b920
add esp, 0x10
cmp dword [esi + 0x10], 1
jne 0x464e48
mov eax, dword [esp + 0x24]
xor edx, edx
cmp eax, ebx
mov dword [esp + 0x28], edx
jle 0x464fbd
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x18], ecx
jle 0x464e32
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov eax, dword [eax + 8]
mov edi, dword [edi + 8]
mov eax, dword [eax + edx*4]
mov edx, dword [edi + edx*4]
mov edi, dword [esi + 0x2c]
mov ax, word [eax + ecx*2]
mov cx, word [edx + ecx*2]
and ecx, 0xffff
and eax, 0xffff
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x50]
fild dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xc]
fmul qword [0x4a0460]
fild dword [esp + 0xc]
mov edx, dword [ecx + eax*4]
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x10], eax
xor eax, eax
fmul qword [0x4a0460]
fld st(1)
lea ecx, [edx*8]
fsub st(1)
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
fstp qword [esp + 0x34]
fmul qword [0x4a0468]
faddp st(1)
mov ecx, ebx
and ecx, 3
fmul qword [0x4a0460]
fstp dword [esp + 0xc]
fld qword [esp + 0x34]
fstp dword [esp + 0x14]
fld qword [0x4a0308]
rep stosb byte es:[edi], al
fst qword [esp + 0x34]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
fld dword [esp + 0xc]
fmul dword [esp + 0xc]
mov ecx, dword [esi + 0x2c]
fstp qword [esp + 0x3c]
fld dword [esp + 0x14]
fmul st(1)
fld dword [esp + 0xc]
fmul qword [esp + 0x3c]
fstp qword [esp + 0x4c]
fld dword [esp + 0xc]
fmul st(2)
mov edi, dword [esp + 0x50]
fstp qword [esp + 0x44]
fld dword [esp + 0x14]
fmul qword [esp + 0x3c]
fstp qword [esp + 0x54]
fld dword [esp + 0x14]
fmul dword [esp + 0xc]
fstp qword [esp + 0x5c]
fstp qword [ecx]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x2c]
mov edi, dword [esp + 0x48]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0x14], edi
mov eax, dword [esi + 0x2c]
mov edi, dword [esp + 0x58]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x2c]
fstp qword [eax + 0x20]
mov ecx, dword [esi + 0x2c]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x5c]
fld dword [esp + 0x14]
mov dword [ecx + 0x2c], edi
mov ecx, dword [esi + 0x2c]
mov edi, dword [esp + 0x60]
mov dword [ecx + 0x30], eax
test edx, edx
mov dword [ecx + 0x34], edi
mov ecx, dword [esi + 0x2c]
fstp qword [ecx + 0x38]
fld dword [esp + 0xc]
mov eax, dword [esi + 0x2c]
fstp qword [eax + 0x40]
mov ecx, dword [esi + 0x2c]
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0x3ff00000
jle 0x464df3
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x2c]
sub ecx, eax
fld qword [ecx + eax]
fmul qword [eax]
add eax, 8
dec edx
faddp st(1)
jne 0x464da1
jmp 0x464df7
mov eax, dword [esi + 0x24]
mov dword [esp + 0x14], ebx
fld dword [eax + 0x10]
fcomp qword [0x4a0490]
fnstsw ax
test ah, 0x41
jne 0x464c00
lea ecx, [esp + 0x90]
push str._n12_bit_Data_and_16_bit_LUT__converting_all_data_to_16_bit__n
push ecx
mov dword [esp + 0x1c], 1
call dword [sym.imp.MSVCRT.dll_sprintf]
push ebx
lea edx, [esp + 0x9c]
jmp 0x464bf7
fstp st(0)
jmp 0x464dfb
fstp qword [esp + 0x34]
mov eax, dword [esi + 0x2c]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
fld qword [esp + 0x38]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x2c]
add esp, 4
inc ecx
mov eax, dword [eax + edx*4]
mov dword [esp + 0x18], ecx
fstp dword [eax + ecx*4 - 4]
cmp ecx, dword [esp + 0x20]
jl 0x464c2e
xor ebx, ebx
mov eax, dword [esp + 0x24]
inc edx
cmp edx, eax
mov dword [esp + 0x28], edx
jl 0x464c1c
jmp 0x464fbd
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0xc], eax
jle 0x464fbd
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, ebx
mov dword [esp + 0x18], ecx
jle 0x464fac
jmp 0x464e76
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
mov edx, dword [edx + 8]
mov edx, dword [edx + eax*4]
mov di, word [edx + ecx*2]
mov edx, dword [esp + 0x2c]
mov edx, dword [edx + 8]
mov eax, dword [edx + eax*4]
mov bx, word [eax + ecx*2]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x464ed0
and edi, 0xffff
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fmul qword [0x4a0478]
call sub.MSVCRT.dll__ftol
and ebx, 0xffff
mov edi, eax
mov dword [esp + 0x10], ebx
fild dword [esp + 0x10]
fmul qword [0x4a0478]
call sub.MSVCRT.dll__ftol
mov ebx, eax
test di, di
jbe 0x464ee9
and edi, 0xffff
fldln2
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fyl2x
jmp 0x464eef
fld qword [0x4a0308]
test bx, bx
jbe 0x464f08
and ebx, 0xffff
fldln2
mov dword [esp + 0x10], ebx
fild dword [esp + 0x10]
fyl2x
jmp 0x464f0e
fld qword [0x4a0308]
fld st(1)
fsub st(1)
mov edi, dword [esi + 0x24]
sub esp, 8
mov ecx, edi
fstp dword [esp + 0x18]
fmul qword [0x4a0468]
fadd st(1)
fmul qword [0x4a0460]
fstp qword [esp + 0x3c]
fstp st(0)
fld dword [esp + 0x18]
fstp qword [esp]
call fcn.00478ab0
fld qword [esp + 0x34]
sub esp, 8
mov ecx, edi
fstp qword [esp]
mov ebx, eax
call fcn.00478b00
test ebx, ebx
jl 0x464f7a
xor ecx, ecx
mov cx, word [edi]
cmp ebx, ecx
jge 0x464f7a
test eax, eax
jl 0x464f7a
xor edx, edx
mov dx, word [edi + 2]
cmp eax, edx
jge 0x464f7a
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + ebx*4]
fld dword [ecx + eax*4]
jmp 0x464f80
fld dword [0x4a0410]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov eax, dword [edx + 8]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
fstp dword [edx + eax*4]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x464e6e
mov eax, dword [esp + 0xc]
xor ebx, ebx
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x464e5a
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x464fd5
mov ecx, esi
call fcn.00479e20
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x464fef
call fcn.00479e20
mov eax, dword [esp + 0x2c]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esp + 0x84]
mov dword [esp + 0x498], 0xffffffff
cmp esi, ebx
je 0x465015
mov ecx, esi
call fcn.0047a4b0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x490]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4