Function at 0x522290
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x18]
push eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x58]
call fcn.00443410
mov eax, dword [ebx + 0x5c]
test eax, eax
jne 0x5223a9
push dword [ebx + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 4]
mov dword [ebp - 0x64], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x522327
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push dword [ebx + 0x5c]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push dword [ebp - 0x24]
mov edi, eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x28]
sub eax, dword [ebp - 0x14]
push dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
push 0
push 0
push dword [ebx + 0x5c]
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
test eax, eax
jne 0x522394
call dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
je 0x52239a
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x64]
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebx + 0x5c]
mov esi, dword [ebp - 0x58]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [ebx + 0x4c]
lea eax, [ebp - 0x84]
push 0
push eax
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0xc
push 0x42
movlpd qword [ebp - 0x80], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test byte [ebp - 0x80], 1
je 0x522407
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebx + 4]
mov eax, dword [ebx + 0x54]
sete byte [ebp - 0x59]
shr eax, 4
test al, 1
je 0x52256d
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], 0
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], 0
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x74], 0
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x70], 0
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x78], 0
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x60], 0
push eax
mov ecx, ebx
call fcn.0046c630
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
push dword [ebx + 4]
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebx + 0x34]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
test ecx, ecx
je 0x5224b0
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x6c]
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x68]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x5224cf
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [ebx + 0x30]
mov dword [ebp - 0x68], eax
test edx, edx
je 0x5224fa
mov ecx, dword [ebx + 0x54]
shr ecx, 1
test cl, 1
je 0x5224f7
test byte [ebx + 0x58], 4
jne 0x5224f7
cmp byte [ebp - 0x59], 0
je 0x5224fa
push edx
jmp 0x5224fd
push dword [ebx + 0x34]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x10
mov edi, eax
lea eax, [ebx + 0x38]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x68]
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebx + 0x34]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x78]
mov edi, eax
test edx, edx
je 0x522567
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x40]
push 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebx + 0x3c]
push edx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x30], ecx
call dword [sym.imp.USER32.dll_DrawTextW]
push edi
jmp 0x522610
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x52258d
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [ebx + 0x30]
mov dword [ebp - 0x68], eax
test edx, edx
je 0x5225b8
mov ecx, dword [ebx + 0x54]
shr ecx, 1
test cl, 1
je 0x5225b5
test byte [ebx + 0x58], 4
jne 0x5225b5
cmp byte [ebp - 0x59], 0
je 0x5225b8
push edx
jmp 0x5225bb
push dword [ebx + 0x34]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [ebx + 0x24]
mov dword [ebp - 0x60], eax
test edi, edi
jne 0x5225cf
mov edi, dword [ebx + 0x28]
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
xor ecx, ecx
test al, 1
je 0x5225e7
mov ecx, 1
jmp 0x5225f1
test al, 2
mov eax, 2
cmovne ecx, eax
or ecx, 0x10
lea eax, [ebx + 0x38]
push ecx
push eax
push 0xffffffffffffffff
push edi
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x68]
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x60]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp byte [ebp - 0x59], 0
je 0x52262e
cmp byte [ebx + 0x60], 0
jne 0x52262e
mov ecx, ebx
call fcn.005220e0
mov byte [ebx + 0x60], 1
lea ecx, [ebp - 0x58]
call fcn.00443490
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c59c5
mov esp, ebp
pop ebp
ret 4