Function at 0x140001735
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
mov rax, 0xc
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14000173f
sub rsp, 0x28
call fcn.140010ff0
mov r15, qword [0x14001e54c]
cmp r15, 1
jne 0x140001956
mov r15, qword [0x14001e514]
cmp r15, 1
jne 0x14000178d
mov r15, qword [0x14001e4f4]
cmp r15, 1
je 0x14000178d
mov rax, 1
jmp 0x140001790
xor rax, rax
and rax, rax
je 0x140001951
movabs rax, 0x14001d022
push rax
push qword [0x14001e544]
pop rcx
pop rdx
call fcn.140006430
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
jmp 0x1400017c1
mov rax, qword [rsp + 0x28]
cmp rax, qword [rsp + 0x30]
jl 0x1400018d9
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001d048
push rax
push qword [rsp + 0x50]
push qword [0x14001e544]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400064d0
add rsp, 0x28
lea rcx, [rsp + 0x40]
pop rdx
call fcn.140010e20
push qword [rsp + 0x38]
pop rcx
call fcn.140003282
and rax, rax
je 0x1400018ce
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
push rcx
sub rsp, 0x20
call fcn.140010dd0
add rsp, 0x20
pop rcx
push rax
push qword [rsp + 0x48]
pop rcx
sub rsp, 0x20
call fcn.140003dd7
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call fcn.140010e20
mov rcx, qword [rsp + 0x48]
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
movabs rcx, 0x14001d048
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.140010e20
inc qword [rsp + 0x30]
jno 0x1400017c1
push qword [rsp + 0x48]
pop rcx
call fcn.140006390
mov qword [rsp + 0x50], rax
sub rsp, 8
push 0
lea rax, [rsp + 0x68]
mov rax, rax
push rax
sub rsp, 8
push qword [rsp + 0x70]
pop rcx
sub rsp, 0x20
call fcn.14000b510
add rsp, 0x28
mov rax, rax
push rax
push qword [rsp + 0x70]
push qword [0x14001e4a4]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.DLL_WriteFile
add rsp, 0x30
push qword [rsp + 0x50]
pop rcx
call fcn.14000b530
movabs rdx, 0x14001d020
lea rcx, [0x14001e544]
call fcn.140010ce0
jmp 0x140001ded
mov qword [0x14001e54c], 1
mov qword [rsp + 0x60], 1
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001d02a
push rax
push qword [rsp + 0x80]
push qword [0x14001e47c]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400064d0
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.140010e20
movabs rax, 0x14001d02e
push rax
push qword [rsp + 0x50]
pop rcx
pop rdx
call fcn.140006650
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140001a97
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001d02e
push rax
push 2
push qword [rsp + 0x70]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400064d0
add rsp, 0x28
lea rcx, [rsp + 0x78]
pop rdx
call fcn.140010e20
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001d02e
push rax
push 1
push qword [rsp + 0x70]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400064d0
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.140010e20
mov rcx, qword [rsp + 0x48]
xor rdx, rdx
call fcn.1400110d0
or rax, rax
jne 0x140001dcf
mov r15, qword [rsp + 0x60]
mov rax, r15
mov rcx, 2
cqo
idiv rcx
mov r15, rdx
and r15, r15
jne 0x140001b00
push qword [rsp + 0x48]
pop rcx
call fcn.1400067e0
mov rax, rax
push rax
mov r15, qword [rsp + 0x38]
mov rbp, qword [0x14001e554]
imul r15, r15, 0x14
add rbp, r15
pop rax
mov dword [rbp + 0x10], eax
mov r15, qword [rsp + 0x30]
inc r15
mov qword [rsp + 0x30], r15
jmp 0x140001dcd
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
push 1
push qword [rsp + 0x68]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.140006910
add rsp, 0x28
call fcn.140011130
movabs rcx, 0x14001d032
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.140011160
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400110d0
or rax, rax
je 0x140001c97
mov rcx, qword [0x14001e4cc]
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
mov rcx, qword [0x14001e4fc]
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
push rcx
sub rsp, 0x20
call fcn.140010dd0
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001d032
push rax
push qword [rsp + 0x68]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400069c0
add rsp, 0x20
pop rax
lea rcx, [rsp + 0x80]
pop rdx
call fcn.140010e20
push qword [rsp + 0x78]
pop rcx
call fcn.14000c484
mov r15, qword [0x14001e52c]
cmp r15, 1
jne 0x140001c2b
push qword [rsp + 0x70]
pop rcx
call fcn.1400067e0
mov rax, rax
push rax
push qword [rsp + 0x80]
pop rcx
pop rdx
call fcn.14000c51c
push qword [rsp + 0x78]
pop rcx
call fcn.140004a28
mov rcx, qword [0x14001e544]
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
mov rcx, qword [rsp + 0x80]
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
movabs rcx, 0x14001d048
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
lea rcx, [0x14001e544]
pop rdx
call fcn.140010e20
jmp 0x140001dcd
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001d032
push rax
push qword [rsp + 0x68]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400069c0
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.140010e20
mov rcx, qword [rsp + 0x48]
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
mov r15, qword [rsp + 0x38]
mov rbp, qword [0x14001e554]
imul r15, r15, 0x14
add rbp, r15
lea rcx, [rbp + 8]
pop rdx
call fcn.140010e20
push qword [rsp + 0x70]
pop rcx
call fcn.1400067e0
mov rax, rax
push rax
mov r15, qword [rsp + 0x38]
mov rbp, qword [0x14001e554]
imul r15, r15, 0x14
add rbp, r15
pop rax
mov qword [rbp], rax
mov rcx, qword [0x14001e544]
push rcx
sub rsp, 0x28
call fcn.140010dd0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
mov rcx, qword [0x14001e4cc]
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
mov rcx, qword [0x14001e4fc]
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
mov rcx, qword [rsp + 0x50]
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
movabs rcx, 0x14001d048
sub rsp, 0x28
call fcn.140011060
add rsp, 0x28
lea rcx, [0x14001e544]
pop rdx
call fcn.140010e20
jmp 0x140001dd1
jmp 0x140001de3
mov r15, qword [rsp + 0x60]
inc r15
mov qword [rsp + 0x60], r15
jmp 0x14000196a
mov rax, qword [rsp + 0x30]
jmp 0x140001ded
push rax
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140010f70
add rsp, 0x28
mov rcx, qword [rsp + 0x80]
sub rsp, 0x28
call fcn.140010f70
add rsp, 0x28
mov rcx, qword [rsp + 0x50]
sub rsp, 0x28
call fcn.140010f70
add rsp, 0x28
mov rcx, qword [rsp + 0x78]
sub rsp, 0x28
call fcn.140010f70
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.140010f70
add rsp, 0x28
pop rax
add rsp, 0x88
pop r15
pop rbp
ret