Function at 0x140014280
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [0x140056118]
mov rax, qword [rdi + 0x50]
test rax, rax
je 0x140014369
cmp byte [rdi + 1], 0
je 0x140014369
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x50]
test rbx, rbx
je 0x140014369
mov rcx, rbx
call fcn.14002f160
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400142f8
mov rax, qword [0x140056118]
test rax, rax
je 0x1400142eb
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140014320
mov rax, qword [0x140056118]
test rax, rax
je 0x140014313
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140014348
mov rax, qword [0x140056118]
test rax, rax
je 0x14001433b
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x140056118]
test rax, rax
je 0x14001435a
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rdi + 0x50], r15
cmp byte [rdi], r15b
je 0x140014bf8
cmp byte [rdi + 0x5361], r15b
je 0x1400143e0
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400143e0
mov rax, qword [0x140056118]
mov dword [rax + 0x5364], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140022360
mov rsi, rax
lea rdx, [0x14004cef8]
mov rcx, rbx
call fcn.14000eec0
mov rbx, rax
test rax, rax
je 0x1400143e0
mov r9, rax
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 1]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ebx, r15d
cmp dword [rdi + 0x53a8], r15d
jle 0x140014420
mov rsi, r15
nop
mov rcx, qword [rdi + 0x53b0]
cmp dword [rsi + rcx + 4], 6
jne 0x140014412
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x53a8]
jl 0x1400143f0
mov esi, r15d
cmp dword [rdi + 0x3e28], r15d
jle 0x140014477
mov r14, r15
nop
mov rax, qword [rdi + 0x3e30]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140014469
mov rcx, rbx
call fcn.140010d20
mov rax, qword [0x140056118]
test rax, rax
je 0x14001445a
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3e28]
jl 0x140014430
mov rcx, qword [rdi + 0x3e30]
test rcx, rcx
je 0x1400144af
mov qword [rdi + 0x3e28], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x14001449c
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e30], r15
mov rcx, qword [rdi + 0x3e40]
test rcx, rcx
je 0x1400144e7
mov qword [rdi + 0x3e38], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x1400144d4
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e40], r15
mov rcx, qword [rdi + 0x3e50]
test rcx, rcx
je 0x14001451f
mov qword [rdi + 0x3e48], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x14001450c
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e50], r15
mov qword [rdi + 0x3e88], r15
mov rcx, qword [rdi + 0x3e60]
test rcx, rcx
je 0x14001455e
mov qword [rdi + 0x3e58], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x14001454b
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e60], r15
mov rcx, qword [rdi + 0x3e70]
test rcx, rcx
je 0x140014596
mov qword [rdi + 0x3e68], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x140014583
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e70], r15
mov qword [rdi + 0x4090], r15
mov qword [rdi + 0x3e98], r15
mov qword [rdi + 0x3e90], r15
mov qword [rdi + 0x3f08], r15
mov qword [rdi + 0x3ef0], r15
mov qword [rdi + 0x3ea0], r15
mov rcx, qword [rdi + 0x4000]
test rcx, rcx
je 0x1400145f8
mov qword [rdi + 0x3ff8], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x1400145e5
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4000], r15
mov rcx, qword [rdi + 0x4010]
test rcx, rcx
je 0x140014630
mov qword [rdi + 0x4008], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x14001461d
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4010], r15
mov rcx, qword [rdi + 0x4020]
test rcx, rcx
je 0x140014668
mov qword [rdi + 0x4018], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x140014655
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4020], r15
mov rcx, qword [rdi + 0x4060]
test rcx, rcx
je 0x1400146a0
mov qword [rdi + 0x4058], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x14001468d
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4060], r15
mov rcx, qword [rdi + 0x4070]
test rcx, rcx
je 0x1400146d8
mov qword [rdi + 0x4068], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x1400146c5
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4070], r15
mov ebp, r15d
cmp dword [rdi + 0x4080], r15d
jle 0x1400147b6
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rdi + 0x4088]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400147a4
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140014736
mov rcx, rsi
call fcn.14000d580
mov rax, qword [0x140056118]
test rax, rax
je 0x140014727
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x140014769
mov rcx, rsi
call fcn.14000d580
mov rax, qword [0x140056118]
test rax, rax
je 0x140014759
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rbx + 0x78]
lea r9, [0x140022fa0]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.140044c70
nop
mov rax, qword [0x140056118]
test rax, rax
je 0x140014795
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4080]
jl 0x1400146f0
mov rcx, qword [rdi + 0x4088]
test rcx, rcx
je 0x1400147ee
mov qword [rdi + 0x4080], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x1400147db
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4088], r15
lea rcx, [rdi + 0x4360]
call fcn.140022fe0
mov rcx, qword [rdi + 0x4390]
test rcx, rcx
je 0x140014832
mov qword [rdi + 0x4388], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x14001481f
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4390], r15
mov rcx, qword [rdi + 0x43a0]
test rcx, rcx
je 0x14001486a
mov qword [rdi + 0x4398], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x140014857
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x43a0], r15
mov ebx, r15d
cmp dword [rdi + 0x42e0], r15d
jle 0x1400148be
mov rsi, r15
nop dword [rax]
mov rax, qword [rdi + 0x42e8]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400148b0
mov rax, qword [0x140056118]
test rax, rax
je 0x1400148a3
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x42e0]
jl 0x140014880
mov rcx, qword [rdi + 0x42e8]
test rcx, rcx
je 0x1400148f6
mov qword [rdi + 0x42e0], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x1400148e3
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x42e8], r15
lea rcx, [rdi + 0x4310]
call fcn.140023180
mov esi, r15d
cmp dword [rdi + 0x4300], r15d
jle 0x14001495c
mov rbp, r15
mov rbx, qword [rdi + 0x4308]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14002eb40
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14001494e
mov rax, qword [0x140056118]
test rax, rax
je 0x140014941
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4300]
jl 0x140014911
mov rcx, qword [rdi + 0x4308]
test rcx, rcx
je 0x140014994
mov qword [rdi + 0x4300], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x140014981
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4308], r15
mov rcx, qword [rdi + 0x4350]
test rcx, rcx
je 0x1400149cc
mov qword [rdi + 0x4348], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x1400149b9
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4350], r15
mov rcx, qword [rdi + 0x5328]
test rcx, rcx
je 0x140014a04
mov qword [rdi + 0x5320], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x1400149f1
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5328], r15
mov rcx, qword [rdi + 0x5338]
test rcx, rcx
je 0x140014a3c
mov qword [rdi + 0x5330], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x140014a29
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5338], r15
mov rcx, qword [rdi + 0x43c8]
test rcx, rcx
je 0x140014a74
mov qword [rdi + 0x43c0], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x140014a61
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x43c8], r15
mov rcx, qword [rdi + 0x43d8]
test rcx, rcx
je 0x140014aac
mov qword [rdi + 0x43d0], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x140014a99
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x43d8], r15
mov rcx, qword [rdi + 0x43e8]
test rcx, rcx
je 0x140014ae4
mov qword [rdi + 0x43e0], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x140014ad1
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x43e8], r15
mov rcx, qword [rdi + 0x5390]
test rcx, rcx
je 0x140014b1c
mov qword [rdi + 0x5388], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x140014b09
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5390], r15
mov rcx, qword [rdi + 0x5380]
test rcx, rcx
je 0x140014b54
mov qword [rdi + 0x5378], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x140014b41
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5380], r15
cmp qword [rdi + 0x53c8], 0
je 0x140014b85
mov rbx, qword [rdi + 0x53c8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140014b7e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x53c8], r15
mov rcx, qword [rdi + 0x53d8]
test rcx, rcx
je 0x140014bbd
mov qword [rdi + 0x53d0], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x140014baa
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x53d8], r15
mov rcx, qword [rdi + 0x5410]
test rcx, rcx
je 0x140014bf5
mov qword [rdi + 0x5408], r15
mov rax, qword [0x140056118]
test rax, rax
je 0x140014be2
dec dword [rax + 0xec]
mov rdx, qword [0x140056110]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5410], r15
mov byte [rdi], 0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret