Function at 0x525ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x61f138]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov dword [esp + 0x30], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
push 0xc
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x10]
neg ecx
mov dword [esp + 0x5c], eax
mov eax, 1
push 0
push 0
mov word [esp + 0x6c], ax
lea eax, [esp + 0x3c]
push eax
push 1
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 0x28
push eax
push ebx
mov dword [esp + 0x78], ecx
mov word [esp + 0x7e], si
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x28], eax
push edi
test eax, eax
jne 0x525cc2
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push ebx
call esi
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.GDI32.dll_SaveDC]
push dword [esp + 0x28]
mov esi, eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push ebx
push dword [esp + 0x28]
push dword [esp + 0x24]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
push ebx
call esi
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov ebx, eax
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x525d43
lea eax, [esp + 0x18]
mov dword [ebx], vtable.Gdiplus::Bitmap.0
push eax
push 0
push dword [esp + 0x30]
mov dword [esp + 0x24], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 4], eax
jmp 0x525d45
xor ebx, ebx
mov eax, dword [0x5d6708]
mov dword [esp + 0x88], eax
mov eax, dword [0x5d670c]
mov dword [esp + 0x8c], eax
mov eax, dword [0x5d6710]
mov dword [esp + 0x90], eax
mov eax, dword [0x5d6714]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], 0x50
push eax
mov dword [esp + 0x8c], 1
mov dword [esp + 0xa0], 1
mov dword [esp + 0xa4], 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x525e4d
push eax
call fcn.005997bc
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
je 0x525e4d
push edi
push dword [esp + 0x1c]
push dword [esp + 0x18]
call dword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x525e44
add edi, 0x30
mov edi, edi
mov ecx, dword [edi]
mov eax, str.image_jpeg
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x525e2d
test dx, dx
je 0x525e29
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x525e2d
add ecx, 4
add eax, 4
test dx, dx
jne 0x525e07
xor eax, eax
jmp 0x525e32
sbb eax, eax
or eax, 1
test eax, eax
je 0x525e96
inc esi
add edi, 0x4c
cmp esi, dword [esp + 0x10]
jb 0x525e00
mov edi, dword [esp + 0x24]
push edi
call fcn.00591b7a
add esp, 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
sete byte [esp + 0xf]
test eax, eax
jne 0x525f44
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x1c]
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
test eax, eax
je 0x525ebd
mov dword [ebx + 8], eax
jmp 0x525ebf
mov edx, dword [esp + 0x24]
imul ecx, esi, 0x4c
add ecx, edx
push edx
mov eax, dword [ecx]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x58], eax
jmp 0x525e45
xor eax, eax
test eax, eax
sete byte [esp + 0xf]
test eax, eax
jne 0x525f44
mov dword [esp + 0x24], eax
lea edx, [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push 2
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x14]
test eax, eax
sete byte [esp + 0xf]
test eax, eax
jne 0x525f3a
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x14]
test eax, eax
sete byte [esp + 0xf]
test eax, eax
jne 0x525f3a
mov edi, dword [esp + 0x30]
mov ecx, edi
push edi
push dword [esp + 0x1c]
call fcn.00461bf0
mov esi, dword [edi]
mov edx, dword [edi + 4]
lea edi, [esp + 0x24]
mov eax, dword [esp + 0x14]
sub edx, esi
push edi
push edx
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
sete byte [esp + 0xf]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
test ebx, ebx
je 0x525f50
mov edx, dword [ebx]
mov ecx, ebx
push 1
call dword [edx]
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0xa4]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret