Function at 0x50cd90
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
cmp byte [ebp + 8], 0x64
push ebx
push esi
push edi
mov edi, eax
mov esi, ecx
jbe 0x50cdaa
mov byte [ebp + 8], 0x64
xor eax, eax
cmp edi, eax
mov dword [esp + 0x2c], eax
jne 0x50cdcc
cmp esi, eax
je 0x50cdbb
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov dword [esp + 0x2c], 1
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
call ebx
push edi
mov dword [esp + 0x18], eax
call ebx
push edi
mov dword [esp + 0x14], eax
call ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x3e8]
push eax
push ecx
call ebx
mov ecx, dword [esi + 0x494]
sub ecx, dword [esi + 0x48c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x498]
sub eax, dword [esi + 0x490]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x14]
push eax
push edx
mov dword [esp + 0x48], eax
call ebx
mov ecx, dword [esi + 0x494]
sub ecx, dword [esi + 0x48c]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x498]
sub eax, dword [esi + 0x490]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
push eax
call ebx
mov ecx, dword [esi + 0x490]
mov edx, dword [esi + 0x48c]
push 0xcc0020
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x494]
sub eax, dword [esi + 0x400]
push 0
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x498]
sub ecx, dword [esi + 0x404]
push 0
sub ecx, dword [esp + 0x58]
sub eax, edx
mov edx, dword [esp + 0x1c]
push edx
push ecx
push eax
push 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
push 0
push eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x14]
push ecx
lea eax, [esi + 0x46c]
lea ecx, [esi + 0x54]
call fcn.005028d0
cmp dword [esi + 0x3f0], 0
je 0x50cefc
cmp dword [esi + 0x3f4], 0
je 0x50cefc
cmp dword [esi + 0x3f8], 0
je 0x50cefc
mov eax, dword [esi + 0x414]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x134]
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 0x3ec]
test eax, eax
jne 0x50cf6c
mov eax, dword [esi + 0x498]
sub eax, dword [esi + 0x490]
mov ecx, dword [esi + 0x494]
sub ecx, dword [esi + 0x48c]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esi + 0x3ec], eax
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ecx, dword [esi + 0x490]
mov edx, dword [esi + 0x48c]
mov eax, dword [esi + 0x498]
push 0xcc0020
push ecx
push edx
push edi
sub eax, ecx
mov ecx, dword [esi + 0x494]
push eax
sub ecx, edx
mov edx, dword [esp + 0x24]
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x50cf74
push eax
mov eax, dword [esp + 0x14]
push eax
call ebx
mov edx, dword [esi + 0x498]
mov ecx, dword [esp + 0x10]
sub edx, dword [esi + 0x490]
mov eax, dword [esi + 0x494]
sub eax, dword [esi + 0x48c]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [esi + 0x490]
push edx
mov edx, dword [esi + 0x48c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esi + 0x400], 0
jne 0x50cfcb
cmp dword [esi + 0x404], 0
je 0x50d100
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 0x410]
push 0x64
mov ecx, 0x64
sub ecx, eax
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov cl, al
movzx eax, cl
mov edx, 0xff
sub edx, eax
movzx eax, byte [ebp + 8]
imul edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add cl, al
movzx eax, cl
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 + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0xff0062
push 0
push 0
push 0
push ecx
push edx
push 0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x414]
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_FillRgn]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esi + 0x40c]
mov eax, dword [esi + 0x408]
mov ecx, dword [esi + 0x3fc]
push edx
push eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x404]
push edx
mov edx, dword [esi + 0x400]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.004fa170
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x414]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
movzx ecx, byte [ebp + 8]
mov eax, dword [esp + 0x1c]
mov edx, 0x64
sub edx, ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esi + 0x490]
push eax
mov eax, dword [esi + 0x48c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x28]
push ecx
call fcn.004f80b0
mov edx, dword [esp + 0xc]
push 0
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [esi + 0x498]
mov eax, dword [esp + 0xc]
sub ecx, dword [esi + 0x490]
mov edx, dword [esi + 0x494]
sub edx, dword [esi + 0x48c]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [esi + 0x490]
push ecx
mov ecx, dword [esi + 0x48c]
push edx
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x40]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call ebx
mov eax, dword [esp + 0x44]
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call ebx
cmp dword [esp + 0x2c], 0
je 0x50d1f3
mov esi, dword [esi + 0x20]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4