Function at 0x419180
Capabilities:
Capture screenshot

Disassembly:
mov al, byte [esp + 8]
sub esp, 0x3c
cmp al, 0x64
push ebx
push edi
mov edi, ecx
jbe 0x419194
mov byte [esp + 0x4c], 0x64
mov ebx, dword [esp + 0x48]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x18], eax
jne 0x4191ba
cmp edi, eax
je 0x4191a9
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov dword [esp + 0x18], 1
push ebp
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push ebx
call ebp
push ebx
mov dword [esp + 0x14], eax
call ebp
mov esi, eax
push ebx
mov dword [esp + 0x54], esi
call ebp
mov ebp, eax
mov eax, dword [edi + 0x3bc]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 0x46c]
mov edx, dword [edi + 0x468]
lea esi, [edi + 0x460]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
sub ecx, eax
mov eax, dword [esi]
sub edx, eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
sub ecx, eax
push ecx
mov ecx, dword [esi]
sub edx, ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], eax
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0x3d4]
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0x3d8]
push eax
push ecx
push 0
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x58], edx
call sub.MFC42.DLL_CRect::DeflateRect
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x50]
sub eax, edx
mov edx, dword [esp + 0x4c]
sub ecx, edx
push eax
push ecx
push 0
mov edx, dword [esp + 0x2c]
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x440]
push eax
lea ecx, [edi + 0x40]
push edx
call fcn.0040fb30
mov eax, dword [edi + 0x3c4]
test eax, eax
je 0x4192fc
mov eax, dword [edi + 0x3c8]
test eax, eax
je 0x4192fc
mov eax, dword [edi + 0x3cc]
test eax, eax
je 0x4192fc
mov ecx, dword [edi + 0x3e8]
mov edx, dword [esp + 0x10]
mov eax, dword [edi]
push ecx
push edx
mov ecx, edi
call dword [eax + 0xc0]
mov eax, dword [edi + 0x3c0]
test eax, eax
jne 0x419360
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
sub eax, edx
mov edx, dword [esi]
push eax
sub ecx, edx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x50]
push eax
push edx
mov dword [edi + 0x3c0], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 0x464]
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push 0xcc0020
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi + 4]
sub edx, ecx
mov ecx, dword [esp + 0x5c]
push ebx
push edx
sub eax, dword [esi]
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x41936c
mov edx, dword [esp + 0x50]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0xc]
push 0xcc0020
push 0
mov edx, dword [esi + 8]
push 0
push eax
mov eax, dword [esi + 4]
sub ecx, eax
mov eax, dword [edi + 0x464]
push ecx
mov ecx, dword [esi]
sub edx, ecx
push edx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [edi + 0x3d4]
test eax, eax
jne 0x4193b2
mov eax, dword [edi + 0x3d8]
test eax, eax
je 0x419531
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
sub edx, ecx
push edx
mov edx, dword [esp + 0x40]
sub eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
xor ecx, ecx
mov edx, 0x64
mov cl, byte [edi + 0x3e4]
push 0x64
sub edx, ecx
mov dword [esp + 0x18], eax
push edx
push 0xff
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esp + 0x54]
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x18]
mov ecx, 0xff
and eax, 0xff
and edx, 0xff
sub ecx, eax
mov eax, 0x51eb851f
imul ecx, edx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov al, byte [esp + 0x18]
add al, dl
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x18]
and eax, 0xff
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
push 0xff0062
sub ecx, eax
mov eax, dword [esp + 0x40]
push 0
push 0
push 0
sub edx, eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x3e8]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_FillRgn]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [edi + 0x3e0]
mov eax, dword [edi + 0x3dc]
mov ecx, dword [edi + 0x3d0]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x50]
sub eax, edx
mov edx, dword [edi + 0x3d8]
push eax
mov eax, dword [esp + 0x50]
sub ecx, eax
mov eax, dword [edi + 0x3d4]
push ecx
push edx
push eax
push ebp
lea ecx, [edi + 0x40]
call fcn.0040fd50
mov ecx, eax
call fcn.004078b0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [edi + 0x3e8]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
and eax, 0xff
mov ecx, 0x64
sub ecx, eax
mov eax, dword [esp + 0x48]
push ecx
push 0
mov ecx, dword [esp + 0x4c]
push 0
push edx
mov edx, dword [esp + 0x50]
sub eax, edx
mov edx, dword [edi + 0x464]
push eax
mov eax, dword [esp + 0x50]
sub ecx, eax
mov eax, dword [esi]
push ecx
push edx
push eax
push ebp
lea ecx, [edi + 0x40]
call fcn.0040fd50
mov ecx, eax
call fcn.004056e0
push 0
push ebp
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
push 0xcc0020
push 0
push 0
sub ecx, eax
mov eax, dword [edi + 0x464]
push ebp
push ecx
mov ecx, dword [esi]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
call esi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call esi
mov eax, dword [esp + 0x30]
push eax
push ebp
call esi
mov ecx, dword [esp + 0x34]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov edx, dword [esp + 0x38]
push edx
call esi
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
push ebp
call esi
mov eax, dword [esp + 0x20]
pop esi
test eax, eax
pop ebp
je 0x419636
test edi, edi
jne 0x41962b
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebx
add esp, 0x3c
ret 8
mov edi, dword [edi + 0x20]
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebx
add esp, 0x3c
ret 8