Function at 0x14000161b
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
mov rax, 0xc
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140001625
sub rsp, 0x28
call fcn.140012bb0
mov r15, qword [0x1400205cc]
cmp r15, 1
jne 0x14000183c
mov r15, qword [0x14002059c]
cmp r15, 1
jne 0x140001673
mov r15, qword [0x140020574]
cmp r15, 1
je 0x140001673
mov rax, 1
jmp 0x140001676
xor rax, rax
and rax, rax
je 0x140001837
movabs rax, 0x14001f022
push rax
push qword [0x1400205c4]
pop rcx
pop rdx
call fcn.1400073b0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
jmp 0x1400016a7
mov rax, qword [rsp + 0x28]
cmp rax, qword [rsp + 0x30]
jl 0x1400017bf
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001f044
push rax
push qword [rsp + 0x50]
push qword [0x1400205c4]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140007450
add rsp, 0x28
lea rcx, [rsp + 0x40]
pop rdx
call fcn.140012980
push qword [rsp + 0x38]
pop rcx
call fcn.140002fc2
and rax, rax
je 0x1400017b4
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
push rcx
sub rsp, 0x20
call fcn.140012930
add rsp, 0x20
pop rcx
push rax
push qword [rsp + 0x48]
pop rcx
sub rsp, 0x20
call fcn.140003b03
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call fcn.140012980
mov rcx, qword [rsp + 0x48]
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
movabs rcx, 0x14001f044
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.140012980
inc qword [rsp + 0x30]
jno 0x1400016a7
push qword [rsp + 0x48]
pop rcx
call fcn.1400075d0
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.14000d0f0
add rsp, 0x28
mov rax, rax
push rax
push qword [rsp + 0x70]
push qword [0x14002051c]
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.14000d110
movabs rdx, 0x14001f020
lea rcx, [0x1400205c4]
call fcn.140012840
jmp 0x140001cd3
mov qword [0x1400205cc], 1
mov qword [rsp + 0x60], 1
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001f02a
push rax
push qword [rsp + 0x80]
push qword [0x1400204ec]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140007450
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.140012980
movabs rax, 0x14001f02e
push rax
push qword [rsp + 0x50]
pop rcx
pop rdx
call fcn.140007670
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x14000197d
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001f02e
push rax
push 2
push qword [rsp + 0x70]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140007450
add rsp, 0x28
lea rcx, [rsp + 0x78]
pop rdx
call fcn.140012980
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001f02e
push rax
push 1
push qword [rsp + 0x70]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140007450
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.140012980
mov rcx, qword [rsp + 0x48]
xor rdx, rdx
call fcn.140012ad0
or rax, rax
jne 0x140001cb5
mov r15, qword [rsp + 0x60]
mov rax, r15
mov rcx, 2
cqo
idiv rcx
mov r15, rdx
and r15, r15
jne 0x1400019e6
push qword [rsp + 0x48]
pop rcx
call fcn.140007800
mov rax, rax
push rax
mov r15, qword [rsp + 0x38]
mov rbp, qword [0x1400205d4]
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 0x140001cb3
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
push 1
push qword [rsp + 0x68]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.140007930
add rsp, 0x28
call fcn.140012c90
movabs rcx, 0x14001f032
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.140012cc0
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.140012ad0
or rax, rax
je 0x140001b7d
mov rcx, qword [0x140020544]
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
mov rcx, qword [0x14002057c]
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
push rcx
sub rsp, 0x20
call fcn.140012930
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001f032
push rax
push qword [rsp + 0x68]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400079e0
add rsp, 0x20
pop rax
lea rcx, [rsp + 0x80]
pop rdx
call fcn.140012980
push qword [rsp + 0x78]
pop rcx
call fcn.14000e064
mov r15, qword [0x1400205ac]
cmp r15, 1
jne 0x140001b11
push qword [rsp + 0x70]
pop rcx
call fcn.140007800
mov rax, rax
push rax
push qword [rsp + 0x80]
pop rcx
pop rdx
call fcn.14000e0fc
push qword [rsp + 0x78]
pop rcx
call fcn.1400054e4
mov rcx, qword [0x1400205c4]
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
mov rcx, qword [rsp + 0x80]
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
movabs rcx, 0x14001f044
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
lea rcx, [0x1400205c4]
pop rdx
call fcn.140012980
jmp 0x140001cb3
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x14001f032
push rax
push qword [rsp + 0x68]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400079e0
add rsp, 0x28
lea rcx, [rsp + 0x50]
pop rdx
call fcn.140012980
mov rcx, qword [rsp + 0x48]
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
mov r15, qword [rsp + 0x38]
mov rbp, qword [0x1400205d4]
imul r15, r15, 0x14
add rbp, r15
lea rcx, [rbp + 8]
pop rdx
call fcn.140012980
push qword [rsp + 0x70]
pop rcx
call fcn.140007800
mov rax, rax
push rax
mov r15, qword [rsp + 0x38]
mov rbp, qword [0x1400205d4]
imul r15, r15, 0x14
add rbp, r15
pop rax
mov qword [rbp], rax
mov rcx, qword [0x1400205c4]
push rcx
sub rsp, 0x28
call fcn.140012930
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
mov rcx, qword [0x140020544]
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
mov rcx, qword [0x14002057c]
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
mov rcx, qword [rsp + 0x50]
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
movabs rcx, 0x14001f044
sub rsp, 0x28
call fcn.140012c20
add rsp, 0x28
lea rcx, [0x1400205c4]
pop rdx
call fcn.140012980
jmp 0x140001cb7
jmp 0x140001cc9
mov r15, qword [rsp + 0x60]
inc r15
mov qword [rsp + 0x60], r15
jmp 0x140001850
mov rax, qword [rsp + 0x30]
jmp 0x140001cd3
push rax
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140012b30
add rsp, 0x28
mov rcx, qword [rsp + 0x80]
sub rsp, 0x28
call fcn.140012b30
add rsp, 0x28
mov rcx, qword [rsp + 0x50]
sub rsp, 0x28
call fcn.140012b30
add rsp, 0x28
mov rcx, qword [rsp + 0x78]
sub rsp, 0x28
call fcn.140012b30
add rsp, 0x28
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.140012b30
add rsp, 0x28
pop rax
add rsp, 0x88
pop r15
pop rbp
ret