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

Disassembly:
push 0xffffffffffffffff
push 0x5d0a52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x68]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 0
je 0x4e7b04
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.user32.dll_GetCursorPos]
call fcn.004e78e0
lea ecx, [esp + 0x44]
mov dword [esp + 0x18], eax
push ecx
push eax
call dword [sym.imp.user32.dll_GetIconInfo]
mov eax, dword [esp + 0x50]
mov edi, dword [sym.imp.gdi32.dll_DeleteObject]
test eax, eax
je 0x4e7add
push eax
call edi
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4e7ae8
push eax
call edi
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
sub esi, edx
sub ecx, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x34]
push ecx
call fcn.004e7a30
mov ebp, dword [esp + 0x74]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x78]
add esp, 4
test ebp, ebp
je 0x4e7b31
test edi, edi
jne 0x4e7b4d
test ebp, ebp
jg 0x4e7b3f
mov eax, edx
sub eax, ecx
mov dword [esp + 0x70], eax
mov ebp, eax
test edi, edi
jg 0x4e7b4d
mov eax, esi
sub eax, ebx
mov dword [esp + 0x74], eax
mov edi, eax
mov eax, dword [esp + 0x68]
cmp eax, ecx
jge 0x4e7b63
sub eax, ecx
mov dword [esp + 0x68], ecx
add ebp, eax
mov eax, ecx
mov dword [esp + 0x70], ebp
mov ecx, dword [esp + 0x6c]
cmp ecx, ebx
jge 0x4e7b79
sub ecx, ebx
mov dword [esp + 0x6c], ebx
add edi, ecx
mov ecx, ebx
mov dword [esp + 0x74], edi
lea ebx, [eax + ebp]
cmp ebx, edx
jle 0x4e7b88
sub edx, eax
mov dword [esp + 0x70], edx
mov ebp, edx
lea edx, [ecx + edi]
cmp edx, esi
jle 0x4e7b97
sub esi, ecx
mov dword [esp + 0x74], esi
mov edi, esi
xor esi, esi
push esi
call dword [sym.imp.user32.dll_GetDC]
push 8
mov ebx, eax
call fcn.00596900
add esp, 4
cmp eax, esi
je 0x4e7bbf
mov dword [eax + 4], esi
mov dword [eax], vtable.CBitmap.0
mov dword [esp + 0x14], eax
jmp 0x4e7bc3
mov dword [esp + 0x14], esi
push ebx
call fcn.0059b460
mov esi, eax
push edi
push ebp
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x14]
push eax
call fcn.0059c0b2
lea ecx, [esp + 0x24]
call fcn.0059b3be
test esi, esi
mov dword [esp + 0x60], 0
je 0x4e7bf9
mov esi, dword [esi + 4]
push esi
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x28]
call fcn.0059b475
push 0x26
push ebx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
test ah, 1
je 0x4e7d1a
push 0x408
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4e7c55
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], 0xffffffff
call fcn.0059b4f3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret
lea esi, [ebp + 4]
mov word [ebp], 0x300
push esi
push 0x100
push 0
push ebx
mov word [ebp + 2], 0x100
call dword [sym.imp.gdi32.dll_GetSystemPaletteEntries]
push ebx
mov edi, 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 + 0x10], eax
je 0x4e7cab
test edi, edi
jle 0x4e7ca0
lea eax, [esi + 3]
mov ecx, edi
mov byte [eax], 4
add eax, 4
dec ecx
jne 0x4e7c97
mov byte [esi + edi*4 - 1], 0
mov byte [esi + 3], 0
jmp 0x4e7cd0
xor eax, eax
test edi, edi
jle 0x4e7cd0
lea ecx, [esi + 3]
cmp eax, 0xa
jl 0x4e7cc5
lea edx, [edi - 0xa]
cmp eax, edx
jge 0x4e7cc5
mov byte [ecx], 4
jmp 0x4e7cc8
mov byte [ecx], 0
inc eax
add ecx, 4
cmp eax, edi
jl 0x4e7cb4
push ebp
call dword [sym.imp.gdi32.dll_CreatePalette]
push ebp
mov esi, eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e7cf5
mov eax, dword [esp + 0x28]
push 2
push eax
call dword [sym.imp.gdi32.dll_SetSystemPaletteUse]
mov ecx, dword [esp + 0x28]
push 0
push esi
push ecx
call dword [sym.imp.gdi32.dll_SelectPalette]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
push edx
call dword [sym.imp.gdi32.dll_RealizePalette]
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e7d25
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.0059b5b6
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x74], eax
push ecx
push edi
push ebp
push 0
push 0
lea ecx, [esp + 0x38]
call fcn.005a9ede
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x6c]
neg edx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x28]
sbb edx, edx
and edx, 0x40000000
or edx, 0xcc0020
push edx
push esi
push eax
push ebx
push edi
push ebp
push 0
push 0
push ecx
call dword [sym.imp.gdi32.dll_BitBlt]
test ebx, ebx
je 0x4e7d89
push ebx
push 0
call dword [sym.imp.user32.dll_ReleaseDC]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4e7dc0
mov edx, dword [esp + 0x28]
push 1
push edx
call dword [sym.imp.gdi32.dll_SetMapMode]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x68]
sub ecx, esi
push eax
mov eax, dword [esp + 0x2c]
sub edx, edi
push ecx
push edx
push eax
call dword [sym.imp.user32.dll_DrawIcon]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4e7dcb
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.0059b5b6
mov esi, dword [esp + 0x10]
mov edi, eax
test esi, esi
je 0x4e7df4
mov edx, dword [esp + 0x28]
push 0
push esi
push edx
call dword [sym.imp.gdi32.dll_SelectPalette]
mov dword [esp + 0x10], eax
mov esi, eax
push 0x480
call fcn.00596900
add esp, 4
mov dword [esp + 0x74], eax
test eax, eax
mov byte [esp + 0x60], 1
je 0x4e7e19
mov ecx, eax
call fcn.004e5b80
mov ebx, eax
jmp 0x4e7e1b
xor ebx, ebx
test esi, esi
mov byte [esp + 0x60], 0
je 0x4e7e2c
push esi
call fcn.0059c09d
jmp 0x4e7e2e
xor eax, eax
test edi, edi
jne 0x4e7e36
xor ecx, ecx
jmp 0x4e7e39
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, ebx
call fcn.004e6050
test edi, edi
je 0x4e7e56
mov ecx, edi
call fcn.0059c109
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], 0xffffffff
call fcn.0059b4f3
mov ecx, dword [esp + 0x58]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret