Function at 0x551dd8
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
xor esi, esi
mov ebx, esi
mov dword [esp + 0x10], ebx
test ebp, ebp
jne 0x551df5
xor eax, eax
jmp 0x55213b
push edi
push ebp
call dword [sym.imp.GDI32.DLL_GetObjectType]
mov edi, dword [sym.imp.GDI32.DLL_DeleteObject]
cmp eax, 7
je 0x551ed8
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetIconInfo]
test eax, eax
je 0x551ed8
lea eax, [esp + 0x34]
push eax
push 0x18
pop ecx
push ecx
push dword [esp + 0x34]
call dword [sym.imp.GDI32.DLL_GetObjectW]
test eax, eax
je 0x551ecc
push esi
push esi
push esi
push 0x690d38
call dword [sym.imp.GDI32.DLL_CreateDCW]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x551ecc
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov dword [esp + 0x10], eax
test eax, eax
je 0x551ec5
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x551ec5
push ebx
push dword [esp + 0x14]
call dword [sym.imp.GDI32.DLL_SelectObject]
push 0xffffff
call dword [sym.imp.GDI32.DLL_CreateSolidBrush]
push 3
mov esi, eax
xor eax, eax
push esi
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push ebp
push eax
push eax
push dword [esp + 0x30]
call dword [sym.imp.USER32.DLL_DrawIconEx]
push esi
call edi
push dword [esp + 0x10]
mov ebp, ebx
mov dword [esp + 0x7c], ebp
call dword [sym.imp.GDI32.DLL_DeleteDC]
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.DLL_DeleteDC]
push dword [esp + 0x2c]
call edi
push dword [esp + 0x30]
call edi
lea eax, [esp + 0x34]
push eax
push 0x18
pop eax
push eax
push ebp
call dword [sym.imp.GDI32.DLL_GetObjectW]
test eax, eax
je 0x552138
mov esi, dword [esp + 0x7c]
test esi, esi
jne 0x551f02
push 0xf
call dword [sym.imp.GDI32.DLL_GetStockObject]
mov esi, eax
mov ecx, dword [esp + 0x46]
xor ebp, ebp
imul ecx, dword [esp + 0x44]
inc ebp
movzx edx, cx
cmp dx, bp
ja 0x551f1a
mov ecx, ebp
jmp 0x551f41
push 4
pop ecx
mov dword [esp + 0x7c], ecx
cmp dx, cx
jbe 0x551f45
push 8
pop ecx
mov dword [esp + 0x7c], ecx
cmp dx, cx
jbe 0x551f45
push 0x18
pop eax
cmp ax, dx
push 0x18
sbb eax, eax
and eax, ecx
pop ecx
add ecx, eax
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], eax
xor eax, eax
push eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], bp
mov word [esp + 0x5e], cx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
call dword [sym.imp.USER32.DLL_GetDC]
push 0
push esi
mov esi, dword [sym.imp.GDI32.DLL_SelectPalette]
mov ebp, eax
push ebp
call esi
push ebp
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.DLL_RealizePalette]
lea eax, [esp + 0x4c]
push eax
call fcn.00552144
pop ecx
movzx ecx, ax
add ecx, 0x28
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x551ff0
push 1
push dword [esp + 0x14]
push ebp
call esi
push ebp
call dword [sym.imp.GDI32.DLL_RealizePalette]
push ebp
push 0
call dword [sym.imp.USER32.DLL_ReleaseDC]
test ebx, ebx
je 0x552138
push ebx
call edi
jmp 0x552138
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0xa
pop ecx
mov ebx, eax
lea esi, [esp + 0x4c]
xor eax, eax
mov edi, ebx
push eax
push ebx
push eax
push dword [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
push eax
push dword [esp + 0x8c]
push ebp
call dword [sym.imp.GDI32.DLL_GetDIBits]
push 0xa
pop ecx
mov esi, ebx
lea edi, [esp + 0x4c]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
push esi
call ebx
mov edx, dword [esp + 0x60]
test edx, edx
jne 0x55205a
mov eax, dword [esp + 0x7c]
movzx edx, ax
imul edx, dword [esp + 0x38]
add edx, 0x1f
shr edx, 5
imul edx, dword [esp + 0x3c]
shl edx, 2
mov dword [esp + 0x60], edx
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00552144
movzx eax, ax
add eax, edx
add eax, dword [esp + 0x54]
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov edi, eax
test edi, edi
je 0x552105
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push 0
push esi
push esi
call fcn.00552144
movzx edx, word [esi]
pop ecx
movzx ecx, ax
add ecx, esi
xor esi, esi
add edx, ecx
push edx
push dword [esp + 0x60]
push esi
push dword [esp + 0x8c]
push ebp
call dword [sym.imp.GDI32.DLL_GetDIBits]
push edi
test eax, eax
jne 0x5520d4
call ebx
push 1
push dword [esp + 0x14]
push ebp
call dword [sym.imp.GDI32.DLL_SelectPalette]
push ebp
call dword [sym.imp.GDI32.DLL_RealizePalette]
push ebp
push esi
jmp 0x552123
call ebx
push 1
push dword [esp + 0x14]
push ebp
call dword [sym.imp.GDI32.DLL_SelectPalette]
push ebp
call dword [sym.imp.GDI32.DLL_RealizePalette]
push ebp
push esi
call dword [sym.imp.USER32.DLL_ReleaseDC]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x552101
push eax
call dword [sym.imp.GDI32.DLL_DeleteObject]
mov eax, edi
jmp 0x55213a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 1
push dword [esp + 0x14]
push ebp
call dword [sym.imp.GDI32.DLL_SelectPalette]
push ebp
call dword [sym.imp.GDI32.DLL_RealizePalette]
push ebp
push 0
call dword [sym.imp.USER32.DLL_ReleaseDC]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x552138
push eax
call dword [sym.imp.GDI32.DLL_DeleteObject]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8