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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x578c8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push esi
push edi
mov edi, ecx
call fcn.0046af90
mov ecx, edi
call fcn.0046ad40
mov eax, dword [edi + 0x84]
xor ebx, ebx
cmp eax, ebx
jne 0x46c798
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x90], eax
cmp eax, ebx
mov dword [esp + 0xb0], ebx
je 0x46c778
push 0x273e
mov ecx, eax
call fcn.00486d60
jmp 0x46c77a
xor eax, eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
push 0x5a5210
push eax
mov dword [esp + 0xb8], 0xffffffff
call sub.MSVCRT.dll__CxxThrowException
fld dword [0x590620]
mov ecx, dword [edi + 0xe8]
mov edx, dword [eax + 0x514]
fmul dword [0x590620]
mov al, byte [ecx + 0x13]
cmp edx, ebx
mov dword [esp + 0x90], edx
mov byte [esp + 0x13], al
mov dword [esp + 0x70], ebx
fstp dword [esp + 0x80]
jle 0x46d00a
mov esi, dword [ebp + 8]
jmp 0x46c7d8
xor ebx, ebx
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x70]
imul ebx, edx
shl ebx, 7
mov dword [esp + 0x1c], ebx
mov ecx, dword [edi + 0xfc]
fld qword [ecx + ebx + 0x30]
fstp dword [esp + 0x58]
fld qword [ecx + ebx + 0x38]
fst dword [esp + 0x60]
fmul dword [esp + 0x60]
fld dword [esp + 0x58]
fmul dword [esp + 0x58]
faddp st(1)
fcomp dword [esp + 0x80]
fnstsw ax
test ah, 1
je 0x46cfde
mov eax, dword [esp + 0x70]
lea ebx, [eax + 1]
imul ebx, edx
add ebx, dword [esp + 0x7c]
shl ebx, 7
xor eax, eax
mov dword [esp + 0x8c], ebx
fld qword [ebx + ecx + 0xb0]
mov dword [esp + 0x74], eax
fstp dword [esp + 0x5c]
fld qword [ebx + ecx + 0xb8]
fst dword [esp + 0x64]
fmul dword [esp + 0x64]
fld dword [esp + 0x5c]
fmul dword [esp + 0x5c]
faddp st(1)
fstp dword [esp + 0xa4]
cmp eax, 3
ja case.default.0x46c872
jmp dword [eax*4 + 0x46d024]
fld dword [esp + 0x60]
sub esp, 8
lea ecx, [esp + 0x2c]
fstp qword [esp]
fld dword [esp + 0x60]
sub esp, 8
fstp qword [esp]
push ecx
call fcn.00468d30
mov eax, dword [esi + 8]
add esp, 0x14
lea edx, [esp + 0x24]
push 1
push edx
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
fld dword [esp + 0x64]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub esp, 8
lea eax, [esp + 0x54]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x70], edx
fstp qword [esp]
fld dword [esp + 0x64]
sub esp, 8
fstp qword [esp]
push eax
call fcn.00468d30
mov edx, dword [esi + 8]
add esp, 0x14
lea ecx, [esp + 0x4c]
push 1
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x13]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x1c]
test al, al
mov eax, dword [edi + 0xfc]
jne 0x46c936
fld qword [eax + ecx + 0x40]
fstp dword [esp + 0x18]
fld qword [eax + ecx + 0xc0]
fstp dword [esp + 0x38]
fld qword [ebx + eax + 0x40]
fstp dword [esp + 0x20]
fld qword [ebx + eax + 0xc0]
jmp 0x46cc1a
fld qword [eax + ecx + 0x60]
fstp dword [esp + 0x18]
fld qword [eax + ecx + 0xe0]
fstp dword [esp + 0x38]
fld qword [ebx + eax + 0x60]
fstp dword [esp + 0x20]
fld qword [ebx + eax + 0xe0]
jmp 0x46cc1a
fld dword [esp + 0x64]
sub esp, 8
lea edx, [esp + 0x2c]
fchs
fstp qword [esp]
fld dword [esp + 0x60]
sub esp, 8
fstp qword [esp]
push edx
call fcn.00468d30
mov ecx, dword [esi + 8]
add esp, 0x14
lea eax, [esp + 0x24]
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
fld dword [esp + 0x60]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub esp, 8
lea ecx, [esp + 0x54]
fchs
fstp qword [esp]
fld dword [esp + 0x64]
sub esp, 8
mov dword [esp + 0x3c], edx
mov dword [esp + 0x78], eax
fstp qword [esp]
push ecx
call fcn.00468d30
mov eax, dword [esi + 8]
add esp, 0x14
lea edx, [esp + 0x4c]
push 1
push edx
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0xfc]
mov dword [esp + 0x3c], edx
test al, al
mov eax, dword [esp + 0x1c]
jne 0x46ca1e
fld qword [ecx + eax + 0xc8]
fstp dword [esp + 0x18]
fld qword [ecx + eax + 0x48]
fstp dword [esp + 0x38]
fld qword [ebx + ecx + 0xc8]
fstp dword [esp + 0x20]
fld qword [ebx + ecx + 0x48]
jmp 0x46cc1a
fld qword [ecx + eax + 0xe8]
fstp dword [esp + 0x18]
fld qword [ecx + eax + 0x68]
fstp dword [esp + 0x38]
fld qword [ebx + ecx + 0xe8]
fstp dword [esp + 0x20]
fld qword [ebx + ecx + 0x68]
jmp 0x46cc1a
fld dword [esp + 0x64]
sub esp, 8
lea eax, [esp + 0x2c]
fchs
fstp qword [esp]
fld dword [esp + 0x64]
sub esp, 8
fchs
fstp qword [esp]
push eax
call fcn.00468d30
mov edx, dword [esi + 8]
add esp, 0x14
lea ecx, [esp + 0x24]
push 1
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
fld dword [esp + 0x60]
sub esp, 8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub esp, 8
fchs
fstp qword [esp + 8]
fld dword [esp + 0x68]
fchs
fstp qword [esp]
lea edx, [esp + 0x5c]
mov dword [esp + 0x3c], eax
push edx
mov dword [esp + 0x7c], ecx
call fcn.00468d30
mov ecx, dword [esi + 8]
add esp, 0x14
lea eax, [esp + 0x4c]
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ecx, dword [edi + 0xfc]
mov dword [esp + 0x3c], eax
mov al, byte [esp + 0x13]
mov dword [esp + 0x30], edx
test al, al
jne 0x46cb0b
fld qword [ebx + ecx + 0xd0]
mov eax, dword [esp + 0x1c]
fstp dword [esp + 0x18]
fld qword [ebx + ecx + 0x50]
fstp dword [esp + 0x38]
fld qword [ecx + eax + 0xd0]
fstp dword [esp + 0x20]
fld qword [ecx + eax + 0x50]
jmp 0x46cc1a
fld qword [ebx + ecx + 0xf0]
mov eax, dword [esp + 0x1c]
fstp dword [esp + 0x18]
fld qword [ebx + ecx + 0x70]
fstp dword [esp + 0x38]
fld qword [ecx + eax + 0xf0]
fstp dword [esp + 0x20]
fld qword [ecx + eax + 0x70]
jmp 0x46cc1a
fld dword [esp + 0x60]
sub esp, 8
lea ecx, [esp + 0x2c]
fstp qword [esp]
fld dword [esp + 0x64]
sub esp, 8
fchs
fstp qword [esp]
push ecx
call fcn.00468d30
mov eax, dword [esi + 8]
add esp, 0x14
lea edx, [esp + 0x24]
push 1
push edx
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
fld dword [esp + 0x64]
sub esp, 8
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x54]
fstp qword [esp]
fld dword [esp + 0x60]
sub esp, 8
mov dword [esp + 0x3c], ecx
fchs
fstp qword [esp]
push eax
mov dword [esp + 0x7c], edx
call fcn.00468d30
mov edx, dword [esi + 8]
add esp, 0x14
lea ecx, [esp + 0x4c]
push 1
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x13]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0xfc]
test al, al
jne 0x46cbf4
fld qword [ebx + ecx + 0x58]
mov eax, dword [esp + 0x1c]
fstp dword [esp + 0x18]
fld qword [ebx + ecx + 0xd8]
fstp dword [esp + 0x38]
fld qword [ecx + eax + 0x58]
fstp dword [esp + 0x20]
fld qword [ecx + eax + 0xd8]
jmp 0x46cc1a
fld qword [ebx + ecx + 0x78]
mov eax, dword [esp + 0x1c]
fstp dword [esp + 0x18]
fld qword [ebx + ecx + 0xf8]
fstp dword [esp + 0x38]
fld qword [ecx + eax + 0x78]
fstp dword [esp + 0x20]
fld qword [ecx + eax + 0xf8]
fstp dword [esp + 0x34]
mov ecx, dword [edi + 0xc0]
fld dword [esp + 0x18]
fcomp qword [ecx + 0x38]
fnstsw ax
test ah, 1
je 0x46cc60
fld dword [esp + 0x38]
fcomp qword [ecx + 0x38]
fnstsw ax
test ah, 1
je 0x46cc60
fld dword [esp + 0x20]
fcomp qword [ecx + 0x38]
fnstsw ax
test ah, 1
je 0x46cc60
fld dword [esp + 0x34]
fcomp qword [ecx + 0x38]
fnstsw ax
test ah, 1
jne 0x46cfc1
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x3c]
mov eax, ecx
mov dword [esp + 0x14], ecx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x20]
fild dword [esp + 0x6c]
fld dword [esp + 0x38]
fsub dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], edx
fdiv st(1)
fstp dword [esp + 0x88]
fld dword [esp + 0x34]
fsub dword [esp + 0x20]
fdiv st(1)
fstp dword [esp + 0x6c]
fstp st(0)
fld dword [esp + 0xa4]
fcomp dword [esp + 0x80]
fnstsw ax
test ah, 1
mov eax, dword [esp + 0x3c]
je 0x46ce1c
cmp ecx, eax
jl 0x46cfc1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fstp dword [esp + 0x84]
fld dword [esp + 0x54]
fsub dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov eax, ebx
fdiv dword [esp + 0x84]
cmp eax, edx
mov dword [esp + 0x48], ecx
fstp dword [esp + 0x44]
jg 0x46cde7
fld dword [esp + 0x48]
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.0046c6c0
mov edx, dword [esi + 8]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x14]
push 1
push ecx
push edx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], eax
call dword [sym.imp.GDI32.dll_DPtoLP]
lea eax, [esp + 0x9c]
mov ecx, edi
push eax
call fcn.0046f130
test al, al
je 0x46cdce
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
mov ecx, eax
mov eax, ebx
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x78]
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
mov edx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0xa0]
lea eax, [eax + ecx*4]
mov ecx, dword [edi + eax*4 + 0x1364]
mov eax, dword [esp + 0x9c]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetPixelV]
fld dword [esp + 0x48]
fadd dword [esp + 0x44]
mov eax, dword [esp + 0x30]
inc ebx
cmp ebx, eax
fstp dword [esp + 0x48]
jle 0x46cd1e
fld dword [esp + 0x40]
fadd dword [esp + 0x88]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
dec eax
cmp eax, ecx
mov dword [esp + 0x14], eax
fstp dword [esp + 0x40]
fld dword [esp + 0x54]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x54]
jge 0x46ccf1
jmp 0x46cfba
cmp ecx, eax
jl 0x46cfc1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fstp dword [esp + 0x84]
fld dword [esp + 0x54]
fsub dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov ecx, ebx
fdiv dword [esp + 0x84]
cmp ecx, eax
mov dword [esp + 0x48], edx
fstp dword [esp + 0x44]
jg 0x46cf8a
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push 1
push edx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
call dword [sym.imp.GDI32.dll_DPtoLP]
lea ecx, [esp + 0x24]
push ecx
call fcn.00468d90
fild dword [esp + 0x28]
fild dword [esp + 0x2c]
add esp, 4
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fcomp dword [esp + 0x80]
fnstsw ax
fstp st(0)
test ah, 1
fstp st(0)
je 0x46cf71
fld dword [esp + 0x48]
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.0046c6c0
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x94]
push 1
push eax
push ecx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], edx
call dword [sym.imp.GDI32.dll_DPtoLP]
lea edx, [esp + 0x94]
mov ecx, edi
push edx
call fcn.0046f130
test al, al
je 0x46cf71
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
mov ecx, eax
mov eax, ebx
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x78]
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x14]
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
mov edx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x98]
lea eax, [eax + ecx*4]
mov ecx, dword [edi + eax*4 + 0x1364]
mov eax, dword [esp + 0x94]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetPixelV]
fld dword [esp + 0x48]
fadd dword [esp + 0x44]
mov eax, dword [esp + 0x30]
inc ebx
cmp ebx, eax
fstp dword [esp + 0x48]
jle 0x46ce6f
fld dword [esp + 0x40]
fadd dword [esp + 0x88]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
dec eax
cmp eax, ecx
mov dword [esp + 0x14], eax
fstp dword [esp + 0x40]
fld dword [esp + 0x54]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x54]
jge 0x46ce42
mov ebx, dword [esp + 0x8c]
mov eax, dword [esp + 0x74]
inc eax
cmp eax, 4
mov dword [esp + 0x74], eax
jl 0x46c869
mov edx, dword [esp + 0x90]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
add ebx, 0x80
inc eax
mov dword [esp + 0x1c], ebx
cmp eax, edx
mov dword [esp + 0x7c], eax
jl 0x46c7ea
mov eax, dword [esp + 0x70]
inc eax
cmp eax, edx
mov dword [esp + 0x70], eax
jl 0x46c7d6
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4