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

Disassembly:
push 0xffffffffffffffff
push 0x61a0f2
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x69e3d4]
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 0x4ec6c5
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.user32.dll_GetCursorPos]
call fcn.004ec490
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 0x4ec6aa
push eax
call esi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4ec6b5
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.004ec5f0
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 0x4ec6f2
test ebp, ebp
jne 0x4ec70a
test ebx, ebx
jg 0x4ec6fc
mov eax, edx
sub eax, ecx
mov dword [esp + 0x78], eax
mov ebx, eax
test ebp, ebp
jg 0x4ec70a
mov eax, edi
sub eax, esi
mov dword [esp + 0x7c], eax
mov ebp, eax
mov eax, dword [esp + 0x70]
cmp eax, ecx
jge 0x4ec720
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 0x4ec736
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 0x4ec745
sub edx, eax
mov dword [esp + 0x78], edx
mov ebx, edx
lea edx, [ecx + ebp]
cmp edx, edi
jle 0x4ec754
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.005655ab
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x4ec77d
mov dword [eax + 4], ecx
mov dword [eax], vtable.CBitmap.0
mov dword [esp + 0x1c], eax
jmp 0x4ec781
mov dword [esp + 0x1c], ecx
push edi
call fcn.005775a4
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.00577879
lea ecx, [esp + 0x2c]
call fcn.00576f1a
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.005775b2
push 0x26
push edi
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
test eax, 0x100
je 0x4ec8d9
push 0x408
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4ec812
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], 0xffffffff
call fcn.0057762c
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 0x4ec869
test esi, esi
jle 0x4ec85e
lea eax, [ebp + 3]
mov ecx, esi
mov byte [eax], 4
add eax, 4
sub ecx, 1
jne 0x4ec853
mov byte [ebp + esi*4 - 1], 0
mov byte [ebp + 3], 0
jmp 0x4ec890
xor eax, eax
test esi, esi
jle 0x4ec890
lea ecx, [ebp + 3]
cmp eax, 0xa
jl 0x4ec883
lea edx, [esi - 0xa]
cmp eax, edx
jge 0x4ec883
mov byte [ecx], 4
jmp 0x4ec886
mov byte [ecx], 0
add eax, 1
add ecx, 4
cmp eax, esi
jl 0x4ec872
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 0x4ec8b4
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 0x4ec8e4
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.005778fe
push 0
push ebp
push ebx
push 0
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x90], eax
call fcn.00578290
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 0x4ec946
push edi
push 0
call dword [sym.imp.user32.dll_ReleaseDC]
cmp dword [esp + 0x80], 0
je 0x4ec97d
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 0x4ec988
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x30]
push eax
push edx
call fcn.005778fe
mov edi, dword [esp + 0x18]
test edi, edi
mov esi, eax
je 0x4ec9b1
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.005655ab
add esp, 4
mov dword [esp + 0x7c], eax
test eax, eax
mov byte [esp + 0x68], 1
je 0x4ec9d5
push eax
call fcn.004e6580
mov ebx, eax
jmp 0x4ec9d7
xor ebx, ebx
test edi, edi
mov byte [esp + 0x68], 0
je 0x4ec9e8
push edi
call fcn.0057786b
jmp 0x4ec9ea
xor eax, eax
test esi, esi
jne 0x4ec9f2
xor ecx, ecx
jmp 0x4ec9f5
mov ecx, dword [esi + 4]
push eax
push ecx
push ebx
call fcn.004e6a20
test esi, esi
je 0x4eca13
mov ecx, esi
call fcn.005778cc
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.0057762c
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