Function at 0x561f30
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dbfc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [esp + 0x50]
call sub.mfc42u.dll_CDC::CDC
push 0
mov dword [esp + 0x6c], 0
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x54]
call sub.mfc42u.dll_CDC::Attach
push 0
push 1
push 0
lea ecx, [esp + 0x40]
call sub.mfc42u.dll_CPen::CPen
lea eax, [esp + 0x34]
lea ecx, [esp + 0x50]
push eax
mov byte [esp + 0x6c], 1
call sub.mfc42u.dll_CDC::SelectObject
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], eax
fld qword [esi + 0x48]
fld qword [esi + 0x50]
fld qword [0x5f0b10]
fmul st(1)
call sub.msvcrt.dll__ftol
fstp st(0)
fld qword [0x5f0b10]
fmul st(1)
add eax, 4
push eax
call sub.msvcrt.dll__ftol
mov edi, dword [ebp + 0xc]
add eax, 0xb
push eax
mov ecx, edi
fstp st(0)
call fcn.0051d420
mov ecx, edi
call fcn.0051d920
mov ebx, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0x5e4054
push 0
push 1
push 1
push eax
push ebx
mov byte [esp + 0x7c], 2
call dword [sym.imp.gdi32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x28]
call sub.mfc42u.dll_CGdiObject::Attach
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call sub.mfc42u.dll_CDC::SelectGdiObject
mov edx, dword [esp + 0xc]
push 0xff0062
push edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
push ebx
push 0
push 0
push eax
call dword [sym.imp.gdi32.dll_PatBlt]
fld qword [0x5f0b10]
fmul qword [esi + 0x28]
mov ecx, esi
fsub qword [0x5e79e0]
fsub qword [0x5e2790]
fstp qword [esp + 0x3c]
fld qword [0x5f0b10]
fmul qword [esi + 0x40]
fadd qword [0x5f0b60]
fstp qword [esp + 0x14]
call fcn.0056c0e0
fld qword [0x5f0b10]
mov ebx, eax
fmul qword [ebx + 8]
fsubr qword [esp + 0x14]
call sub.msvcrt.dll__ftol
fld qword [0x5f0b10]
fmul qword [ebx]
push eax
fsub qword [esp + 0x40]
call sub.msvcrt.dll__ftol
lea ecx, [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x5c]
call sub.mfc42u.dll_CDC::MoveTo
mov ebx, dword [ebx + 0x5c]
fld qword [0x5f0b10]
fmul qword [ebx + 8]
fsubr qword [esp + 0x14]
call sub.msvcrt.dll__ftol
fld qword [0x5f0b10]
fmul qword [ebx]
push eax
fsub qword [esp + 0x40]
call sub.msvcrt.dll__ftol
push eax
lea ecx, [esp + 0x58]
call sub.mfc42u.dll_CDC::LineTo
mov ecx, esi
call fcn.0056c0e0
cmp ebx, eax
jne 0x5620b3
push 0
lea ecx, [esp + 0x30]
call sub.mfc42u.dll_CBrush::CBrush
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x50]
push edx
mov byte [esp + 0x6c], 3
call sub.mfc42u.dll_CDC::SelectObject_1
mov ebx, eax
mov eax, dword [esp + 0x54]
push 0
push 0
push 0
push eax
call dword [sym.imp.gdi32.dll_FloodFill]
push ebx
lea ecx, [esp + 0x54]
call sub.mfc42u.dll_CDC::SelectObject_1
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0051d930
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test eax, eax
jne 0x5621cd
mov eax, dword [esp + 0x10]
xor esi, esi
add eax, 0xfffffff8
lea ebx, [edi + 0x10]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x50]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
push 0
push esi
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esi + 1]
push eax
mov eax, dword [esp + 0x24]
push eax
push 0
push edx
push ecx
mov dword [esp + 0x38], edx
call dword [sym.imp.gdi32.dll_BitBlt]
push 0
lea ecx, [esp + 0x4c]
push esi
push ecx
lea ecx, [esp + 0x5c]
call sub.mfc42u.dll_CDC::MoveTo
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x50]
push edx
push esi
call sub.mfc42u.dll_CDC::LineTo
mov eax, dword [edi + 8]
mov ecx, dword [edi]
push eax
push ecx
mov ecx, ebx
call fcn.0051d420
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.0051d930
mov esi, dword [esp + 0x14]
add ebx, 0x10
cmp esi, 7
jl 0x562155
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x54]
call sub.mfc42u.dll_CDC::SelectObject
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5621e6
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x54]
push eax
push edx
call sub.mfc42u.dll_CDC::SelectGdiObject
mov edi, 0x5e3df4
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 4
call sub.mfc42u.dll_CGdiObject::DeleteObject
mov esi, 0x5e262c
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 5
call sub.mfc42u.dll_CGdiObject::DeleteObject
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 6
call sub.mfc42u.dll_CGdiObject::DeleteObject
lea ecx, [esp + 0x50]
mov dword [esp + 0x34], esi
mov dword [esp + 0x68], 0xffffffff
call fcn.005c100a
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret