Function at 0x499b10
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x50dc10]
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 0x499d17
mov ecx, dword [ebp + 0xc]
push esi
cmp ebx, ecx
je 0x499b4f
test ecx, ecx
jns 0x499d0a
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 0x499b71
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x499c90
cmp dword [ebp - 0xc], 0
je 0x499c90
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.004d6a30
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 0x499c96
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.00498d90
mov eax, dword [0x52e838]
add esp, 0x10
test eax, eax
je 0x499cd4
cmp dword [eax + 0xdd0], 0
je 0x499cd4
push 8
push 0x10
push dword [ebp - 8]
push 0
push 0
call fcn.00484340
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 0x499cf3
push eax
call esi
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x499d04
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 0x499b43
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004e2538
mov esp, ebp
pop ebp
ret