Function at 0x140147570
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 [0x1402178c0]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x1401475ec
cmp byte [rdi + 1], 0
je 0x1401475ec
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x1401475ec
mov rcx, rbx
call fcn.140168910
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1401475c6
call fcn.140148870
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1401475d5
call fcn.140148870
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1401475e4
call fcn.140148870
nop
mov rcx, rbx
call fcn.140148870
xor r15d, r15d
mov qword [rdi + 0x38], r15
mov rcx, qword [rdi + 0x3da0]
test rcx, rcx
je 0x140147612
mov qword [rdi + 0x3d98], r15
call fcn.140148870
mov qword [rdi + 0x3da0], r15
cmp byte [rdi], r15b
je 0x140147c07
cmp byte [rdi + 0x5f58], r15b
je 0x140147683
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140147683
mov rax, qword [0x1402178c0]
mov dword [rax + 0x5f5c], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.14015a5a0
mov rsi, rax
lea rdx, [0x140207614]
mov rcx, rbx
call fcn.1401458d0
mov rbx, rax
test rax, rax
je 0x140147683
mov r9, rax
mov r8, qword [rsp + 0x40]
mov edx, 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 rbx, qword [rdi + 0x5fa8]
movsxd rsi, dword [rdi + 0x5fa0]
shl rsi, 5
add rsi, rbx
cmp rbx, rsi
je 0x1401476bb
nop dword [rax]
cmp dword [rbx + 4], 6
jne 0x1401476b2
mov rax, qword [rbx + 0x10]
mov rdx, rbx
mov rcx, rdi
call rax
add rbx, 0x20
cmp rbx, rsi
jne 0x1401476a0
mov ebx, r15d
cmp dword [rdi + 0x3fd8], r15d
jle 0x1401476fe
mov r14, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x3fe0]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x1401476f0
mov rcx, rsi
call fcn.1401480d0
mov rcx, rsi
call fcn.140148870
inc ebx
add r14, 8
cmp ebx, dword [rdi + 0x3fd8]
jl 0x1401476d0
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x14014771d
mov qword [rdi + 0x3fd8], r15
call fcn.140148870
mov qword [rdi + 0x3fe0], r15
mov rcx, qword [rdi + 0x3ff0]
test rcx, rcx
je 0x14014773c
mov qword [rdi + 0x3fe8], r15
call fcn.140148870
mov qword [rdi + 0x3ff0], r15
mov rcx, qword [rdi + 0x4000]
test rcx, rcx
je 0x14014775b
mov qword [rdi + 0x3ff8], r15
call fcn.140148870
mov qword [rdi + 0x4000], r15
mov qword [rdi + 0x4038], r15
mov rcx, qword [rdi + 0x4010]
test rcx, rcx
je 0x140147781
mov qword [rdi + 0x4008], r15
call fcn.140148870
mov qword [rdi + 0x4010], r15
mov rcx, qword [rdi + 0x4020]
test rcx, rcx
je 0x1401477a0
mov qword [rdi + 0x4018], r15
call fcn.140148870
mov qword [rdi + 0x4020], r15
mov qword [rdi + 0x4b38], r15
mov qword [rdi + 0x4048], r15
mov qword [rdi + 0x4040], r15
mov qword [rdi + 0x40d0], r15
mov qword [rdi + 0x40b8], r15
mov qword [rdi + 0x4050], r15
lea rcx, [rdi + 0x4830]
call fcn.140143da0
mov rcx, qword [rdi + 0x4a98]
test rcx, rcx
je 0x1401477f5
mov qword [rdi + 0x4a90], r15
call fcn.140148870
mov qword [rdi + 0x4a98], r15
mov rcx, qword [rdi + 0x4aa8]
test rcx, rcx
je 0x140147814
mov qword [rdi + 0x4aa0], r15
call fcn.140148870
mov qword [rdi + 0x4aa8], r15
mov rcx, qword [rdi + 0x4ab8]
test rcx, rcx
je 0x140147833
mov qword [rdi + 0x4ab0], r15
call fcn.140148870
mov qword [rdi + 0x4ab8], r15
mov rcx, qword [rdi + 0x4af8]
test rcx, rcx
je 0x140147852
mov qword [rdi + 0x4af0], r15
call fcn.140148870
mov qword [rdi + 0x4af8], r15
mov rcx, qword [rdi + 0x4b08]
test rcx, rcx
je 0x140147871
mov qword [rdi + 0x4b00], r15
call fcn.140148870
mov qword [rdi + 0x4b08], r15
mov rcx, qword [rdi + 0x4b18]
test rcx, rcx
je 0x140147890
mov qword [rdi + 0x4b10], r15
call fcn.140148870
mov qword [rdi + 0x4b18], r15
mov ebp, r15d
cmp dword [rdi + 0x4b28], r15d
jle 0x14014791a
mov r14, r15
nop
mov rax, qword [rdi + 0x4b30]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14014790c
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1401478c9
mov rcx, rsi
call fcn.140143d00
mov rcx, rsi
call fcn.140148870
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x1401478e3
mov rcx, rsi
call fcn.140143d00
mov rcx, rsi
call fcn.140148870
nop
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x1401478f5
call fcn.140148870
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140147904
call fcn.140148870
nop
mov rcx, rbx
call fcn.140148870
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4b28]
jl 0x1401478a0
mov rcx, qword [rdi + 0x4b30]
test rcx, rcx
je 0x140147939
mov qword [rdi + 0x4b28], r15
call fcn.140148870
mov qword [rdi + 0x4b30], r15
lea rcx, [rdi + 0x4e88]
call fcn.14015b970
mov rcx, qword [rdi + 0x4eb8]
test rcx, rcx
je 0x140147964
mov qword [rdi + 0x4eb0], r15
call fcn.140148870
mov qword [rdi + 0x4eb8], r15
mov rcx, qword [rdi + 0x4ec8]
test rcx, rcx
je 0x140147983
mov qword [rdi + 0x4ec0], r15
call fcn.140148870
mov qword [rdi + 0x4ec8], r15
mov ebx, r15d
cmp dword [rdi + 0x4e08], r15d
jle 0x1401479c5
mov rsi, r15
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x4e10]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1401479b7
call fcn.140148870
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4e08]
jl 0x1401479a0
mov rcx, qword [rdi + 0x4e10]
test rcx, rcx
je 0x1401479e4
mov qword [rdi + 0x4e08], r15
call fcn.140148870
mov qword [rdi + 0x4e10], r15
lea rcx, [rdi + 0x4e38]
call fcn.14015ba70
mov esi, r15d
cmp dword [rdi + 0x4e28], r15d
jle 0x140147a32
mov rbp, r15
nop
mov rbx, qword [rdi + 0x4e30]
lea rcx, [rbx + 0x18]
add rcx, rbp
call fcn.140168210
nop
mov rcx, qword [rbx + rbp + 0x28]
test rcx, rcx
je 0x140147a24
call fcn.140148870
nop
inc esi
add rbp, 0x78
cmp esi, dword [rdi + 0x4e28]
jl 0x140147a00
mov rcx, qword [rdi + 0x4e30]
test rcx, rcx
je 0x140147a51
mov qword [rdi + 0x4e28], r15
call fcn.140148870
mov qword [rdi + 0x4e30], r15
mov rcx, qword [rdi + 0x4e78]
test rcx, rcx
je 0x140147a70
mov qword [rdi + 0x4e70], r15
call fcn.140148870
mov qword [rdi + 0x4e78], r15
mov rcx, qword [rdi + 0x5eb8]
test rcx, rcx
je 0x140147a8f
mov qword [rdi + 0x5eb0], r15
call fcn.140148870
mov qword [rdi + 0x5eb8], r15
mov rcx, qword [rdi + 0x5ec8]
test rcx, rcx
je 0x140147aae
mov qword [rdi + 0x5ec0], r15
call fcn.140148870
mov qword [rdi + 0x5ec8], r15
mov rcx, qword [rdi + 0x4f18]
test rcx, rcx
je 0x140147acd
mov qword [rdi + 0x4f10], r15
call fcn.140148870
mov qword [rdi + 0x4f18], r15
mov rcx, qword [rdi + 0x4f28]
test rcx, rcx
je 0x140147aec
mov qword [rdi + 0x4f20], r15
call fcn.140148870
mov qword [rdi + 0x4f28], r15
mov rcx, qword [rdi + 0x4f38]
test rcx, rcx
je 0x140147b0b
mov qword [rdi + 0x4f30], r15
call fcn.140148870
mov qword [rdi + 0x4f38], r15
mov dword [rdi + 0x5d88], r15d
mov rcx, qword [rdi + 0x5d98]
test rcx, rcx
je 0x140147b31
mov qword [rdi + 0x5d90], r15
call fcn.140148870
mov qword [rdi + 0x5d98], r15
mov rcx, qword [rdi + 0x5f88]
test rcx, rcx
je 0x140147b50
mov qword [rdi + 0x5f80], r15
call fcn.140148870
mov qword [rdi + 0x5f88], r15
mov rcx, qword [rdi + 0x5f78]
test rcx, rcx
je 0x140147b6f
mov qword [rdi + 0x5f70], r15
call fcn.140148870
mov qword [rdi + 0x5f78], r15
cmp qword [rdi + 0x6000], 0
je 0x140147ba0
mov rbx, qword [rdi + 0x6000]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140147b99
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x6000], r15
mov rcx, qword [rdi + 0x6010]
test rcx, rcx
je 0x140147bbf
mov qword [rdi + 0x6008], r15
call fcn.140148870
mov qword [rdi + 0x6010], r15
mov rcx, qword [rdi + 0x6048]
test rcx, rcx
je 0x140147bde
mov qword [rdi + 0x6040], r15
call fcn.140148870
mov qword [rdi + 0x6048], r15
mov rcx, qword [rdi + 0x6058]
test rcx, rcx
je 0x140147bfd
mov qword [rdi + 0x6050], r15
call fcn.140148870
mov qword [rdi + 0x6058], r15
mov dword [rdi + 0x6060], r15d
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