Function at 0x438320
Capabilities:
Capture screenshot
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0
mov dword [ebp - 0x74], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov dword [ebp - 0x78], ebx
test ebx, ebx
jne 0x438367
push str.Failed_to_get_screen_device_context
call fcn.004046d0
add esp, 4
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push 0
call esi
push 1
mov dword [ebp - 0x60], eax
call esi
mov edi, eax
push ebx
mov dword [ebp - 0x64], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov dword [ebp - 0x6c], esi
test esi, esi
jne 0x4383b8
push str.Failed_to_create_compatible_memory_device_context
call fcn.004046d0
add esp, 4
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x60]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
mov dword [ebp - 0x70], edi
test edi, edi
jne 0x4383db
push str.Failed_to_create_compatible_bitmap
call fcn.004046d0
add esp, 4
jmp 0x438423
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push ebx
push dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
push dword [ebp - 0x60]
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x438449
push str.BitBlt_failed
call fcn.004046d0
add esp, 4
push dword [ebp - 0x68]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x14
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x58], xmm0
call dword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x438485
cmp dword [ebp - 0x58], 1
jne 0x438485
push dword [ebp - 0x54]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push esi
call dword [sym.imp.USER32.dll_DrawIcon]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x64]
neg eax
mov dword [ebp - 0x48], 0x28
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x3c], 0x180001
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
jb 0x4384d6
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x68], ecx
cmp ecx, 0xffffffff
jne 0x438533
push str.Failed_to_create_file.
call fcn.004046d0
add esp, 4
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret
mov eax, 0x4d42
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x64]
imul eax, dword [ebp - 0x60]
mov dword [ebp - 0xe], 0x36
lea ebx, [eax + eax*2]
lea eax, [ebx + 0x36]
mov dword [ebp - 0x16], eax
xor eax, eax
push eax
mov dword [ebp - 0x12], eax
lea eax, [ebp - 8]
push eax
push 0xe
lea eax, [ebp - 0x18]
push eax
push ecx
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x28
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x68]
call edi
push ebx
call fcn.00423d44
add esp, 4
mov esi, eax
lea eax, [ebp - 0x48]
push 0
push eax
push esi
push dword [ebp - 0x64]
push 0
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov ebx, dword [ebp - 0x68]
push esi
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00423d4d
add esp, 4
push dword [ebp - 0x6c]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x70]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x78]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push str.Screenshot_saved_as_bmp_success
call fcn.004046d0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0040219c
mov esp, ebp
pop ebp
ret