Function at 0x5477c1
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 0x5477de
xor eax, eax
jmp 0x547b24
push edi
push ebp
call dword [sym.imp.GDI32.dll_GetObjectType]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, 7
je 0x5478c1
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x5478c1
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 0x5478b5
push esi
push esi
push esi
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x5478b5
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x10], eax
test eax, eax
je 0x5478ae
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 0x5478ae
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 0x547b21
mov esi, dword [esp + 0x7c]
test esi, esi
jne 0x5478eb
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 0x547903
mov ecx, ebp
jmp 0x54792a
push 4
pop ecx
mov dword [esp + 0x7c], ecx
cmp dx, cx
jbe 0x54792e
push 8
pop ecx
mov dword [esp + 0x7c], ecx
cmp dx, cx
jbe 0x54792e
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.00547b2d
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 0x5479d9
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 0x547b21
push ebx
call edi
jmp 0x547b21
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 0x547a43
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.00547b2d
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 0x547aee
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push 0
push esi
push esi
call fcn.00547b2d
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 0x547abd
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 0x547b0c
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 0x547aea
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, edi
jmp 0x547b23
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 0x547b21
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