Function at 0x4d6fa0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x4d7252
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x4d7252
push ebx
push edi
mov edi, dword [esp + 0x3c]
mov ebx, 1
mov dword [esi + 0x34], ebx
cmp dword [edi], 0
jne 0x4d6fe2
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
test eax, eax
mov dword [edi], eax
je 0x4d6fe2
mov dword [esi + 0x40], ebx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4d7211
mov eax, dword [esi + 0x50]
test eax, eax
jle 0x4d7211
mov eax, dword [esi + 0x54]
test eax, eax
jle 0x4d7211
mov ecx, dword [edi]
push ebp
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esi + 0x18]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
mov eax, dword [edx]
mov dword [esp + 0x40], ebp
push eax
push ebp
call ebx
xor ecx, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x30], ecx
push edx
mov dword [esp + 0x38], ecx
push 0x18
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x44], ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x4d706b
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4d70bc
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 0
mov byte [esp + 0x42], 0xff
mov byte [esp + 0x43], 1
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 0x4c]
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x48]
push edx
mov edx, dword [esi + 0x54]
push 0
push 0
sub edx, eax
push ebp
push edx
mov edx, dword [esi + 0x50]
sub edx, ecx
push edx
push eax
mov eax, dword [edi]
push ecx
push eax
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
jmp 0x4d7201
mov eax, dword [esi + 0x94]
test eax, eax
je 0x4d711b
mov ecx, dword [edi]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esi + 0x94]
mov ebp, eax
mov eax, dword [edx]
push eax
push ebp
call ebx
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x4c]
push 0xcc0020
push 0
push 0
sub edx, eax
push ebp
push edx
mov edx, dword [esi + 0x50]
sub edx, ecx
push edx
push eax
mov eax, dword [edi]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x10]
push ecx
push ebp
call ebx
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebp, dword [esp + 0x40]
cmp dword [esi + 0xa8], 1
jne 0x4d721f
mov edx, dword [edi]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esi + 0x48]
mov ebp, eax
mov eax, dword [esi + 0x50]
sub eax, edx
test eax, eax
jle 0x4d71fd
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x4c]
sub ecx, edx
test ecx, ecx
jle 0x4d71fd
push ecx
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov dword [esp + 0x20], eax
call ebx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
mov edx, dword [esi + 0x48]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x10], eax
sub ecx, edx
mov edx, dword [esi + 0x54]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x4c]
push eax
lea eax, [esp + 0x28]
sub edx, ecx
push eax
push ebp
mov dword [esp + 0x3c], edx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d71b8
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x4c]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x48]
push 0xcc0020
push 0
push 0
sub edx, eax
push ebp
push edx
mov edx, dword [esi + 0x50]
sub edx, ecx
push edx
push eax
mov eax, dword [edi]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d71f6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
push ecx
push ebp
call ebx
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x2c
ret 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x4c]
push 0xff00ff
push edx
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x48]
push edx
mov edx, dword [esi + 0x54]
push 0
push 0
sub edx, eax
push ebp
push edx
mov edx, dword [esi + 0x50]
sub edx, ecx
push edx
push eax
mov eax, dword [edi]
push ecx
push eax
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
jmp 0x4d7201
mov dword [esi + 0x3c], 1
xor eax, eax
pop esi
add esp, 0x2c
ret 4