Function at 0x413690
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xd0
mov rbp, rsp
mov qword [rbp + 0xe0], rcx
mov dword [rbp + 0xe8], edx
mov dword [rbp + 0xf0], r8d
mov rcx, qword [rbp + 0xe0]
call fcn.00409310
nop
mov byte [rbp + 0xcf], 0
mov ecx, 0x42c
call fcn.00404cd0
mov qword [rbp + 0x80], rax
cmp qword [rbp + 0x80], 0
je 0x413a35
mov rax, qword [rbp + 0x80]
mov dword [rax], 0x28
mov rax, qword [rbp + 0x80]
mov ecx, dword [rbp + 0xe8]
mov dword [rax + 4], ecx
mov rax, qword [rbp + 0x80]
mov ecx, dword [rbp + 0xf0]
mov dword [rax + 8], ecx
mov rax, qword [rbp + 0x80]
mov word [rax + 0xc], 1
mov rax, qword [rbp + 0x80]
mov word [rax + 0xe], 8
mov rax, qword [rbp + 0x80]
mov dword [rax + 0x10], 0
mov rax, qword [rbp + 0x80]
mov ecx, dword [rbp + 0xe8]
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, 0x1f
shr ecx, 3
and ecx, 0xfffffffc
imul ecx, dword [rbp + 0xf0]
mov dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x80]
mov dword [rax + 0x18], 0
mov rax, qword [rbp + 0x80]
mov dword [rax + 0x1c], 0
mov rax, qword [rbp + 0x80]
mov dword [rax + 0x20], pe_nt_image_headers64
mov rax, qword [rbp + 0x80]
mov dword [rax + 0x24], 0
lea rcx, [0x00434400]
mov rax, qword [rbp + 0x80]
lea rdx, [rax + 0x28]
mov r8d, 0x400
call fcn.00405040
call sub.user32.dll_GetDesktopWindow
mov qword [rbp + 0x58], rax
mov rcx, qword [rbp + 0x58]
call sub.user32.dll_GetDC
mov qword [rbp + 0xa0], rax
mov rcx, qword [rbp + 0xa0]
call sub.gdi32.dll_CreateCompatibleDC
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0x80]
xor r8, r8
lea r9, [rbp + 0xa8]
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call sub.gdi32.dll_CreateDIBSection
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xc0], 0
je 0x413827
cmp qword [rbp + 0xa8], 0
jne 0x413838
mov rcx, qword [rbp + 0x80]
call fcn.00404d00
jmp 0x413a35
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0xc0]
call sub.gdi32.dll_SelectObject
mov rcx, qword [rbp + 0x88]
xor edx, edx
xor r8, r8
mov r9d, dword [rbp + 0xe8]
mov eax, dword [rbp + 0xf0]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0xa0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0xcc0020
call sub.gdi32.dll_BitBlt
test eax, eax
jne 0x41389b
mov byte [rbp + 0x56], 1
jmp 0x41389f
mov byte [rbp + 0x56], 0
mov rcx, qword [rbp + 0xe0]
call fcn.0040a4d0
mov rcx, rax
mov edx, 0x40000000
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0xffffffffffffffff
je 0x4139f5
mov dword [rbp + 0x64], 0
cmp byte [rbp + 0x56], 0
je 0x41392d
lea rcx, [0x0042c578]
call fcn.00409940
mov rcx, qword [rbp + 0x68]
mov rdx, rax
mov r8d, 0x3a
lea r9, [rbp + 0x64]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov byte [rbp + 0xcf], 0
jmp 0x4139ec
mov dword [rbp + 0x64], 0
lea rcx, [rbp + 0x72]
mov edx, 0xe
xor r8, r8
call fcn.00405c10
mov word [rbp + 0x72], 0x4d42
mov dword [rbp + 0x7c], 0x436
mov eax, dword [rbp + 0xe8]
imul eax, dword [rbp + 0xf0]
add eax, 0x436
mov dword [rbp + 0x74], eax
mov rcx, qword [rbp + 0x68]
lea rdx, [rbp + 0x72]
mov r8d, 0xe
lea r9, [rbp + 0x64]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x80]
mov r8d, 0x428
lea r9, [rbp + 0x64]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0xa8]
mov r8d, dword [rbp + 0xe8]
add r8d, r8d
add r8d, r8d
add r8d, r8d
add r8d, 0x1f
shr r8d, 3
and r8d, 0xfffffffc
imul r8d, dword [rbp + 0xf0]
lea r9, [rbp + 0x64]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle
cmp byte [rbp + 0x56], 0
jne 0x413a02
mov byte [rbp + 0xcf], 1
mov rcx, qword [rbp + 0x80]
call fcn.00404d00
mov rcx, qword [rbp + 0x88]
call sub.gdi32.dll_DeleteDC
xor ecx, ecx
mov rdx, qword [rbp + 0xa0]
call sub.user32.dll_ReleaseDC
mov rcx, qword [rbp + 0xc0]
call sub.gdi32.dll_DeleteObject
nop
lea rcx, [rbp + 0xe0]
call fcn.00409180
movzx rax, byte [rbp + 0xcf]
lea rsp, [rbp + 0xd0]
pop rbp
ret