Function at 0x416750
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x479bf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x40], edi
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
xor ebx, ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
test eax, eax
jle 0x416957
mov ecx, dword [ebp + 0xc]
push esi
cmp ebx, ecx
je 0x41678f
test ecx, ecx
jns 0x41694a
push 0
push ebx
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test esi, esi
je 0x4167b1
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x4168d0
cmp dword [ebp - 0xc], 0
je 0x4168d0
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
lea eax, [ebp - 0x30]
push eax
push 0x18
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
call ebx
push edi
mov dword [ebp - 0x34], eax
call ebx
push dword [ebp - 0x28]
mov ebx, eax
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0xc]
push dword [ebp - 0x34]
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xff00ff
push dword [ebp - 0x28]
mov esi, eax
push dword [ebp - 0x2c]
push 0
push 0
push ebx
call fcn.004236f0
add esp, 0x18
push 0x8800c6
push 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x34]
push 0x8800c6
push 0
push 0
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
push 1
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 8]
push dword [ebp - 0x34]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xee0086
push 0
push 0
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 0
push 0
push dword [ebp - 0x34]
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
mov edi, dword [ebp - 0x34]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
push ebx
call edi
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp + 0x10]
jmp 0x4168d6
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
movsd xmm0, qword [ebp + 0x14]
sub esp, 8
movsd qword [esp], xmm0
push eax
push dword [ebp - 8]
call fcn.00415a10
mov eax, dword [0x48d5f4]
add esp, 0x10
test eax, eax
je 0x416914
cmp dword [eax + 0xdd0], 0
je 0x416914
push 8
push 0x10
push dword [ebp - 8]
push 0
push 0
call fcn.0040e140
add esp, 0x14
push dword [ebp - 0xc]
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Replace]
mov eax, dword [ebp - 8]
test eax, eax
je 0x416933
push eax
call esi
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x416944
push eax
call esi
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
inc ebx
mov dword [ebp - 0x3c], ebx
cmp ebx, eax
jl 0x416783
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004380f8
mov esp, ebp
pop ebp
ret