Function at 0x14006aeb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 8]
sub rsp, 0x108
cmp qword [rcx + 0x228], 0xffffffffffffffff
mov rbx, rcx
jne 0x14006aed8
mov al, 1
add rsp, 0x108
pop rbx
pop rbp
ret
cmp byte [rcx + 0x240], 0
mov qword [rsp + 0xe8], r14
je 0x14006aeee
call fcn.1400698b0
mov qword [rsp + 0x100], rsi
lea rcx, [rbx + 0x220]
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xf0], r12
mov qword [rsp + 0xe0], r15
call fcn.1400044c0
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14006b70b
mov rdi, qword [rbx + 0x230]
xor r15d, r15d
mov esi, r15d
test rdi, rdi
je 0x14006afa6
nop dword [rax]
mov r8d, dword [rdi + 4]
test r8d, r8d
je 0x14006af95
mov rcx, qword [rbx + 0x228]
mov rdx, qword [rdi + 0x10]
mov eax, r15d
mov dword [rbp + 0x20], eax
cmp rcx, 0xffffffffffffffff
je 0x14006af83
test rdx, rdx
je 0x14006af83
lea r9, [rbp + 0x20]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006af80
mov eax, r15d
mov dword [rbp + 0x20], eax
jmp 0x14006af83
mov eax, dword [rbp + 0x20]
lock add qword [0x1401f4d68], rax
mov r8d, dword [rdi + 4]
cmp dword [rbp + 0x20], r8d
jne 0x14006afa3
mov rdi, qword [rdi + 0x18]
add esi, r8d
test rdi, rdi
jne 0x14006af40
jmp 0x14006afa6
mov esi, r15d
mov r12d, 0xffffffff
cmp r14, r12
jb 0x14006b5e9
jbe 0x14006b70b
mov rcx, qword [rbx + 0x228]
cmp rcx, 0xffffffffffffffff
je 0x14006b70b
mov r9d, 1
mov qword [rbp - 0x40], r15
lea r8, [rbp - 0x3c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x40], eax
cmp eax, r12d
jne 0x14006aff8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14006b70b
mov rdi, qword [rbp - 0x40]
cmp rdi, 0xffffffffffffffff
je 0x14006b70b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov dword [rbp - 0x70], 0x6064b50
mov dword [rbp + 0x28], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b048
lea r9, [rbp + 0x28]
mov qword [rsp + 0x20], r15
mov r8d, 4
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b045
mov eax, r15d
mov dword [rbp + 0x28], eax
jmp 0x14006b048
mov eax, dword [rbp + 0x28]
lock add qword [0x1401f4d68], rax
cmp dword [rbp + 0x28], 4
jne 0x14006b70b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov qword [rsp + 0x60], 0x2c
mov dword [rbp + 0x30], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b09f
lea r9, [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov r8d, 8
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b09c
mov eax, r15d
mov dword [rbp + 0x30], eax
jmp 0x14006b09f
mov eax, dword [rbp + 0x30]
lock add qword [0x1401f4d68], rax
cmp dword [rbp + 0x30], 8
jne 0x14006b70b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov word [rbp - 0x38], r15w
mov dword [rbp + 0x38], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b0f1
lea r9, [rbp + 0x38]
mov qword [rsp + 0x20], r15
mov r8d, 2
lea rdx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b0ee
mov eax, r15d
mov dword [rbp + 0x38], eax
jmp 0x14006b0f1
mov eax, dword [rbp + 0x38]
lock add qword [0x1401f4d68], rax
cmp dword [rbp + 0x38], 2
jne 0x14006b70b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov word [rbp - 0x30], 0x2d
mov dword [rsp + 0x30], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b148
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r15
mov r8d, 2
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b144
mov eax, r15d
mov dword [rsp + 0x30], eax
jmp 0x14006b148
mov eax, dword [rsp + 0x30]
lock add qword [0x1401f4d68], rax
cmp dword [rsp + 0x30], 2
jne 0x14006b70b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov dword [rbp - 0x68], r15d
mov dword [rsp + 0x34], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b19e
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov r8d, 4
lea rdx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b19a
mov eax, r15d
mov dword [rsp + 0x34], eax
jmp 0x14006b19e
mov eax, dword [rsp + 0x34]
lock add qword [0x1401f4d68], rax
cmp dword [rsp + 0x34], 4
jne 0x14006b70b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov dword [rbp - 0x60], r15d
mov dword [rsp + 0x38], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b1f4
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], r15
mov r8d, 4
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b1f0
mov eax, r15d
mov dword [rsp + 0x38], eax
jmp 0x14006b1f4
mov eax, dword [rsp + 0x38]
lock add qword [0x1401f4d68], rax
cmp dword [rsp + 0x38], 4
jne 0x14006b70b
mov eax, dword [rbx + 0x2f4]
mov rcx, qword [rbx + 0x228]
mov byte [rsp + 0x68], al
shr rax, 8
mov byte [rsp + 0x69], al
shr rax, 8
mov byte [rsp + 0x6a], al
shr rax, 8
mov byte [rsp + 0x6b], al
shr rax, 8
mov byte [rsp + 0x6c], al
shr rax, 8
mov byte [rsp + 0x6d], al
shr rax, 8
mov byte [rsp + 0x6e], al
shr rax, 8
mov byte [rsp + 0x6f], al
mov eax, r15d
mov dword [rsp + 0x3c], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b289
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], r15
mov r8d, 8
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b285
mov eax, r15d
mov dword [rsp + 0x3c], eax
jmp 0x14006b289
mov eax, dword [rsp + 0x3c]
lock add qword [0x1401f4d68], rax
cmp dword [rsp + 0x3c], 8
jne 0x14006b70b
mov eax, dword [rbx + 0x2f4]
mov rcx, qword [rbx + 0x228]
mov byte [rsp + 0x70], al
shr rax, 8
mov byte [rsp + 0x71], al
shr rax, 8
mov byte [rsp + 0x72], al
shr rax, 8
mov byte [rsp + 0x73], al
shr rax, 8
mov byte [rsp + 0x74], al
shr rax, 8
mov byte [rsp + 0x75], al
shr rax, 8
mov byte [rsp + 0x76], al
shr rax, 8
mov byte [rsp + 0x77], al
mov eax, r15d
mov dword [rsp + 0x40], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b31e
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, 8
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b31a
mov eax, r15d
mov dword [rsp + 0x40], eax
jmp 0x14006b31e
mov eax, dword [rsp + 0x40]
lock add qword [0x1401f4d68], rax
cmp dword [rsp + 0x40], 8
jne 0x14006b70b
mov ecx, dword [rbx + 0x2c0]
add ecx, 0x14
mov eax, r15d
mov byte [rsp + 0x78], cl
shr rcx, 8
mov byte [rsp + 0x79], cl
shr rcx, 8
mov byte [rsp + 0x7a], cl
shr rcx, 8
mov byte [rsp + 0x7b], cl
shr rcx, 8
mov byte [rsp + 0x7c], cl
shr rcx, 8
mov byte [rsp + 0x7d], cl
shr rcx, 8
mov byte [rsp + 0x7e], cl
shr rcx, 8
mov byte [rsp + 0x7f], cl
mov rcx, qword [rbx + 0x228]
mov dword [rsp + 0x44], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b3b6
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r15
mov r8d, 8
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b3b2
mov eax, r15d
mov dword [rsp + 0x44], eax
jmp 0x14006b3b6
mov eax, dword [rsp + 0x44]
lock add qword [0x1401f4d68], rax
cmp dword [rsp + 0x44], 8
jne 0x14006b70b
mov rcx, qword [rbx + 0x228]
mov rax, r14
shr rax, 8
mov byte [rbp - 0x7f], al
shr rax, 8
mov byte [rbp - 0x7e], al
shr rax, 8
mov byte [rbp - 0x7d], al
shr rax, 8
mov byte [rbp - 0x7c], al
shr rax, 8
mov byte [rbp - 0x7b], al
shr rax, 8
mov byte [rbp - 0x7a], al
shr rax, 8
mov byte [rbp - 0x79], al
mov eax, r15d
mov dword [rsp + 0x48], eax
mov byte [rbp - 0x80], r14b
cmp rcx, 0xffffffffffffffff
je 0x14006b440
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], r15
mov r8d, 8
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b43c
mov eax, r15d
mov dword [rsp + 0x48], eax
jmp 0x14006b440
mov eax, dword [rsp + 0x48]
lock add qword [0x1401f4d68], rax
cmp dword [rsp + 0x48], 8
jne 0x14006b70b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov dword [rbp - 0x58], 0x7064b50
mov dword [rsp + 0x4c], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b499
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], r15
mov r8d, 4
lea rdx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b495
mov eax, r15d
mov dword [rsp + 0x4c], eax
jmp 0x14006b499
mov eax, dword [rsp + 0x4c]
lock add qword [0x1401f4d68], rax
cmp dword [rsp + 0x4c], 4
jne 0x14006b70b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov dword [rbp - 0x50], r15d
mov dword [rsp + 0x50], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b4ef
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], r15
mov r8d, 4
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b4eb
mov eax, r15d
mov dword [rsp + 0x50], eax
jmp 0x14006b4ef
mov eax, dword [rsp + 0x50]
lock add qword [0x1401f4d68], rax
cmp dword [rsp + 0x50], 4
jne 0x14006b70b
mov rcx, qword [rbx + 0x228]
mov byte [rbp - 0x78], dil
shr rdi, 8
mov byte [rbp - 0x77], dil
shr rdi, 8
mov byte [rbp - 0x76], dil
shr rdi, 8
mov byte [rbp - 0x75], dil
shr rdi, 8
mov byte [rbp - 0x74], dil
shr rdi, 8
mov byte [rbp - 0x73], dil
shr rdi, 8
mov byte [rbp - 0x72], dil
shr rdi, 8
mov eax, r15d
mov byte [rbp - 0x71], dil
mov dword [rsp + 0x54], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b57d
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], r15
mov r8d, 8
lea rdx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b579
mov eax, r15d
mov dword [rsp + 0x54], eax
jmp 0x14006b57d
mov eax, dword [rsp + 0x54]
lock add qword [0x1401f4d68], rax
cmp dword [rsp + 0x54], 8
jne 0x14006b70b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov dword [rbp - 0x48], 1
mov dword [rsp + 0x58], eax
cmp rcx, 0xffffffffffffffff
je 0x14006b5d6
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r15
mov r8d, 4
lea rdx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006b5d2
mov eax, r15d
mov dword [rsp + 0x58], eax
jmp 0x14006b5d6
mov eax, dword [rsp + 0x58]
lock add qword [0x1401f4d68], rax
cmp dword [rsp + 0x58], 4
jne 0x14006b70b
mov edx, 0x6054b50
mov r8d, 4
mov rcx, rbx
call fcn.14006a6c0
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.14006a6c0
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.14006a6c0
mov edx, dword [rbx + 0x2f4]
mov r8d, 2
mov rcx, rbx
call fcn.14006a6c0
mov edx, dword [rbx + 0x2f4]
mov r8d, 2
mov rcx, rbx
call fcn.14006a6c0
mov r8d, 4
mov edx, esi
mov rcx, rbx
call fcn.14006a6c0
cmp r14, r12
mov r8d, 4
mov rcx, rbx
cmovae r14d, r12d
mov edx, r14d
call fcn.14006a6c0
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.14006a6c0
mov rcx, qword [rbx + 0x228]
cmp rcx, 0xffffffffffffffff
je 0x14006b694
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x228], 0xffffffffffffffff
mov rcx, qword [rbx + 0x2d0]
test rcx, rcx
je 0x14006b6ac
call fcn.14002ec58
mov qword [rbx + 0x2d0], r15
mov rdi, qword [rbx + 0x230]
test rdi, rdi
je 0x14006b6eb
nop dword [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rsi, qword [rdi + 0x18]
test rcx, rcx
je 0x14006b6d6
call fcn.14002ec58
mov qword [rdi + 0x10], r15
mov edx, 0x20
mov rcx, rdi
call fcn.14002ec58
mov rdi, rsi
test rsi, rsi
jne 0x14006b6c0
mov qword [rbx + 0x238], r15
mov al, 1
mov qword [rbx + 0x230], r15
mov byte [rbx + 0x240], r15b
mov qword [rbx + 0x2f0], r15
jmp 0x14006b70d
xor al, al
mov rsi, qword [rsp + 0x100]
mov r12, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0xf8]
mov r15, qword [rsp + 0xe0]
mov r14, qword [rsp + 0xe8]
add rsp, 0x108
pop rbx
pop rbp
ret