Function at 0x5118e3
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0x68
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x511b09
push 0x68
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_IsWindowEnabled
test eax, eax
je 0x511b09
push esi
call sub.USER32.dll_GetDC
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x511b09
push dword [ebp - 0xc]
call fcn.00511058
lea eax, [ebp - 0x2c]
push eax
push 0x69
push esi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_GetWindowRect
push 2
lea edx, [ebp - 0x2c]
push edx
push esi
push 0
call sub.USER32.dll_MapWindowPoints
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x3c]
push eax
push esi
call sub.USER32.dll_GetClientRect
mov edx, dword [ebp - 0x10]
add edx, 7
mov dword [ebp - 0x30], edx
push dword [ebp - 0xc]
call sub.GDI32.dll_CreateCompatibleDC
mov edi, eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [ebp - 4], eax
push dword [ebp - 4]
push edi
call sub.GDI32.dll_SelectObject
mov dword [ebp - 8], eax
push 0xf
call sub.USER32.dll_GetSysColor
push eax
call sub.GDI32.dll_CreateSolidBrush
mov ebx, eax
push ebx
lea eax, [ebp - 0x3c]
push eax
push edi
call sub.USER32.dll_FillRect
push ebx
call sub.GDI32.dll_DeleteObject
xor ebx, ebx
mov eax, dword [ebp + 0xc]
lea edx, [eax + 0x34]
mov dword [ebp - 0x1c], edx
cmp ebx, dword [ebp + 0x10]
je 0x5119dd
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0
je 0x5119e7
push 0
push 0
push ebx
push dword [ebp + 0xc]
push edi
push esi
call fcn.0051145f
inc ebx
add dword [ebp - 0x1c], 0x5c
cmp ebx, 0x28
jl 0x5119c1
imul eax, dword [ebp + 0x10], 0x17
mov edx, dword [ebp + 0xc]
push dword [edx + eax*4 + 0x44]
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push esi
call fcn.0051145f
lea ecx, [ebp - 0x3c]
push ecx
mov eax, dword [ebp + 0xc]
push dword [eax + 0x34]
call sub.USER32.dll_GetWindowRect
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff9
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 0x14]
push ecx
push esi
call sub.USER32.dll_ScreenToClient
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x6a
push esi
call sub.USER32.dll_GetDlgItem
mov ebx, eax
test ebx, ebx
je 0x511a81
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
call sub.GDI32.dll_CreateRectRgn
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call sub.GDI32.dll_SelectClipRgn
lea eax, [ebp - 0x4c]
push eax
push ebx
call sub.USER32.dll_GetWindowRect
push 2
lea edx, [ebp - 0x4c]
push edx
push esi
push 0
call sub.USER32.dll_MapWindowPoints
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0xc]
call sub.GDI32.dll_ExcludeClipRect
push 0xcc0020
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push edx
push eax
push dword [ebp - 0xc]
call sub.GDI32.dll_BitBlt
test ebx, ebx
je 0x511ab5
push 0
push dword [ebp - 0xc]
call sub.GDI32.dll_SelectClipRgn
push dword [ebp - 0x18]
call sub.GDI32.dll_DeleteObject
push dword [ebp - 8]
push edi
call sub.GDI32.dll_SelectObject
push dword [ebp - 4]
call sub.GDI32.dll_DeleteObject
push edi
call sub.GDI32.dll_DeleteDC
push dword [ebp - 0xc]
push esi
call sub.USER32.dll_ReleaseDC
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x14]
push eax
push esi
call sub.USER32.dll_ScreenToClient
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x30], edx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push 0
push esi
call fcn.0051116c
call fcn.005110f8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc