Function at 0x140001606
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
mov rax, 0xa
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140001610
sub rsp, 0x28
call fcn.1400123a0
mov qword [rsp + 0x28], 1
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001f026
push rax
push qword [rsp + 0x48]
push qword [0x140020474]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400073c0
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.140012170
movabs rax, 0x14001f02a
push rax
push qword [rsp + 0x38]
pop rcx
pop rdx
call fcn.140007540
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000175d
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001f02a
push rax
push 2
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400073c0
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call fcn.140012170
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001f02a
push rax
push 1
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400073c0
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.140012170
mov rcx, qword [rsp + 0x30]
xor rdx, rdx
call fcn.1400122c0
or rax, rax
jne 0x140001a84
mov r15, qword [rsp + 0x28]
mov rax, r15
mov rcx, 2
cqo
idiv rcx
mov r15, rdx
and r15, r15
jne 0x1400017c6
push qword [rsp + 0x30]
pop rcx
call fcn.1400076d0
mov rax, rax
push rax
mov r15, qword [rsp + 0x50]
mov rbp, qword [0x14002054c]
imul r15, r15, 0x14
add rbp, r15
pop rax
mov dword [rbp + 0x10], eax
mov r15, qword [rsp + 0x48]
inc r15
mov qword [rsp + 0x48], r15
jmp 0x140001a82
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
push 1
push qword [rsp + 0x50]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.140007800
add rsp, 0x28
call fcn.140012410
movabs rcx, 0x14001f02e
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.140012440
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400122c0
or rax, rax
je 0x140001950
mov rcx, qword [0x1400204cc]
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140012490
add rsp, 0x28
mov rcx, qword [0x140020504]
sub rsp, 0x28
call fcn.140012490
add rsp, 0x28
push rcx
sub rsp, 0x20
call fcn.140012120
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001f02e
push rax
push qword [rsp + 0x50]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400078b0
add rsp, 0x20
pop rax
lea rcx, [rsp + 0x58]
pop rdx
call fcn.140012170
push qword [rsp + 0x50]
pop rcx
call fcn.14000d874
mov r15, qword [0x140020534]
cmp r15, 1
jne 0x1400018eb
push qword [rsp + 0x40]
pop rcx
call fcn.1400076d0
mov rax, rax
push rax
push qword [rsp + 0x58]
pop rcx
pop rdx
call fcn.14000d90c
push qword [rsp + 0x50]
pop rcx
call fcn.1400053c1
mov rcx, qword [rsp + 0x58]
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140012490
add rsp, 0x28
mov rcx, qword [rsp + 0x58]
sub rsp, 0x28
call fcn.140012490
add rsp, 0x28
movabs rcx, 0x14001f04a
sub rsp, 0x28
call fcn.140012490
add rsp, 0x28
lea rcx, [rsp + 0x60]
pop rdx
call fcn.140012170
jmp 0x140001a82
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001f02e
push rax
push qword [rsp + 0x50]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400078b0
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.140012170
mov rcx, qword [rsp + 0x30]
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140012490
add rsp, 0x28
mov r15, qword [rsp + 0x50]
mov rbp, qword [0x14002054c]
imul r15, r15, 0x14
add rbp, r15
lea rcx, [rbp + 8]
pop rdx
call fcn.140012170
push qword [rsp + 0x40]
pop rcx
call fcn.1400076d0
mov rax, rax
push rax
mov r15, qword [rsp + 0x50]
mov rbp, qword [0x14002054c]
imul r15, r15, 0x14
add rbp, r15
pop rax
mov qword [rbp], rax
mov rcx, qword [rsp + 0x58]
push rcx
sub rsp, 0x28
call fcn.140012120
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140012490
add rsp, 0x28
mov rcx, qword [0x1400204cc]
sub rsp, 0x28
call fcn.140012490
add rsp, 0x28
mov rcx, qword [0x140020504]
sub rsp, 0x28
call fcn.140012490
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140012490
add rsp, 0x28
movabs rcx, 0x14001f04a
sub rsp, 0x28
call fcn.140012490
add rsp, 0x28
lea rcx, [rsp + 0x60]
pop rdx
call fcn.140012170
jmp 0x140001a86
jmp 0x140001a98
mov r15, qword [rsp + 0x28]
inc r15
mov qword [rsp + 0x28], r15
jmp 0x140001633
mov r15, qword [0x140020524]
cmp r15, 1
jne 0x140001abb
mov r15, qword [0x1400204fc]
cmp r15, 1
je 0x140001abb
mov rax, 1
jmp 0x140001abe
xor rax, rax
and rax, rax
je 0x140001b2b
push qword [rsp + 0x58]
pop rcx
call fcn.140007b70
mov qword [rsp + 0x60], rax
sub rsp, 8
push 0
lea rax, [rsp + 0x78]
mov rax, rax
push rax
sub rsp, 8
push qword [rsp + 0x80]
pop rcx
sub rsp, 0x20
call fcn.14000c900
add rsp, 0x28
mov rax, rax
push rax
push qword [rsp + 0x80]
push qword [0x1400204a4]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_WriteFile
add rsp, 0x30
push qword [rsp + 0x60]
pop rcx
call fcn.14000c920
mov rax, qword [rsp + 0x48]
jmp 0x140001b35
push rax
mov rcx, qword [rsp + 0x60]
sub rsp, 0x28
call fcn.140012320
add rsp, 0x28
mov rcx, qword [rsp + 0x58]
sub rsp, 0x28
call fcn.140012320
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140012320
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.140012320
add rsp, 0x28
pop rax
add rsp, 0x78
pop r15
pop rbp
ret