Function at 0x1400029e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x3c8], rbx
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov edi, r8d
mov rbx, rcx
call fcn.140002420
mov r12, rax
xor r13d, r13d
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x38], r13
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov r10, qword [rax]
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1e
lea r9, [rbp - 0x20]
mov r8d, edi
lea rdx, [rbp - 0x60]
mov rcx, r12
call qword [r10 + 0xb0]
mov edi, r13d
test eax, eax
jne 0x140002d06
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x78], eax
lea rsi, [rsp + 0x78]
nop
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x60]
mov r8d, 4
mov rdx, rsi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002d7b
mov eax, dword [rsp + 0x60]
add edi, eax
add rsi, rax
cmp edi, 4
jb 0x140002a80
mov r14d, r13d
cmp dword [rsp + 0x74], r13d
jbe 0x140002d3d
lea r15, [rbp - 0x20]
nop word [rax + rax]
mov rax, qword [r12]
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x74]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x54]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xff
lea rcx, [rbp + 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x50]
mov edx, dword [r15]
mov rcx, r12
call qword [rax + 0x1d8]
test eax, eax
jne 0x140002c16
mov eax, dword [rsp + 0x70]
add eax, eax
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x78]
mov r8d, 4
lea rdx, [rsp + 0x70]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x140002b78
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x78]
lea rdx, [rbp + 0x60]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbp - 0x74]
mov dword [rsp + 0x60], eax
lea rsi, [rsp + 0x60]
mov edi, r13d
nop word [rax + rax]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x78]
mov r8d, 4
mov rdx, rsi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002dd3
mov eax, dword [rsp + 0x78]
add edi, eax
add rsi, rax
cmp edi, 4
jb 0x140002b90
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x60], eax
lea rsi, [rsp + 0x60]
mov edi, r13d
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x6c]
mov r8d, 4
mov rdx, rsi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002db5
mov eax, dword [rbp - 0x6c]
add edi, eax
add rsi, rax
cmp edi, 4
jb 0x140002be0
jmp 0x140002cf3
mov dword [rsp + 0x60], r13d
lea rsi, [rsp + 0x60]
mov edi, r13d
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x68]
mov r8d, 4
mov rdx, rsi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002e2b
mov eax, dword [rbp - 0x68]
add edi, eax
add rsi, rax
cmp edi, 4
jb 0x140002c30
mov dword [rsp + 0x60], r13d
lea rsi, [rsp + 0x60]
mov edi, r13d
nop
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x80]
mov r8d, 4
mov rdx, rsi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002e0d
mov eax, dword [rbp - 0x80]
add edi, eax
add rsi, rax
cmp edi, 4
jb 0x140002c70
mov dword [rsp + 0x60], 0xffffffff
lea rsi, [rsp + 0x60]
mov edi, r13d
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x68]
mov r8d, 4
mov rdx, rsi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002df1
mov eax, dword [rsp + 0x68]
add edi, eax
add rsi, rax
cmp edi, 4
jb 0x140002cc0
inc r14d
add r15, 4
cmp r14d, dword [rsp + 0x74]
jae 0x140002d3d
jmp 0x140002ad0
mov dword [rsp + 0x68], r13d
lea rsi, [rsp + 0x68]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x80]
mov r8d, 4
mov rdx, rsi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002d99
mov eax, dword [rbp - 0x80]
add edi, eax
add rsi, rax
cmp edi, 4
jb 0x140002d10
mov rdx, qword [rbp - 0x60]
test rdx, rdx
je 0x140002d51
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x18]
nop
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400056d0
mov rbx, qword [rsp + 0x3c8]
add rsp, 0x370
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, str.Write_Error
mov qword [rsp + 0x68], rax
lea rdx, [0x14002a430]
lea rcx, [rsp + 0x68]
call fcn.140006fb8
int3
lea rax, str.Write_Error
mov qword [rbp - 0x68], rax
lea rdx, [0x14002a430]
lea rcx, [rbp - 0x68]
call fcn.140006fb8
int3
lea rax, str.Write_Error
mov qword [rsp + 0x68], rax
lea rdx, [0x14002a430]
lea rcx, [rsp + 0x68]
call fcn.140006fb8
int3
lea rax, str.Write_Error
mov qword [rsp + 0x68], rax
lea rdx, [0x14002a430]
lea rcx, [rsp + 0x68]
call fcn.140006fb8
int3
lea rax, str.Write_Error
mov qword [rbp - 0x80], rax
lea rdx, [0x14002a430]
lea rcx, [rbp - 0x80]
call fcn.140006fb8
int3
lea rax, str.Write_Error
mov qword [rsp + 0x68], rax
lea rdx, [0x14002a430]
lea rcx, [rsp + 0x68]
call fcn.140006fb8
int3
lea rax, str.Write_Error
mov qword [rsp + 0x68], rax
lea rdx, [0x14002a430]
lea rcx, [rsp + 0x68]
call fcn.140006fb8
int3