Function at 0x578860
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 4]
jle 0x57888c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx]
jg 0x578892
mov byte [ebp - 0x31], 1
jmp 0x5788b6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 4]
jle 0x5788b1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
cmp eax, dword [edx]
jle 0x5788b1
xor eax, eax
jmp 0x5788b3
mov al, 1
mov byte [ebp - 0x31], al
cmp byte [ebp - 0x31], 0
jne 0x578a44
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x578a3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
sub eax, dword [edx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
sub eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov esi, eax
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
sub eax, dword [edx]
mov edx, dword [ebp - 0x14]
call fcn.005755c0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 4]
mov edx, dword [ebp - 0x18]
call fcn.005755c0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
push eax
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 - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.gdi32.dll_IntersectClipRect
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x578a22
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x24]
test eax, eax
jle 0x578a07
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
push 0xcc0020
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.gdi32.dll_BitBlt
push 0
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.user32.dll_OffsetRect
inc dword [ebp - 0x1c]
dec dword [ebp - 0x30]
jne 0x5789a9
mov eax, dword [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x54]
push eax
call sub.user32.dll_OffsetRect
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x578985
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578a44
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_RestoreDC
ret
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4