Function at 0x40f942
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x80
mov eax, dword [0x6d9d44]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
mov eax, ecx
xor ebx, ebx
push ebp
mov ebp, edx
mov dword [esp + 0x14], eax
push esi
mov dword [eax], ebx
mov eax, dword [0x769f0c]
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
push edi
mov edi, dword [esp + 0x94]
mov dword [esp + 0x14], edi
test eax, eax
je 0x40f985
push eax
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDC]
call ebx
mov esi, eax
mov dword [0x769f0c], esi
test esi, esi
jne 0x40f9a2
xor eax, eax
inc eax
jmp 0x40fcdd
mov eax, dword [0x769f70]
test eax, eax
je 0x40f9b8
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [0x769f0c]
mov ecx, dword [0x769ef4]
call fcn.0040f09a
mov ecx, dword [0x769eb0]
push eax
call fcn.0040f09a
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [0x769f70], eax
test eax, eax
je 0x40f99a
push eax
push dword [0x769f34]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x40f99a
cmp dword [0x6e0544], 0x400
jne 0x40fb6d
mov ecx, dword [0x769ebc]
push 0x40cc0020
push dword [0x769ec8]
push dword [0x769ed8]
push dword [0x769f0c]
call fcn.0040f09a
mov ecx, dword [0x769edc]
push eax
call fcn.0040f09a
push eax
xor esi, esi
push esi
push esi
push dword [0x769f34]
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x40f99a
cmp dword [edi], esi
je 0x40fbe2
xor eax, eax
lea edi, [esp + 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 0x14
call dword [sym.imp.USER32.dll_GetCursorInfo]
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_GetIconInfo]
lea eax, [esp + 0x20]
push eax
push 0x18
push dword [esp + 0x60]
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp eax, 0x18
jne 0x40fbe2
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40fbe2
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [esp + 0x5c], 0
mov esi, eax
mov eax, dword [esp + 0x28]
jne 0x40fabc
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x28]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
test esi, esi
je 0x40fb46
test edi, edi
je 0x40fb51
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
jne 0x40faee
cdq
sub eax, edx
sar eax, 1
push 3
xor ecx, ecx
push ecx
push ecx
push eax
push dword [esp + 0x34]
push dword [esp + 0x54]
push ecx
push ecx
push esi
call dword [sym.imp.USER32.dll_DrawIconEx]
cmp dword [esp + 0x5c], 0
mov eax, dword [esp + 0x28]
jne 0x40fb16
cdq
sub eax, edx
sar eax, 1
push 0x660046
push 0
push 0
push esi
push eax
mov eax, dword [esp + 0x28]
push dword [esp + 0x38]
push dword [eax + 8]
push dword [eax + 4]
push dword [0x769f34]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test edi, edi
je 0x40fb51
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
je 0x40fb61
push esi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x40fb63
xor esi, esi
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x40fbe2
push 4
push dword [0x769f34]
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
test eax, eax
je 0x40f99a
mov ecx, dword [0x769ebc]
push 0x40cc0020
call fcn.0040f09a
mov ecx, dword [0x769edc]
push eax
call fcn.0040f09a
mov ecx, dword [0x769ef4]
push eax
push dword [0x769ec8]
push dword [0x769ed8]
push dword [0x769f0c]
call fcn.0040f09a
mov ecx, dword [0x769eb0]
push eax
call fcn.0040f09a
push eax
xor esi, esi
push esi
push esi
push dword [0x769f34]
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
je 0x40f99a
push 0x2c
lea eax, [esp + 0x64]
push esi
push eax
call fcn.005c37d0
add esp, 0xc
mov dword [esp + 0x60], 0x28
lea eax, [esp + 0x60]
push esi
push eax
push esi
push esi
push esi
push dword [0x769f70]
mov esi, dword [sym.imp.GDI32.dll_GetDIBits]
push dword [0x769f0c]
call esi
test eax, eax
jne 0x40fc40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfc
push 0x229
mov edx, 0x6c1ae4
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
jmp 0x40f99a
mov eax, dword [esp + 0x74]
mov di, word [esp + 0x6e]
test eax, eax
jne 0x40fc71
mov eax, dword [esp + 0x68]
cdq
xor eax, edx
movzx ecx, di
sub eax, edx
add ecx, 7
imul eax, ecx
imul eax, dword [esp + 0x64]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x74], eax
push 0x234
mov dword [ebp], eax
xor ebx, ebx
push str...meshcoreKVMWindows_tile.cpp
mov dword [ebp + 4], ebx
movzx eax, di
push 1
push dword [ebp]
shr eax, 3
mov dword [0x769f04], eax
call fcn.005f5ba0
mov edi, dword [esp + 0x2c]
add esp, 0x10
mov dword [edi], eax
test eax, eax
je 0x40f99a
push ebx
lea ecx, [esp + 0x64]
mov dword [esp + 0x74], ebx
push ecx
push eax
push dword [esp + 0x74]
push ebx
push dword [0x769f70]
push dword [0x769f0c]
call esi
test eax, eax
jne 0x40fcdb
push 1
push dword [edi]
call fcn.005f5a60
pop ecx
pop ecx
jmp 0x40f99a
xor eax, eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0db0
add esp, 0x80
ret