Function at 0x41ba70
Capabilities:
Capture screenshot
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x453348]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDC]
xor ebx, ebx
mov esi, ecx
push ebx
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x154], ebx
call edi
push esi
mov dword [ebp - 0x168], eax
call edi
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x15c], eax
cmp eax, ebx
je 0x41bd75
lea eax, [ebp - 0x150]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push 4
push edi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0xcc0020
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp - 0x144]
push eax
mov eax, dword [ebp - 0x148]
push ebx
push ebx
push ecx
push edx
push eax
push ebx
push ebx
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
je 0x41bd75
mov ecx, dword [ebp - 0x144]
sub ecx, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x148]
sub edx, dword [ebp - 0x150]
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x154], eax
cmp eax, ebx
je 0x41bd75
mov ecx, dword [ebp - 0x15c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x144]
sub edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x148]
sub eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x15c]
push 0xcc0020
push ebx
push ebx
push edi
push edx
push eax
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x41bd75
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x188]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0x12c], eax
mov edx, 1
mov word [ebp - 0x124], dx
shl eax, 5
mov edx, 0x20
mov word [ebp - 0x122], dx
add eax, 0x1f
cdq
and edx, 0x1f
lea esi, [edx + eax]
sar esi, 5
imul esi, ecx
add esi, esi
add esi, esi
push esi
push 0x42
mov dword [ebp - 0x130], 0x28
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x160], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp - 0x180]
push ebx
lea ecx, [ebp - 0x130]
push ecx
push eax
push edx
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x154]
push ebx
push eax
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
push pe_nt_image_headers32
lea ecx, [ebp - 0x108]
push ebx
push ecx
call fcn.00427fa0
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x41bc80
mov ecx, dword [str.deskcapture.bmp]
mov edx, dword [0x44fe28]
push ebx
push 0x80
mov dword [eax], ecx
mov ecx, dword [0x44fe2c]
push 2
mov dword [eax + 4], edx
mov edx, dword [0x44fe30]
push ebx
mov dword [eax + 8], ecx
mov cl, byte [0x44fe34]
push ebx
mov dword [eax + 0xc], edx
push 0x40000000
lea edx, [ebp - 0x108]
push edx
mov byte [eax + 0x10], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esi + 0x36]
push ebx
mov dword [ebp - 0x13e], ecx
lea ecx, [ebp - 0x158]
push ecx
mov edx, 0x4d42
mov word [ebp - 0x140], dx
push 0xe
lea edx, [ebp - 0x140]
push edx
push eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x136], 0x36
mov dword [ebp - 0x158], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x164]
push ebx
lea eax, [ebp - 0x158]
push eax
push 0x28
lea ecx, [ebp - 0x130]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x16c]
push ebx
lea eax, [ebp - 0x158]
push eax
push esi
mov esi, dword [ebp - 0x164]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x170]
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp - 0x15c]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x168]
push eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_ReleaseDC]
call ebx
push edi
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041c2f8
mov esp, ebp
pop ebp
ret