Function at 0x402610
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x28], r9
mov qword [rbp - 0x20], r8
lea rcx, [rbp - 0xc]
mov edx, 0xaa
mov r8d, 4
call fcn.00407750
lea rcx, [rbp - 8]
mov edx, 0xaa
mov r8d, 0x20
call fcn.00407750
mov rax, qword [rbp - 0x18]
cmp byte [rax + 8], 0
jne 0x40268d
jmp 0x4026c6
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x48], rax
lea rcx, [rbp + 0x18]
call fcn.00402f10
cmp byte [rbp + 0x1c], 0
jne 0x4026f6
jmp 0x4026fe
mov rax, qword [rbp - 0x18]
mov rax, qword [rax]
mov qword [rbp - 8], 0
mov qword [rbp], 0
mov ecx, eax
mov dword [rbp + 8], ecx
mov ecx, 0x20
shr rax, cl
mov dword [rbp + 0xc], eax
mov qword [rbp + 0x10], 0
lea rax, [rbp - 8]
mov qword [rbp - 0x50], rax
jmp 0x402670
xor eax, eax
mov qword [rbp - 0x50], rax
jmp 0x402670
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x40]
mov r8d, dword [rbp - 0x54]
lea r9, [rbp - 0xc]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_WriteFile
cmp eax, 0
je 0x402735
jmp 0x4027d9
mov eax, dword [rbp + 0x18]
mov dword [rbp - 0x54], eax
jmp 0x4026ce
mov eax, 0xffffffff
mov dword [rbp - 0x54], eax
jmp 0x4026ce
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov edx, dword [rbp - 0xc]
mov word [rbp + 0x38], 0
mov qword [rbp + 0x30], rdx
mov rdx, qword [rbp + 0x30]
mov qword [rcx], rdx
mov rdx, qword [rbp + 0x38]
mov qword [rcx + 8], rdx
add rsp, 0xc0
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
mov cx, ax
mov word [rbp - 0x56], cx
sub ax, 6
je 0x4028e9
jmp 0x40274d
mov ax, word [rbp - 0x56]
sub ax, 8
je 0x402834
jmp 0x40275d
mov ax, word [rbp - 0x56]
sub ax, 0x21
je 0x40290f
jmp 0x40276d
mov ax, word [rbp - 0x56]
sub ax, 0x40
je 0x402935
jmp 0x40277d
mov ax, word [rbp - 0x56]
sub ax, 0x6d
je 0x4028c3
jmp 0x40278d
mov ax, word [rbp - 0x56]
movzx eax, ax
sub eax, 0x3e3
je 0x40285a
jmp 0x4027a1
mov ax, word [rbp - 0x56]
movzx eax, ax
sub eax, 0x3e5
je 0x4028a6
jmp 0x4027b5
mov ax, word [rbp - 0x56]
movzx eax, ax
sub eax, 0x6f8
je 0x40280e
jmp 0x4027c5
mov ax, word [rbp - 0x56]
movzx eax, ax
sub eax, 0x718
je 0x402880
jmp 0x4027de
jmp 0x402708
mov cx, word [rbp - 0x56]
call fcn.00402fa0
mov rcx, qword [rbp - 0x38]
mov dx, ax
mov rax, qword [rbp - 0x30]
mov word [rbp + 0x28], dx
mov rdx, qword [rbp + 0x20]
mov qword [rcx], rdx
mov rdx, qword [rbp + 0x28]
mov qword [rcx + 8], rdx
add rsp, 0xc0
pop rbp
ret
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [0x004089c0]
mov qword [rcx], rdx
mov rdx, qword [0x004089c8]
mov qword [rcx + 8], rdx
add rsp, 0xc0
pop rbp
ret
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [0x004089c0]
mov qword [rcx], rdx
mov rdx, qword [0x004089c8]
mov qword [rcx + 8], rdx
add rsp, 0xc0
pop rbp
ret
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [0x004089d0]
mov qword [rcx], rdx
mov rdx, qword [0x004089d8]
mov qword [rcx + 8], rdx
add rsp, 0xc0
pop rbp
ret
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [0x004089c0]
mov qword [rcx], rdx
mov rdx, qword [0x004089c8]
mov qword [rcx + 8], rdx
add rsp, 0xc0
pop rbp
ret
lea rcx, str.reached_unreachable_code
mov edx, 0x18
xor eax, eax
mov r8d, eax
lea r9, [0x004089e0]
call fcn.004010e0
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [0x004089f0]
mov qword [rcx], rdx
mov rdx, qword [0x004089f8]
mov qword [rcx + 8], rdx
add rsp, 0xc0
pop rbp
ret
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [0x00408a00]
mov qword [rcx], rdx
mov rdx, qword [0x00408a08]
mov qword [rcx + 8], rdx
add rsp, 0xc0
pop rbp
ret
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [0x00408a10]
mov qword [rcx], rdx
mov rdx, qword [0x00408a18]
mov qword [rcx + 8], rdx
add rsp, 0xc0
pop rbp
ret
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [0x00408a20]
mov qword [rcx], rdx
mov rdx, qword [0x00408a28]
mov qword [rcx + 8], rdx
add rsp, 0xc0
pop rbp
ret