Function at 0x4e9340
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x611ff2
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6963f4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
cmp dword [esp + 0x80], 0
mov dword [esp + 0x18], 0
je 0x4e93c5
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.user32.dll_GetCursorPos]
call fcn.004e9190
lea ecx, [esp + 0x4c]
push ecx
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.user32.dll_GetIconInfo]
mov eax, dword [esp + 0x58]
test eax, eax
mov esi, dword [sym.imp.gdi32.dll_DeleteObject]
je 0x4e93aa
push eax
call esi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4e93b5
push eax
call esi
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
sub dword [esp + 0x24], edx
sub dword [esp + 0x28], eax
lea esi, [esp + 0x3c]
call fcn.004e92f0
mov ebx, dword [esp + 0x78]
test ebx, ebx
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x7c]
je 0x4e93f2
test ebp, ebp
jne 0x4e940a
test ebx, ebx
jg 0x4e93fc
mov eax, edx
sub eax, ecx
mov dword [esp + 0x78], eax
mov ebx, eax
test ebp, ebp
jg 0x4e940a
mov eax, edi
sub eax, esi
mov dword [esp + 0x7c], eax
mov ebp, eax
mov eax, dword [esp + 0x70]
cmp eax, ecx
jge 0x4e9420
sub eax, ecx
add ebx, eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x70], ecx
mov eax, ecx
mov ecx, dword [esp + 0x74]
cmp ecx, esi
jge 0x4e9436
sub ecx, esi
add ebp, ecx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x74], esi
mov ecx, esi
lea esi, [eax + ebx]
cmp esi, edx
jle 0x4e9445
sub edx, eax
mov dword [esp + 0x78], edx
mov ebx, edx
lea edx, [ecx + ebp]
cmp edx, edi
jle 0x4e9454
sub edi, ecx
mov dword [esp + 0x7c], edi
mov ebp, edi
push 0
call dword [sym.imp.user32.dll_GetDC]
push 8
mov edi, eax
call fcn.0055dbcb
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x4e947d
mov dword [eax + 4], ecx
mov dword [eax], vtable.CBitmap.0
mov dword [esp + 0x1c], eax
jmp 0x4e9481
mov dword [esp + 0x1c], ecx
push edi
call fcn.0056fa15
push ebp
mov esi, eax
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0056fcea
lea ecx, [esp + 0x2c]
call fcn.0056f38b
mov dword [esp + 0x68], 0
mov esi, dword [esi + 4]
push esi
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call fcn.0056fa23
push 0x26
push edi
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
test eax, 0x100
je 0x4e95d9
push 0x408
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4e9512
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], 0xffffffff
call fcn.0056fa9d
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
lea ebp, [ebx + 4]
push ebp
push 0x100
push 0
push edi
mov word [ebx], 0x300
mov word [ebx + 2], 0x100
call dword [sym.imp.gdi32.dll_GetSystemPaletteEntries]
push edi
mov esi, eax
call dword [sym.imp.gdi32.dll_GetSystemPaletteUse]
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
test eax, eax
mov dword [esp + 0x18], eax
je 0x4e9569
test esi, esi
jle 0x4e955e
lea eax, [ebp + 3]
mov ecx, esi
mov byte [eax], 4
add eax, 4
sub ecx, 1
jne 0x4e9553
mov byte [ebp + esi*4 - 1], 0
mov byte [ebp + 3], 0
jmp 0x4e9590
xor eax, eax
test esi, esi
jle 0x4e9590
lea ecx, [ebp + 3]
cmp eax, 0xa
jl 0x4e9583
lea edx, [esi - 0xa]
cmp eax, edx
jge 0x4e9583
mov byte [ecx], 4
jmp 0x4e9586
mov byte [ecx], 0
add eax, 1
add ecx, 4
cmp eax, esi
jl 0x4e9572
push ebx
call dword [sym.imp.gdi32.dll_CreatePalette]
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_LocalFree]
cmp dword [esp + 0x18], 0
je 0x4e95b4
mov eax, dword [esp + 0x30]
push 2
push eax
call dword [sym.imp.gdi32.dll_SetSystemPaletteUse]
mov ecx, dword [esp + 0x30]
push 0
push esi
push ecx
call dword [sym.imp.gdi32.dll_SelectPalette]
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.gdi32.dll_RealizePalette]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e95e4
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.0056fd6f
push 0
push ebp
push ebx
push 0
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x90], eax
call fcn.00570701
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x30]
neg eax
sbb eax, eax
and eax, 0x40000000
or eax, 0xcc0020
push eax
push esi
push ecx
push edi
push ebp
push ebx
push 0
push 0
push edx
call dword [sym.imp.gdi32.dll_BitBlt]
test edi, edi
je 0x4e9646
push edi
push 0
call dword [sym.imp.user32.dll_ReleaseDC]
cmp dword [esp + 0x80], 0
je 0x4e967d
mov eax, dword [esp + 0x30]
push 1
push eax
call dword [sym.imp.gdi32.dll_SetMapMode]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x34]
sub edx, esi
push edx
push eax
push ecx
call dword [sym.imp.user32.dll_DrawIcon]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4e9688
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x30]
push eax
push edx
call fcn.0056fd6f
mov edi, dword [esp + 0x18]
test edi, edi
mov esi, eax
je 0x4e96b1
mov eax, dword [esp + 0x30]
push 0
push edi
push eax
call dword [sym.imp.gdi32.dll_SelectPalette]
mov dword [esp + 0x18], eax
mov edi, eax
push 0x480
call fcn.0055dbcb
add esp, 4
mov dword [esp + 0x7c], eax
test eax, eax
mov byte [esp + 0x68], 1
je 0x4e96d5
push eax
call fcn.004e31f0
mov ebx, eax
jmp 0x4e96d7
xor ebx, ebx
test edi, edi
mov byte [esp + 0x68], 0
je 0x4e96e8
push edi
call fcn.0056fcdc
jmp 0x4e96ea
xor eax, eax
test esi, esi
jne 0x4e96f2
xor ecx, ecx
jmp 0x4e96f5
mov ecx, dword [esi + 4]
push eax
push ecx
push ebx
call fcn.004e3690
test esi, esi
je 0x4e9713
mov ecx, esi
call fcn.0056fd3d
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], 0xffffffff
call fcn.0056fa9d
mov eax, ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret