Function at 0x40b2d0
Capabilities:
Capture screenshot
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x432ffc
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x64], ebx
jne 0x40b66a
cmp dword [ebp + 0x68], ebx
je 0x40b892
mov ecx, dword [ebp + 0x20]
lea eax, [esp + 0xd0]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
mov esi, dword [sym.imp.USER32.dll_GetDC]
push ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
call esi
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x44], eax
push edx
call esi
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov eax, dword [eax + 4]
push eax
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x80]
push ebx
lea edx, [esp + 0xb8]
mov dword [esp + 0x7c], eax
push ebx
push edx
lea eax, [esp + 0x80]
push ebx
push eax
push ebx
mov dword [esp + 0x68], esi
mov dword [esp + 0x8c], 0x28
mov dword [esp + 0x94], ecx
mov word [esp + 0x98], 1
mov word [esp + 0x9a], 0x20
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x58], eax
push ecx
push esi
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2f], 1
mov byte [esp + 0x2e], 0xff
mov dword [esp + 0x54], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [ebp + 0x7c]
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x80]
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0x68]
cmp eax, ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
je 0x40b464
mov eax, dword [eax + 4]
jmp 0x40b466
xor eax, eax
lea edx, [esp + 0x9c]
push 3
push edx
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImagePointsI
push eax
lea ecx, [esp + 0x30]
call fcn.0040c740
mov edi, eax
cmp edi, ebx
je 0x40b4ca
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 0x68]
push edi
push eax
lea ecx, [esp + 0x18]
push str.CDialogSK::OnEraseBkgnd:DrawBgImage_Error__m_pImageBg_0x_x__DrawImage_Return__d__r_n
push ecx
mov byte [esp + 0xf8], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x70]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x48], eax
je 0x40b552
cmp dword [eax + 0x20], ebx
je 0x40b53e
cmp dword [eax + 0x24], 1
jne 0x40b53e
lea esi, [eax + 0x10]
mov ecx, 6
lea edi, [esp + 0xb8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xc8]
cmp eax, ebx
je 0x40b503
mov eax, dword [eax + 4]
jmp 0x40b505
xor eax, eax
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
push ecx
mov ecx, dword [esp + 0xc0]
push edx
mov edx, dword [esp + 0xc0]
push ecx
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
call sub.gdiplus.dll_GdipDrawImageRectI
push eax
lea ecx, [esp + 0x30]
call fcn.0040c740
mov esi, dword [esp + 0x50]
lea ecx, [esp + 0x48]
call fcn.0040c1f0
mov ecx, dword [ebp + 0x70]
mov eax, dword [esp + 0x48]
cmp eax, ecx
jne 0x40b4d7
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x7c]
mov edx, dword [ebp + 0x80]
push 0xffffffffffffffec
push eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, eax
and ecx, 0x80000
cmp ecx, 0x80000
je 0x40b599
mov edx, dword [ebp + 0x20]
xor eax, 0x80000
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea eax, [esp + 0x24]
push 2
push eax
lea ecx, [esp + 0x64]
push ebx
push ecx
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x74]
push esi
lea eax, [esp + 0x80]
push edx
mov edx, dword [ebp + 0x20]
push eax
push ecx
push edx
call dword [0x43f810]
cmp eax, ebx
jne 0x40b60e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CString::CString_2
push edi
lea eax, [esp + 0x14]
push str.CDialogSK::OnEraseBkgnd_UpdateLayeredWindow_Failed__Error:_d_
push eax
mov byte [esp + 0xf4], 2
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x58]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x2c]
push esi
push eax
call sub.gdiplus.dll_GdipReleaseDC
cmp eax, ebx
je 0x40b62d
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [ebp + 0x20]
mov edi, dword [sym.imp.USER32.dll_ReleaseDC]
push ecx
push edx
call edi
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0x20]
push eax
push ecx
call edi
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x2c]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
jmp 0x40b892
cmp ebp, ebx
je 0x40b892
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x40b892
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [esp + 0xf0]
cmp edi, ebx
jne 0x40b6ad
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov dword [esp + 0xf0], eax
mov edi, eax
lea ecx, [esp + 0x34]
call fcn.00431276
cmp edi, ebx
mov dword [esp + 0xe8], 3
jne 0x40b6c9
xor eax, eax
jmp 0x40b6cc
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [ebp + 0x64]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 0x84]
cmp eax, ebx
je 0x40b837
cmp eax, 4
je 0x40b837
cmp eax, 1
jne 0x40b793
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edx, eax
xor edi, edi
sub edx, esi
test edx, edx
jle 0x40b86f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor esi, esi
sub ecx, edx
cmp ecx, ebx
jle 0x40b77a
mov edx, dword [esp + 0x18]
push 0xcc0020
sub eax, edx
push ebx
mov edx, eax
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
push ebx
and eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x100]
push edx
push ecx
mov ecx, dword [eax + 4]
push edi
push esi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp + 0x7c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add esi, ecx
mov ecx, dword [esp + 0x1c]
sub ecx, edx
cmp esi, ecx
jl 0x40b732
mov ecx, dword [ebp + 0x80]
mov esi, dword [esp + 0x18]
add edi, ecx
mov ecx, eax
sub ecx, esi
cmp edi, ecx
jl 0x40b726
jmp 0x40b86f
cmp eax, 2
jne 0x40b7ef
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x7c]
mov esi, dword [esp + 0x14]
mov eax, edx
sub eax, ecx
push 0xcc0020
sub eax, esi
mov esi, dword [esp + 0x24]
mov ecx, esi
sub esi, dword [esp + 0x1c]
sub ecx, dword [ebp + 0x80]
push ebx
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x1c]
sub ecx, dword [esp + 0x20]
sub edx, esi
mov esi, edx
lea edx, [esp + 0x3c]
shr eax, 1
shr ecx, 1
neg edx
sbb edx, edx
push ebx
and edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x38]
push edx
push esi
push ecx
push eax
mov eax, dword [edi + 4]
push eax
jmp 0x40b869
cmp eax, 3
jne 0x40b86f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 0x80]
sub ecx, edx
mov edx, dword [esp + 0x1c]
sub edx, eax
lea eax, [esp + 0x34]
neg eax
push 0xcc0020
push esi
mov esi, dword [ebp + 0x7c]
sbb eax, eax
push esi
and eax, dword [esp + 0x44]
push ebx
push ebx
push eax
push ecx
mov ecx, dword [edi + 4]
push edx
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x40b86f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x38]
sub edx, eax
lea eax, [esp + 0x34]
neg eax
sbb eax, eax
push 0xcc0020
and eax, esi
push ebx
push ebx
push eax
push ecx
push edx
mov edx, dword [edi + 4]
push ebx
push ebx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp + 0x64]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x34]
mov dword [esp + 0xe8], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0xdc
ret 4