Function at 0x140069940
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 0x140069968
mov al, 1
add rsp, 0x108
pop rbx
pop rbp
ret
cmp byte [rcx + 0x240], 0
mov qword [rsp + 0xe8], r14
je 0x14006997e
call fcn.1400682e0
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.140004180
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14006a19b
mov rdi, qword [rbx + 0x230]
xor r15d, r15d
mov esi, r15d
test rdi, rdi
je 0x140069a36
nop dword [rax]
mov r8d, dword [rdi + 4]
test r8d, r8d
je 0x140069a25
mov rcx, qword [rbx + 0x228]
mov rdx, qword [rdi + 0x10]
mov eax, r15d
mov dword [rbp + 0x20], eax
cmp rcx, 0xffffffffffffffff
je 0x140069a13
test rdx, rdx
je 0x140069a13
lea r9, [rbp + 0x20]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140069a10
mov eax, r15d
mov dword [rbp + 0x20], eax
jmp 0x140069a13
mov eax, dword [rbp + 0x20]
lock add qword [0x1401f3d68], rax
mov r8d, dword [rdi + 4]
cmp dword [rbp + 0x20], r8d
jne 0x140069a33
mov rdi, qword [rdi + 0x18]
add esi, r8d
test rdi, rdi
jne 0x1400699d0
jmp 0x140069a36
mov esi, r15d
mov r12d, 0xffffffff
cmp r14, r12
jb 0x14006a079
jbe 0x14006a19b
mov rcx, qword [rbx + 0x228]
cmp rcx, 0xffffffffffffffff
je 0x14006a19b
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 0x140069a88
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14006a19b
mov rdi, qword [rbp - 0x40]
cmp rdi, 0xffffffffffffffff
je 0x14006a19b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov dword [rbp - 0x70], 0x6064b50
mov dword [rbp + 0x28], eax
cmp rcx, 0xffffffffffffffff
je 0x140069ad8
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 0x140069ad5
mov eax, r15d
mov dword [rbp + 0x28], eax
jmp 0x140069ad8
mov eax, dword [rbp + 0x28]
lock add qword [0x1401f3d68], rax
cmp dword [rbp + 0x28], 4
jne 0x14006a19b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov qword [rsp + 0x60], 0x2c
mov dword [rbp + 0x30], eax
cmp rcx, 0xffffffffffffffff
je 0x140069b2f
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 0x140069b2c
mov eax, r15d
mov dword [rbp + 0x30], eax
jmp 0x140069b2f
mov eax, dword [rbp + 0x30]
lock add qword [0x1401f3d68], rax
cmp dword [rbp + 0x30], 8
jne 0x14006a19b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov word [rbp - 0x38], r15w
mov dword [rbp + 0x38], eax
cmp rcx, 0xffffffffffffffff
je 0x140069b81
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 0x140069b7e
mov eax, r15d
mov dword [rbp + 0x38], eax
jmp 0x140069b81
mov eax, dword [rbp + 0x38]
lock add qword [0x1401f3d68], rax
cmp dword [rbp + 0x38], 2
jne 0x14006a19b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov word [rbp - 0x30], 0x2d
mov dword [rsp + 0x30], eax
cmp rcx, 0xffffffffffffffff
je 0x140069bd8
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 0x140069bd4
mov eax, r15d
mov dword [rsp + 0x30], eax
jmp 0x140069bd8
mov eax, dword [rsp + 0x30]
lock add qword [0x1401f3d68], rax
cmp dword [rsp + 0x30], 2
jne 0x14006a19b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov dword [rbp - 0x68], r15d
mov dword [rsp + 0x34], eax
cmp rcx, 0xffffffffffffffff
je 0x140069c2e
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 0x140069c2a
mov eax, r15d
mov dword [rsp + 0x34], eax
jmp 0x140069c2e
mov eax, dword [rsp + 0x34]
lock add qword [0x1401f3d68], rax
cmp dword [rsp + 0x34], 4
jne 0x14006a19b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov dword [rbp - 0x60], r15d
mov dword [rsp + 0x38], eax
cmp rcx, 0xffffffffffffffff
je 0x140069c84
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 0x140069c80
mov eax, r15d
mov dword [rsp + 0x38], eax
jmp 0x140069c84
mov eax, dword [rsp + 0x38]
lock add qword [0x1401f3d68], rax
cmp dword [rsp + 0x38], 4
jne 0x14006a19b
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 0x140069d19
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 0x140069d15
mov eax, r15d
mov dword [rsp + 0x3c], eax
jmp 0x140069d19
mov eax, dword [rsp + 0x3c]
lock add qword [0x1401f3d68], rax
cmp dword [rsp + 0x3c], 8
jne 0x14006a19b
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 0x140069dae
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 0x140069daa
mov eax, r15d
mov dword [rsp + 0x40], eax
jmp 0x140069dae
mov eax, dword [rsp + 0x40]
lock add qword [0x1401f3d68], rax
cmp dword [rsp + 0x40], 8
jne 0x14006a19b
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 0x140069e46
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 0x140069e42
mov eax, r15d
mov dword [rsp + 0x44], eax
jmp 0x140069e46
mov eax, dword [rsp + 0x44]
lock add qword [0x1401f3d68], rax
cmp dword [rsp + 0x44], 8
jne 0x14006a19b
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 0x140069ed0
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 0x140069ecc
mov eax, r15d
mov dword [rsp + 0x48], eax
jmp 0x140069ed0
mov eax, dword [rsp + 0x48]
lock add qword [0x1401f3d68], rax
cmp dword [rsp + 0x48], 8
jne 0x14006a19b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov dword [rbp - 0x58], 0x7064b50
mov dword [rsp + 0x4c], eax
cmp rcx, 0xffffffffffffffff
je 0x140069f29
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 0x140069f25
mov eax, r15d
mov dword [rsp + 0x4c], eax
jmp 0x140069f29
mov eax, dword [rsp + 0x4c]
lock add qword [0x1401f3d68], rax
cmp dword [rsp + 0x4c], 4
jne 0x14006a19b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov dword [rbp - 0x50], r15d
mov dword [rsp + 0x50], eax
cmp rcx, 0xffffffffffffffff
je 0x140069f7f
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 0x140069f7b
mov eax, r15d
mov dword [rsp + 0x50], eax
jmp 0x140069f7f
mov eax, dword [rsp + 0x50]
lock add qword [0x1401f3d68], rax
cmp dword [rsp + 0x50], 4
jne 0x14006a19b
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 0x14006a00d
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 0x14006a009
mov eax, r15d
mov dword [rsp + 0x54], eax
jmp 0x14006a00d
mov eax, dword [rsp + 0x54]
lock add qword [0x1401f3d68], rax
cmp dword [rsp + 0x54], 8
jne 0x14006a19b
mov rcx, qword [rbx + 0x228]
mov eax, r15d
mov dword [rbp - 0x48], 1
mov dword [rsp + 0x58], eax
cmp rcx, 0xffffffffffffffff
je 0x14006a066
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 0x14006a062
mov eax, r15d
mov dword [rsp + 0x58], eax
jmp 0x14006a066
mov eax, dword [rsp + 0x58]
lock add qword [0x1401f3d68], rax
cmp dword [rsp + 0x58], 4
jne 0x14006a19b
mov edx, 0x6054b50
mov r8d, 4
mov rcx, rbx
call fcn.1400690b0
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1400690b0
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1400690b0
mov edx, dword [rbx + 0x2f4]
mov r8d, 2
mov rcx, rbx
call fcn.1400690b0
mov edx, dword [rbx + 0x2f4]
mov r8d, 2
mov rcx, rbx
call fcn.1400690b0
mov r8d, 4
mov edx, esi
mov rcx, rbx
call fcn.1400690b0
cmp r14, r12
mov r8d, 4
mov rcx, rbx
cmovae r14d, r12d
mov edx, r14d
call fcn.1400690b0
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1400690b0
mov rcx, qword [rbx + 0x228]
cmp rcx, 0xffffffffffffffff
je 0x14006a124
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x228], 0xffffffffffffffff
mov rcx, qword [rbx + 0x2d0]
test rcx, rcx
je 0x14006a13c
call fcn.14002e8a8
mov qword [rbx + 0x2d0], r15
mov rdi, qword [rbx + 0x230]
test rdi, rdi
je 0x14006a17b
nop dword [rax + rax]
mov rcx, qword [rdi + 0x10]
mov rsi, qword [rdi + 0x18]
test rcx, rcx
je 0x14006a166
call fcn.14002e8a8
mov qword [rdi + 0x10], r15
mov edx, 0x20
mov rcx, rdi
call fcn.14002e8a8
mov rdi, rsi
test rsi, rsi
jne 0x14006a150
mov qword [rbx + 0x238], r15
mov al, 1
mov qword [rbx + 0x230], r15
mov byte [rbx + 0x240], r15b
mov qword [rbx + 0x2f0], r15
jmp 0x14006a19d
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