Function at 0x140006290
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 [0x1400a4d90]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14000630c
cmp byte [rdi + 1], 0
je 0x14000630c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14000630c
mov rcx, rbx
call fcn.140028460
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400062e6
call fcn.1400078a0
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400062f5
call fcn.1400078a0
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140006304
call fcn.1400078a0
nop
mov rcx, rbx
call fcn.1400078a0
xor r15d, r15d
mov qword [rdi + 0x38], r15
mov rcx, qword [rdi + 0x3d80]
test rcx, rcx
je 0x140006332
mov qword [rdi + 0x3d78], r15
call fcn.1400078a0
mov qword [rdi + 0x3d80], r15
cmp byte [rdi], r15b
je 0x140006927
cmp byte [rdi + 0x5ee8], r15b
je 0x1400063a3
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400063a3
mov rax, qword [0x1400a4d90]
mov dword [rax + 0x5eec], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.14001ac60
mov rsi, rax
lea rdx, [0x140072824]
mov rcx, rbx
call fcn.140003280
mov rbx, rax
test rax, rax
je 0x1400063a3
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 + 0x5f38]
movsxd rsi, dword [rdi + 0x5f30]
shl rsi, 5
add rsi, rbx
cmp rbx, rsi
je 0x1400063db
nop dword [rax]
cmp dword [rbx + 4], 6
jne 0x1400063d2
mov rax, qword [rbx + 0x10]
mov rdx, rbx
mov rcx, rdi
call rax
add rbx, 0x20
cmp rbx, rsi
jne 0x1400063c0
mov ebx, r15d
cmp dword [rdi + 0x3fa8], r15d
jle 0x14000641e
mov r14, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x3fb0]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x140006410
mov rcx, rsi
call fcn.140006df0
mov rcx, rsi
call fcn.1400078a0
inc ebx
add r14, 8
cmp ebx, dword [rdi + 0x3fa8]
jl 0x1400063f0
mov rcx, qword [rdi + 0x3fb0]
test rcx, rcx
je 0x14000643d
mov qword [rdi + 0x3fa8], r15
call fcn.1400078a0
mov qword [rdi + 0x3fb0], r15
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x14000645c
mov qword [rdi + 0x3fb8], r15
call fcn.1400078a0
mov qword [rdi + 0x3fc0], r15
mov rcx, qword [rdi + 0x3fd0]
test rcx, rcx
je 0x14000647b
mov qword [rdi + 0x3fc8], r15
call fcn.1400078a0
mov qword [rdi + 0x3fd0], r15
mov qword [rdi + 0x4008], r15
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x1400064a1
mov qword [rdi + 0x3fd8], r15
call fcn.1400078a0
mov qword [rdi + 0x3fe0], r15
mov rcx, qword [rdi + 0x3ff0]
test rcx, rcx
je 0x1400064c0
mov qword [rdi + 0x3fe8], r15
call fcn.1400078a0
mov qword [rdi + 0x3ff0], r15
mov qword [rdi + 0x4ad8], r15
mov qword [rdi + 0x4018], r15
mov qword [rdi + 0x4010], r15
mov qword [rdi + 0x40a0], r15
mov qword [rdi + 0x4088], r15
mov qword [rdi + 0x4020], r15
lea rcx, [rdi + 0x47e8]
call fcn.140001480
mov rcx, qword [rdi + 0x4a38]
test rcx, rcx
je 0x140006515
mov qword [rdi + 0x4a30], r15
call fcn.1400078a0
mov qword [rdi + 0x4a38], r15
mov rcx, qword [rdi + 0x4a48]
test rcx, rcx
je 0x140006534
mov qword [rdi + 0x4a40], r15
call fcn.1400078a0
mov qword [rdi + 0x4a48], r15
mov rcx, qword [rdi + 0x4a58]
test rcx, rcx
je 0x140006553
mov qword [rdi + 0x4a50], r15
call fcn.1400078a0
mov qword [rdi + 0x4a58], r15
mov rcx, qword [rdi + 0x4a98]
test rcx, rcx
je 0x140006572
mov qword [rdi + 0x4a90], r15
call fcn.1400078a0
mov qword [rdi + 0x4a98], r15
mov rcx, qword [rdi + 0x4aa8]
test rcx, rcx
je 0x140006591
mov qword [rdi + 0x4aa0], r15
call fcn.1400078a0
mov qword [rdi + 0x4aa8], r15
mov rcx, qword [rdi + 0x4ab8]
test rcx, rcx
je 0x1400065b0
mov qword [rdi + 0x4ab0], r15
call fcn.1400078a0
mov qword [rdi + 0x4ab8], r15
mov ebp, r15d
cmp dword [rdi + 0x4ac8], r15d
jle 0x14000663a
mov r14, r15
nop
mov rax, qword [rdi + 0x4ad0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000662c
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1400065e9
mov rcx, rsi
call fcn.140001300
mov rcx, rsi
call fcn.1400078a0
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x140006603
mov rcx, rsi
call fcn.140001300
mov rcx, rsi
call fcn.1400078a0
nop
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x140006615
call fcn.1400078a0
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140006624
call fcn.1400078a0
nop
mov rcx, rbx
call fcn.1400078a0
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4ac8]
jl 0x1400065c0
mov rcx, qword [rdi + 0x4ad0]
test rcx, rcx
je 0x140006659
mov qword [rdi + 0x4ac8], r15
call fcn.1400078a0
mov qword [rdi + 0x4ad0], r15
lea rcx, [rdi + 0x4e18]
call fcn.14001c0b0
mov rcx, qword [rdi + 0x4e48]
test rcx, rcx
je 0x140006684
mov qword [rdi + 0x4e40], r15
call fcn.1400078a0
mov qword [rdi + 0x4e48], r15
mov rcx, qword [rdi + 0x4e58]
test rcx, rcx
je 0x1400066a3
mov qword [rdi + 0x4e50], r15
call fcn.1400078a0
mov qword [rdi + 0x4e58], r15
mov ebx, r15d
cmp dword [rdi + 0x4d98], r15d
jle 0x1400066e5
mov rsi, r15
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x4da0]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400066d7
call fcn.1400078a0
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4d98]
jl 0x1400066c0
mov rcx, qword [rdi + 0x4da0]
test rcx, rcx
je 0x140006704
mov qword [rdi + 0x4d98], r15
call fcn.1400078a0
mov qword [rdi + 0x4da0], r15
lea rcx, [rdi + 0x4dc8]
call fcn.14001c1b0
mov esi, r15d
cmp dword [rdi + 0x4db8], r15d
jle 0x140006752
mov rbp, r15
nop
mov rbx, qword [rdi + 0x4dc0]
lea rcx, [rbx + 0x18]
add rcx, rbp
call fcn.1400278f0
nop
mov rcx, qword [rbx + rbp + 0x28]
test rcx, rcx
je 0x140006744
call fcn.1400078a0
nop
inc esi
add rbp, 0x78
cmp esi, dword [rdi + 0x4db8]
jl 0x140006720
mov rcx, qword [rdi + 0x4dc0]
test rcx, rcx
je 0x140006771
mov qword [rdi + 0x4db8], r15
call fcn.1400078a0
mov qword [rdi + 0x4dc0], r15
mov rcx, qword [rdi + 0x4e08]
test rcx, rcx
je 0x140006790
mov qword [rdi + 0x4e00], r15
call fcn.1400078a0
mov qword [rdi + 0x4e08], r15
mov rcx, qword [rdi + 0x5e48]
test rcx, rcx
je 0x1400067af
mov qword [rdi + 0x5e40], r15
call fcn.1400078a0
mov qword [rdi + 0x5e48], r15
mov rcx, qword [rdi + 0x5e58]
test rcx, rcx
je 0x1400067ce
mov qword [rdi + 0x5e50], r15
call fcn.1400078a0
mov qword [rdi + 0x5e58], r15
mov rcx, qword [rdi + 0x4ea8]
test rcx, rcx
je 0x1400067ed
mov qword [rdi + 0x4ea0], r15
call fcn.1400078a0
mov qword [rdi + 0x4ea8], r15
mov rcx, qword [rdi + 0x4eb8]
test rcx, rcx
je 0x14000680c
mov qword [rdi + 0x4eb0], r15
call fcn.1400078a0
mov qword [rdi + 0x4eb8], r15
mov rcx, qword [rdi + 0x4ec8]
test rcx, rcx
je 0x14000682b
mov qword [rdi + 0x4ec0], r15
call fcn.1400078a0
mov qword [rdi + 0x4ec8], r15
mov dword [rdi + 0x5d18], r15d
mov rcx, qword [rdi + 0x5d28]
test rcx, rcx
je 0x140006851
mov qword [rdi + 0x5d20], r15
call fcn.1400078a0
mov qword [rdi + 0x5d28], r15
mov rcx, qword [rdi + 0x5f18]
test rcx, rcx
je 0x140006870
mov qword [rdi + 0x5f10], r15
call fcn.1400078a0
mov qword [rdi + 0x5f18], r15
mov rcx, qword [rdi + 0x5f08]
test rcx, rcx
je 0x14000688f
mov qword [rdi + 0x5f00], r15
call fcn.1400078a0
mov qword [rdi + 0x5f08], r15
cmp qword [rdi + 0x5f90], 0
je 0x1400068c0
mov rbx, qword [rdi + 0x5f90]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400068b9
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5f90], r15
mov rcx, qword [rdi + 0x5fa0]
test rcx, rcx
je 0x1400068df
mov qword [rdi + 0x5f98], r15
call fcn.1400078a0
mov qword [rdi + 0x5fa0], r15
mov rcx, qword [rdi + 0x5fd8]
test rcx, rcx
je 0x1400068fe
mov qword [rdi + 0x5fd0], r15
call fcn.1400078a0
mov qword [rdi + 0x5fd8], r15
mov rcx, qword [rdi + 0x5fe8]
test rcx, rcx
je 0x14000691d
mov qword [rdi + 0x5fe0], r15
call fcn.1400078a0
mov qword [rdi + 0x5fe8], r15
mov dword [rdi + 0x5ff0], 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