Function at 0x52bed0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
push 0x65
push esi
mov dword [esp + 0x18], edx
call edi
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x52c159
push 0x65
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x52c159
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x52c159
mov ecx, ebx
call fcn.0052b440
lea eax, [esp + 0x3c]
push eax
push 0x66
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea ecx, [esp + 0x40]
push ecx
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x28]
add ecx, 7
push ebx
mov dword [esp + 0x3c], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x34]
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x5a5564]
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebp, eax
push ebp
lea edx, [esp + 0x30]
push edx
push edi
call dword [sym.imp.USER32.dll_FillRect]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x34]
xor ebp, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x60]
cmp ebp, edx
je 0x52bfe1
cmp dword [ecx], 0
je 0x52bff6
push 0
push 0
push ebp
push eax
mov edx, edi
mov ecx, esi
call fcn.0052b8e0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc ebp
add ecx, 0x5c
cmp ebp, 0x28
mov dword [esp + 0x14], ecx
jl 0x52bfc1
mov edx, dword [esp + 0x60]
mov ecx, edx
imul ecx, ecx, 0x5c
mov ecx, dword [ecx + eax + 0x44]
push ecx
push 1
push edx
push eax
mov edx, edi
mov ecx, esi
call fcn.0052b8e0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x24]
push eax
add edx, 0xfffffff9
push esi
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x67
push esi
mov dword [esp + 0x68], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
test ebp, ebp
je 0x52c0aa
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
push ebx
mov dword [esp + 0x68], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
lea edx, [esp + 0x4c]
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x50]
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_ExcludeClipRect]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
sub edx, dword [esp + 0x40]
push 0xcc0020
push ecx
push eax
push edi
push edx
mov edx, dword [esp + 0x58]
sub edx, eax
push edx
push ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
test ebp, ebp
je 0x52c0eb
push 0
push ebx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x28]
xor ecx, ecx
sub esp, 0x10
mov dword [esp + 0x3c], ecx
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
xor edx, edx
mov ecx, esi
mov dword [esp + 0x48], eax
call fcn.0052b540
call fcn.0052b4d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4