Function at 0x416030
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x478bf4]
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 0x416237
mov ecx, dword [ebp + 0xc]
push esi
cmp ebx, ecx
je 0x41606f
test ecx, ecx
jns 0x41622a
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 0x416091
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x4161b0
cmp dword [ebp - 0xc], 0
je 0x4161b0
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.00422ff0
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 0x4161b6
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.004152f0
mov eax, dword [0x48c5d4]
add esp, 0x10
test eax, eax
je 0x4161f4
cmp dword [eax + 0xdd0], 0
je 0x4161f4
push 8
push 0x10
push dword [ebp - 8]
push 0
push 0
call fcn.0040da20
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 0x416213
push eax
call esi
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x416224
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 0x416063
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004379e8
mov esp, ebp
pop ebp
ret