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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4784f0
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x496028]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
push eax
call sub.mfc90u.dll_CDC::FromHandle
lea ecx, [ebx + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ebx, dword [ebx + 0x10]
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], ebx
call sub.mfc90u.dll_CDC::CDC
mov dword [esp + 0xc0], 0
test esi, esi
jne 0x466c24
xor eax, eax
jmp 0x466c27
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x48]
call sub.mfc90u.dll_CDC::Attach
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], vtable.CBitmap.0
mov byte [esp + 0xc0], 1
mov eax, dword [edi + 0x70]
mov ecx, dword [edi + 0x6c]
push eax
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x78]
call sub.mfc90u.dll_CGdiObject::Attach
mov eax, dword [esp + 0x78]
test eax, eax
je 0x466c80
mov ecx, dword [esp + 0x48]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.mfc90u.dll_CWnd::FromHandle
test eax, eax
je 0x466c97
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x44]
push ecx
push edi
push 0x2b0f
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x466cb9
lea edx, [esp + 0x44]
push edx
mov esi, edi
call fcn.00466200
cmp dword [edi + 0x54], 1
jne 0x466cc6
mov ebx, 3
jmp 0x466ce7
cmp dword [edi + 0x68], 0
je 0x466cd3
mov ebx, 4
jmp 0x466ce7
test bl, 1
je 0x466cdf
mov ebx, 2
jmp 0x466ce7
xor ebx, ebx
cmp dword [edi + 0x5c], ebx
setne bl
mov eax, dword [edi + 0x5ac]
mov dword [esp + 0x14], ebx
test eax, eax
je 0x466dc9
xor eax, eax
lea ecx, [edi + 0xf4]
cmp dword [ecx], 0
jne 0x466e31
inc eax
add ecx, 0xd0
cmp eax, 5
jl 0x466d01
mov ecx, dword [esp + 0x14]
imul ecx, ecx, 0xd0
cmp dword [edi + 0x6dc], 0
mov ebx, dword [ecx + edi + 0xb8]
lea esi, [ecx + edi]
jne 0x466dc5
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 0
call sub.gdiplus.dll_GdipCreateFromHDC
movzx edx, byte [esi + 0x180]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x64], ecx
shl edx, 8
movzx eax, bl
or edx, eax
mov ecx, ebx
shr ecx, 8
movzx eax, cl
shl edx, 8
or edx, eax
shr ebx, 0x10
movzx ecx, bl
shl edx, 8
or edx, ecx
lea eax, [esp + 0x18]
lea esi, [esp + 0x24]
mov dword [esp + 0x18], edx
call fcn.004344a0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
sub eax, edx
push eax
sub ecx, esi
push ecx
push edx
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x38]
push esi
push edx
call sub.gdiplus.dll_GdipFillRectangleI
push esi
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x64]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov ebx, dword [esp + 0x14]
mov eax, dword [edi + 0x6d8]
test eax, eax
je 0x46705c
imul ebx, ebx, 0xd0
cmp dword [edi + 0x6ac], 0
mov esi, dword [ebx + edi + 0xbc]
jne 0x46705c
cmp esi, 0xfffffffe
je 0x46705c
cmp eax, 0xf
jne 0x466f34
push esi
lea ecx, [esp + 0x70]
call sub.mfc90u.dll_CBrush::CBrush
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
call fcn.004156b0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], vtable.CBrush.0
call fcn.00403b70
jmp 0x46705c
cmp dword [edi + 0x6d0], 0
mov edx, dword [esp + 0x20]
mov eax, edi
push edx
je 0x466ebe
mov ecx, dword [edi + 0x5b4]
test ecx, ecx
je 0x466e86
call fcn.00467ea0
imul eax, eax, 0xd0
cmp dword [eax + edi + 0x124], 0
jne 0x466e6d
lea eax, [edi + 0x120]
mov esi, eax
jmp 0x466ef0
push edx
mov eax, edi
call fcn.00467ea0
imul eax, eax, 0xd0
lea eax, [eax + edi + 0x120]
mov esi, eax
jmp 0x466ef0
call fcn.00467ea0
imul eax, eax, 0xd0
cmp dword [eax + edi + 0x154], 0
jne 0x466ea5
lea eax, [edi + 0x150]
mov esi, eax
jmp 0x466ef0
push edx
mov eax, edi
call fcn.00467ea0
imul eax, eax, 0xd0
lea eax, [eax + edi + 0x150]
mov esi, eax
jmp 0x466ef0
call fcn.00467ea0
imul eax, eax, 0xd0
cmp dword [eax + edi + 0xf4], 0
jne 0x466edb
lea esi, [edi + 0xf0]
jmp 0x466ef0
push edx
mov eax, edi
call fcn.00467ea0
imul eax, eax, 0xd0
lea esi, [eax + edi + 0xf0]
test esi, esi
je 0x466dc9
cmp dword [esi + 4], 0
je 0x466dc9
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
mov eax, dword [edi + 0x70]
push ecx
mov ecx, dword [edi + 0x6c]
push eax
mov eax, dword [esp + 0x54]
mov edx, ebx
imul edx, edx, 0xd0
push ecx
push 0
push 0
push eax
mov al, byte [edx + edi + 0x180]
call fcn.00465610
jmp 0x466dc9
test al, 1
je 0x466f6c
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x54], eax
inc eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x40]
push esi
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x68], edx
call sub.mfc90u.dll_CDC::FillSolidRect
test byte [edi + 0x6d8], 2
je 0x466fb8
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
push esi
lea edx, [esp + 0x80]
mov dword [esp + 0x8c], ecx
dec eax
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x84], eax
call sub.mfc90u.dll_CDC::FillSolidRect
test byte [edi + 0x6d8], 4
je 0x467007
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x90], eax
inc eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x98], eax
push esi
lea eax, [esp + 0x90]
mov dword [esp + 0x98], ecx
push eax
lea ecx, [esp + 0x4c]
call sub.mfc90u.dll_CDC::FillSolidRect
test byte [edi + 0x6d8], 8
je 0x46705c
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xb0], edx
dec edx
sub ecx, 5
mov dword [esp + 0xa8], edx
push esi
lea edx, [esp + 0xa8]
add eax, 5
mov dword [esp + 0xb0], ecx
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xac], eax
call sub.mfc90u.dll_CDC::FillSolidRect
cmp dword [edi + 0x6d0], 0
mov edx, dword [esp + 0x20]
je 0x4670e4
mov eax, dword [edi + 0x5b4]
test eax, eax
push edx
mov eax, edi
je 0x4670b0
call fcn.00467ea0
imul eax, eax, 0xd0
cmp dword [eax + edi + 0x124], 0
jne 0x467096
lea eax, [edi + 0x120]
jmp 0x46713f
push edx
mov eax, edi
call fcn.00467ea0
imul eax, eax, 0xd0
lea eax, [eax + edi + 0x120]
jmp 0x46713f
call fcn.00467ea0
imul eax, eax, 0xd0
cmp dword [eax + edi + 0x154], 0
jne 0x4670cd
lea eax, [edi + 0x150]
jmp 0x46713f
push edx
mov eax, edi
call fcn.00467ea0
imul eax, eax, 0xd0
lea eax, [eax + edi + 0x150]
jmp 0x46713f
cmp dword [edi + 0x54], 1
jne 0x4670f1
mov eax, 3
jmp 0x467112
cmp dword [edi + 0x68], 0
je 0x4670fe
mov eax, 4
jmp 0x467112
test dl, 1
je 0x46710a
mov eax, 2
jmp 0x467112
xor eax, eax
cmp dword [edi + 0x5c], eax
setne al
imul eax, eax, 0xd0
cmp dword [eax + edi + 0xc4], 0
jne 0x46712a
lea eax, [edi + 0xc0]
jmp 0x46713f
push edx
mov eax, edi
call fcn.00467ea0
imul eax, eax, 0xd0
lea eax, [eax + edi + 0xc0]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x18], eax
push edx
mov eax, edi
call fcn.00466260
mov edx, dword [edi + 0x80]
cmp dword [edx - 0xc], 0
je 0x467192
cmp dword [edi + 0x60], 0
je 0x467192
mov eax, edx
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x9c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x467548
cmp dword [ecx + 4], 0
je 0x467548
mov edx, dword [edi + 0x648]
test dl, 1
je 0x467548
cmp edx, 7
jne 0x4672e0
fld qword [edi + 0x690]
mov ecx, esi
add eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0xc]
fild dword [esp + 0x64]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmulp st(2)
fld qword [0x488620]
fmul st(2), st(0)
fxch st(1)
fsubrp st(2)
fxch st(1)
call fcn.004749f0
fld qword [edi + 0x690]
mov esi, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
fimul dword [esp + 0x18]
mov dword [esp + 0x24], esi
fiadd dword [esp + 0x24]
call fcn.004749f0
mov ecx, dword [edi + 0x80]
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x2c], eax
je 0x46727e
cmp dword [edi + 0x60], 0
je 0x46727e
mov ebx, dword [edi + 0x58c]
fstp st(0)
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
add ebx, 5
add eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], eax
jmp 0x467500
mov eax, dword [esp + 0x30]
fld qword [edi + 0x698]
mov ecx, dword [esp + 0x14]
add eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
fild dword [esp + 0x18]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmulp st(2)
fxch st(1)
fmulp st(2)
fsubrp st(1)
call fcn.004749f0
fld qword [edi + 0x698]
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x18], eax
fimul dword [esp + 0x18]
mov dword [esp + 0x28], ebx
fiadd dword [esp + 0x28]
call fcn.004749f0
mov dword [esp + 0x30], eax
jmp 0x467500
mov edx, dword [edi + 0x4c4]
sub edx, 1
je 0x4674b7
sub edx, 1
je 0x46747e
sub edx, 0xe
jne 0x467500
mov ecx, dword [esp + 0x38]
fld qword [edi + 0x698]
mov eax, dword [esp + 0x40]
add eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
fild dword [esp + 0x18]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmulp st(2)
fld qword [0x488620]
fmul st(2), st(0)
fxch st(1)
fsubrp st(2)
fxch st(1)
call fcn.004749f0
fld qword [edi + 0x698]
mov ebx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
fimul dword [esp + 0x18]
mov dword [esp + 0x28], ebx
fiadd dword [esp + 0x28]
call fcn.004749f0
mov ecx, dword [edi + 0x80]
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x30], eax
je 0x46741f
cmp dword [edi + 0x60], 0
je 0x46741f
mov edx, dword [esp + 0x14]
fstp st(0)
mov eax, dword [edx + 0xc]
fld qword [edi + 0x690]
fld qword [edi + 0x690]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov eax, dword [edi + 0x588]
mov dword [esp + 0x1c], eax
fmulp st(2)
fild dword [esp + 0x6c]
faddp st(2)
fild dword [esp + 0x1c]
faddp st(2)
fimul dword [edi + 0x598]
faddp st(1)
call fcn.004749f0
mov ecx, eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
cmp ecx, eax
jle 0x4673e1
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
add esi, eax
jmp 0x4673f8
mov edx, dword [esp + 0x2c]
lea eax, [edx + esi]
cdq
sub eax, edx
mov esi, eax
mov eax, ecx
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub esi, eax
mov eax, dword [esp + 0x14]
fld qword [edi + 0x690]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
fimul dword [esp + 0x18]
mov dword [esp + 0x24], esi
fiadd dword [esp + 0x24]
call fcn.004749f0
jmp 0x4674f8
mov ecx, dword [esp + 0x2c]
fld qword [edi + 0x690]
lea eax, [ecx + esi]
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0xc]
fild dword [esp + 0x64]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmulp st(2)
fxch st(1)
fmulp st(2)
fsubrp st(1)
call fcn.004749f0
fld qword [edi + 0x690]
mov esi, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
fimul dword [esp + 0x18]
mov dword [esp + 0x24], esi
fiadd dword [esp + 0x24]
call fcn.004749f0
jmp 0x4674fc
sub eax, dword [edi + 0x590]
mov edx, dword [esp + 0x30]
mov esi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x2c], eax
lea eax, [edx + ebx]
cdq
sub eax, edx
mov ebx, eax
mov eax, esi
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
sub ebx, eax
add esi, ebx
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x2c]
sub esi, ecx
mov dword [esp + 0x5c], esi
jmp 0x467500
mov esi, dword [edi + 0x588]
add esi, dword [esp + 0x34]
cmp dword [edi + 0x6d0], 0
je 0x4674d2
mov ebx, dword [edi + 0x58c]
jmp 0x4674e9
mov eax, dword [esp + 0x30]
add eax, ebx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ecx + 0x10]
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
sub ebx, eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
add eax, ebx
mov dword [esp + 0x30], eax
lea eax, [ecx + esi]
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov dword [edi + 0x6b0], esi
mov dword [edi + 0x6b4], ebx
mov dword [edi + 0x6b8], ecx
mov dword [edi + 0x6bc], eax
mov edx, dword [edx + 0x10]
push edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0xc]
push edx
sub eax, ebx
push eax
mov eax, dword [esp + 0x54]
sub ecx, esi
push ecx
push ebx
push esi
mov esi, dword [esp + 0x2c]
push eax
or al, 0xff
call fcn.00465610
lea eax, [esp + 0x44]
call fcn.004660f0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x30]
push eax
push edi
lea ecx, [esp + 0x5c]
call fcn.004663b0
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 0x70]
mov eax, dword [edi + 0x6c]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ecx + 0x18]
push eax
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov byte [esp + 0xc0], 0
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], vtable.CBitmap.0
call fcn.00403b70
lea ecx, [esp + 0x44]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00473090
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4