Function at 0x502b28
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0
je 0x502b65
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 0
je 0x50317d
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x20], 0
je 0x50317d
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0
jne 0x502b88
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x50317d
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
je 0x50317d
mov eax, dword [ebp - 4]
call fcn.005026a8
xor eax, eax
mov dword [ebp - 0x70], eax
cmp dword [ebp - 4], 0
je 0x502bb7
lea eax, [ebp - 0x88]
push eax
push 0x54
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_GetObjectW
cmp eax, 0x18
jge 0x502bb7
call fcn.004fe6a8
push 0
call sub.user32.dll_GetDC
call fcn.004fe7c8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_CreateCompatibleDC
call fcn.004fe7c8
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x503176
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x28
jae 0x502c4c
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x10]
mov edx, dword [ebp + 0xc]
or ax, word [edx + 0x12]
cmp ax, 1
jne 0x502c28
push 0
push 1
push 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
call sub.gdi32.dll_CreateBitmap
call fcn.004fe7c8
mov dword [ebp - 0x10], eax
jmp 0x502e84
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
call fcn.004fe7c8
mov dword [ebp - 0x10], eax
jmp 0x502e84
mov eax, 0x42c
call fcn.004067dc
mov dword [ebp - 0x28], eax
xor edx, edx
push ebp
push 0x502e7d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], 0x28
mov eax, dword [ebp + 0xc]
mov word [eax + 0x24], 1
add byte [ebx - 0x7c99f3bb], cl
js 0x502ca7
add byte [ebp + 0x23], dh
mov eax, dword [ebp - 0x10]
call fcn.004fe7c8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_SelectObject
call fcn.004fe7c8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x503127
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x503116
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
xor ebx, ebx
cmp dword [ebp - 0xc], 0
je 0x502ee5
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_SelectPalette
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_RealizePalette
xor eax, eax
push ebp
push 0x5030f4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 8], 0
je 0x502fb4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
call fcn.004fd23c
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
xor edx, edx
xor eax, eax
call fcn.0040ff1c
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_FillRect
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x18]
call fcn.004fbfb4
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_SetTextColor
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x48]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x18]
push 0xff0062
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_PatBlt