Function at 0x140103c20
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov eax, dword [rcx + 0xc]
mov dword [rsp + 0xa8], edx
mov rdx, qword [0x14022c040]
mov rbx, rcx
mov rdi, qword [rdx]
mov qword [rsp + 0x48], rdi
mov edi, dword [rsp + 0xa8]
and edi, 8
test eax, eax
je 0x140103dc9
mov r14, qword [fcn.1401de8b0]
xor esi, esi
xor r15d, r15d
lea r13, str._s:_unmerged___s__n
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [rbx]
mov r12, qword [rax + rsi*8]
test byte [r12 + 0x39], 0x30
je 0x140103ccd
test edi, edi
jne 0x140103f15
add r15d, 1
cmp r15d, 0xa
ja 0x140103ef0
lea rcx, [r12 + 0x48]
call fcn.140029ec0
mov ecx, 2
mov rbp, rax
call r14
mov r9, rbp
lea r8, [r12 + 0x6c]
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov eax, dword [rbx + 0xc]
add rsi, 1
cmp esi, eax
jb 0x140103c80
test r15d, r15d
jne 0x140103f15
cmp eax, 1
jbe 0x140103dc9
mov rbp, qword [fcn.1401de8b0]
xor esi, esi
mov r14d, 1
lea r13, str.You_have_both__s_and__s_n
jmp 0x140103d4a
add r14d, 1
cmp r14d, dword [rbx + 0xc]
jae 0x140103dc0
mov rax, qword [rbx]
mov rdi, qword [rax + rsi]
add rsi, 8
mov rax, qword [rax + rsi]
movsxd r8, dword [rdi + 0x40]
cmp r8d, dword [rax + 0x40]
jae 0x140103d40
cmp byte [rax + r8 + 0x6c], 0x2f
lea r12, [rax + 0x6c]
jne 0x140103d40
add rdi, 0x6c
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x140103d40
add r15d, 1
cmp r15d, 0xa
ja 0x140103ef0
mov ecx, 2
add r14d, 1
call rbp
mov r9, r12
mov r8, rdi
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_fprintf
cmp r14d, dword [rbx + 0xc]
jb 0x140103d4a
nop word cs:[rax + rax]
nop dword [rax]
test r15d, r15d
jne 0x140103f15
cmp qword [rbx + 0x20], 0
je 0x140103f48
mov r13, qword [0x14022c970]
test byte [rsp + 0xa8], 1
je 0x140103f20
call fcn.14009fec0
mov rax, qword [r13]
lea rdi, str.cache_tree.c
lea r9, [0x14020c07d]
lea r8, [0x14020c084]
mov edx, 0x1e4
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400a1480
call fcn.1400feaa0
mov eax, dword [rsp + 0xa8]
mov rdx, qword [rbx]
lea r9, [0x14020c08f]
mov rcx, qword [rbx + 0x20]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov r8d, dword [rbx + 0xc]
call fcn.140102c10
mov esi, eax
call fcn.1400fead0
mov rax, qword [r13]
mov rcx, rdi
mov edx, 0x1e9
lea r9, [0x14020c07d]
lea r8, [0x14020c084]
mov qword [rsp + 0x20], rax
call fcn.1400a1690
mov rdx, qword [0x14022c9e0]
movabs rax, 0x1ffffffff
and rax, qword [rdx + 8]
movabs rdx, 0x100000000
cmp rax, rdx
je 0x140103ebd
call fcn.14009fcb0
lea r9, str.cache_tree_update
mov edx, 0x1ea
mov rcx, rdi
mov r8, rax
call fcn.14009fa40
test esi, esi
js 0x140103ec7
or dword [rbx + 0x14], 0x20
xor esi, esi
mov rdx, qword [0x14022c040]
mov rax, qword [rsp + 0x48]
sub rax, qword [rdx]
jne 0x140103f66
mov eax, esi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call qword [fcn.1401de8b0]
mov r8d, 4
mov edx, 1
lea rcx, str...._n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov esi, 0xffffffff
jmp 0x140103ec7
mov rcx, qword [r13]
call fcn.14004cd30
test eax, eax
je 0x140103de9
lea rdx, [0x140102040]
mov rcx, rbx
call fcn.140057540
jmp 0x140103de9
mov edx, 0x38
mov ecx, 1
call fcn.1400bd320
mov dword [rax], 0xffffffff
mov qword [rbx + 0x20], rax
jmp 0x140103dd4
call fcn.1401d96b0
nop
nop dword [rax]