Function at 0x5219e0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
mov edi, eax
call fcn.004d16d0
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0xc]
sub esi, dword [edi]
sub ebx, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push esi
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov eax, dword [esp + 0x10]
push 0x40cc0020
push ecx
push edx
push ebp
push ebx
push esi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0x2c
lea ecx, [esp + 0x38]
push 0
push ecx
mov esi, eax
call fcn.006a1300
mov eax, dword [esp + 0x20]
mov ebx, dword [sym.imp.GDI32.dll_GetDIBits]
add esp, 0xc
push 0
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
push eax
push esi
mov dword [esp + 0x50], 0x28
call ebx
mov eax, dword [esp + 0x48]
test eax, eax
ja 0x521abe
mov eax, dword [esp + 0x3c]
movzx ecx, word [esp + 0x42]
cdq
xor eax, edx
sub eax, edx
add ecx, 7
imul eax, ecx
imul eax, dword [esp + 0x38]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x48], eax
push 0
mov dword [esp + 0x48], 0
mov edi, eax
call fcn.0069c8fa
add esp, 4
cmp edi, 0xf4240
jbe 0x521ae5
call fcn.004c90f0
shr eax, 1
cmp eax, edi
jb 0x521afd
push 0x734220
push edi
call fcn.0069c1fd
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x18], edi
jne 0x521b11
push 0
call fcn.0069c8fa
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x38]
push edx
push edi
push eax
push 0
push ecx
push esi
call ebx
mov esi, dword [esp + 0x48]
add esi, 0x36
xor eax, eax
cmp esi, 0xf4240
mov word [esp + 0x24], 0x4d42
mov dword [esp + 0x20], esi
mov dword [esp + 0x26], esi
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], ax
mov dword [esp + 0x2e], 0x36
jbe 0x521b65
call fcn.004c90f0
shr eax, 1
cmp eax, esi
jb 0x521b79
push 0x734220
push esi
call fcn.0069c1fd
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x521b8c
push edi
call fcn.0069c8fa
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [ebx], edx
mov dx, word [esp + 0x30]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov word [ebx + 0xc], dx
lea edi, [ebx + 0xe]
mov ecx, 0xa
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x18]
push eax
lea ecx, [ebx + 0x36]
push esi
push ecx
call fcn.006a4bd0
mov edx, dword [esp + 0x28]
add esp, 0xc
push ebp
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call fcn.0069c8fa
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x68]
add esp, 4
push edx
push eax
mov ecx, 1
mov edi, ebx
call fcn.004cf0e0
push ebx
call fcn.0069c8fa
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4