Function at 0x559480
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5db508
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 + 0x4c]
call sub.mfc42u.dll_CPen::CPen
lea eax, [esp + 0x40]
lea ecx, [esp + 0x50]
push eax
mov byte [esp + 0x6c], 1
call sub.mfc42u.dll_CDC::SelectObject
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], eax
fld qword [ebx + 0x48]
fld qword [ebx + 0x50]
fld qword [0x5f0a50]
fmul st(1)
call sub.msvcrt.dll__ftol
fstp st(0)
fld qword [0x5f0a50]
fmul st(1)
add eax, 2
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 esi, dword [edi + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x5e4054
push 0
push 1
push 1
push esi
push eax
mov byte [esp + 0x7c], 2
call dword [sym.imp.gdi32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x20]
call sub.mfc42u.dll_CGdiObject::Attach
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call sub.mfc42u.dll_CDC::SelectGdiObject
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x18], eax
call dword [edx + 8]
test eax, eax
je 0x55959d
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x54]
push 0x42
push esi
push eax
push 0
push 0
push ecx
jmp 0x5595b1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x54]
push 0xff0062
push esi
push edx
push 0
push 0
push eax
call dword [sym.imp.gdi32.dll_PatBlt]
fld qword [0x5f0a50]
fmul qword [ebx + 0x28]
mov ecx, ebx
fsub qword [0x5e79e0]
fstp qword [esp + 0x2c]
fld qword [0x5f0a50]
fmul qword [ebx + 0x30]
fsub qword [0x5e79e0]
fstp qword [esp + 0x24]
call fcn.0056c0e0
fld qword [0x5f0a50]
mov esi, eax
fmul qword [esi + 8]
fsub qword [esp + 0x24]
call sub.msvcrt.dll__ftol
fld qword [0x5f0a50]
fmul qword [esi]
push eax
fsub qword [esp + 0x30]
call sub.msvcrt.dll__ftol
lea ecx, [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x5c]
call sub.mfc42u.dll_CDC::MoveTo
mov esi, dword [esi + 0x5c]
fld qword [0x5f0a50]
fmul qword [esi + 8]
fsub qword [esp + 0x24]
call sub.msvcrt.dll__ftol
fld qword [0x5f0a50]
fmul qword [esi]
push eax
fsub qword [esp + 0x30]
call sub.msvcrt.dll__ftol
push eax
lea ecx, [esp + 0x58]
call sub.mfc42u.dll_CDC::LineTo
mov ecx, ebx
call fcn.0056c0e0
cmp esi, eax
jne 0x559619
push 0
lea ecx, [esp + 0x3c]
call sub.mfc42u.dll_CBrush::CBrush
lea edx, [esp + 0x38]
lea ecx, [esp + 0x50]
push edx
mov byte [esp + 0x6c], 3
call sub.mfc42u.dll_CDC::SelectObject_1
mov esi, eax
mov eax, dword [esp + 0x54]
push 0
push 0
push 0
push eax
call dword [sym.imp.gdi32.dll_FloodFill]
push esi
lea ecx, [esp + 0x54]
call sub.mfc42u.dll_CDC::SelectObject_1
mov ecx, ebx
call fcn.0056c0e0
fld qword [0x5f0a50]
mov esi, eax
fmul qword [esi + 8]
fsub qword [esp + 0x24]
call sub.msvcrt.dll__ftol
fld qword [0x5f0a50]
fmul qword [esi]
push eax
fsub qword [esp + 0x30]
call sub.msvcrt.dll__ftol
lea ecx, [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x5c]
call sub.mfc42u.dll_CDC::MoveTo
mov esi, dword [esi + 0x5c]
fld qword [0x5f0a50]
fmul qword [esi + 8]
fsub qword [esp + 0x24]
call sub.msvcrt.dll__ftol
fld qword [0x5f0a50]
fmul qword [esi]
push eax
fsub qword [esp + 0x30]
call sub.msvcrt.dll__ftol
push eax
lea ecx, [esp + 0x58]
call sub.mfc42u.dll_CDC::LineTo
mov ecx, ebx
call fcn.0056c0e0
cmp esi, eax
jne 0x5596cc
lea edx, [esp + 0x1c]
mov ecx, edi
push edx
call fcn.0051d930
mov eax, dword [esp + 0xc]
xor esi, esi
add eax, 0xfffffff8
add edi, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x50]
mov edx, dword [esp + 0x10]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, ecx
push esi
push eax
mov eax, dword [esp + 0x1c]
push edx
lea ebx, [esi + 1]
push eax
push 0
push ebx
push ecx
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 + 0x10]
lea ecx, [esp + 0x50]
push edx
push esi
call sub.mfc42u.dll_CDC::LineTo
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx]
push eax
push ecx
mov ecx, edi
call fcn.0051d420
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.0051d930
mov esi, ebx
add edi, 0x10
cmp esi, 7
jl 0x559724
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x54]
call sub.mfc42u.dll_CDC::SelectObject
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5597b2
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 + 0x38], edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 4
call sub.mfc42u.dll_CGdiObject::DeleteObject
mov esi, 0x5e262c
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 5
call sub.mfc42u.dll_CGdiObject::DeleteObject
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 6
call sub.mfc42u.dll_CGdiObject::DeleteObject
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], 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