Function at 0x10045c05
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x84]
push ebp
push esi
xor esi, esi
mov dword [esp + 0x18], ebx
mov ebp, esi
push edi
test ebx, ebx
je 0x10045f91
push ebx
call dword [sym.imp.GDI32.dll_GetObjectType]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x24], edi
cmp eax, 7
je 0x10045d05
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x10045d05
lea eax, [esp + 0x4c]
push eax
push 0x18
pop ecx
push ecx
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x10045cf9
push esi
push esi
push esi
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x10045cf9
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10045cf2
push dword [esp + 0x54]
push dword [esp + 0x54]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
test ebp, ebp
je 0x10045cf2
push ebp
push dword [esp + 0x1c]
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 + 0x60]
push dword [esp + 0x60]
push ebx
push eax
push eax
push dword [esp + 0x38]
call dword [sym.imp.USER32.dll_DrawIconEx]
push esi
call edi
push dword [esp + 0x18]
mov ebx, ebp
mov dword [esp + 0x20], ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x44]
call edi
push dword [esp + 0x48]
call edi
lea eax, [esp + 0x4c]
push eax
push 0x18
pop eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x10045f91
mov esi, dword [esp + 0x94]
test esi, esi
jne 0x10045d32
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, eax
mov ecx, dword [esp + 0x5e]
xor ebx, ebx
imul ecx, dword [esp + 0x5c]
inc ebx
movzx edx, cx
cmp dx, bx
ja 0x10045d4a
mov ecx, ebx
jmp 0x10045d71
push 4
pop ecx
mov dword [esp + 0x10], ecx
cmp dx, cx
jbe 0x10045d75
push 8
pop ecx
mov dword [esp + 0x10], ecx
cmp dx, cx
jbe 0x10045d75
push 0x18
pop eax
cmp ax, dx
push 0x18
sbb eax, eax
and eax, ecx
pop ecx
add ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x6c], eax
xor eax, eax
push eax
mov dword [esp + 0x68], 0x28
mov word [esp + 0x74], bx
mov word [esp + 0x76], cx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0
push esi
mov esi, dword [sym.imp.GDI32.dll_SelectPalette]
mov ebx, eax
push ebx
mov dword [esp + 0x2c], esi
call esi
mov dword [esp + 0x14], eax
mov eax, dword [sym.imp.GDI32.dll_RealizePalette]
push ebx
mov dword [esp + 0x1c], eax
call eax
lea eax, [esp + 0x64]
push eax
call fcn.10045f9d
pop ecx
movzx ecx, ax
add ecx, 0x28
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x10045e37
inc eax
push eax
push dword [esp + 0x18]
push ebx
call esi
push ebx
call dword [esp + 0x1c]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebp, ebp
je 0x10045f91
push ebp
call edi
jmp 0x10045f91
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x38], eax
call eax
mov esi, eax
mov dword [esi], 0x28
mov eax, dword [esp + 0x28]
mov dword [esi + 4], eax
xor eax, eax
mov ecx, dword [esp + 0x2c]
inc eax
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
mov eax, dword [esp + 0x10]
mov word [esi + 0xe], ax
xor eax, eax
push eax
push esi
push eax
push ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
push eax
push dword [esp + 0x30]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
push ebx
mov dword [esi + 0x24], eax
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0xa
pop ecx
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x78]
test edx, edx
jne 0x10045ec6
mov eax, dword [esp + 0x10]
movzx edx, ax
imul edx, dword [esp + 0x50]
add edx, 0x1f
shr edx, 5
imul edx, dword [esp + 0x54]
shl edx, 2
mov dword [esp + 0x78], edx
lea eax, [esp + 0x64]
push 0
push eax
call fcn.10045f9d
movzx eax, ax
add eax, edx
add eax, dword [esp + 0x6c]
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov edi, eax
test edi, edi
je 0x10045f66
push edi
call dword [esp + 0x38]
mov esi, eax
push 0
push esi
push esi
call fcn.10045f9d
movzx edx, word [esi]
pop ecx
movzx ecx, ax
add ecx, esi
xor esi, esi
add edx, ecx
push edx
push dword [esp + 0x78]
push esi
push dword [esp + 0x30]
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
push edi
test eax, eax
jne 0x10045f39
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
inc eax
push eax
push dword [esp + 0x18]
push ebx
call dword [esp + 0x2c]
push ebx
call dword [esp + 0x1c]
push ebx
push esi
jmp 0x10045f82
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
inc eax
push eax
push dword [esp + 0x18]
push ebx
call dword [esp + 0x2c]
push ebx
call dword [esp + 0x1c]
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebp, ebp
je 0x10045f62
push ebp
call dword [esp + 0x28]
mov eax, edi
jmp 0x10045f93
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
push eax
push dword [esp + 0x18]
push ebx
call dword [esp + 0x2c]
push ebx
call dword [esp + 0x1c]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebp, ebp
je 0x10045f91
push ebp
call dword [esp + 0x28]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 8