Function at 0x140009ff0
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, rcx
mov rax, qword [rcx + 0x50]
test rax, rax
je 0x14000a0d5
cmp byte [rcx + 1], 0
je 0x14000a0d5
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0x50]
test rbx, rbx
je 0x14000a0d5
mov rcx, rbx
call fcn.140025150
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14000a064
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a057
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14000a08c
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a07f
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14000a0b4
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a0a7
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a0c6
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
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 0x14000a940
cmp byte [rdi + 0x52f9], r15b
je 0x14000a15a
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14000a15a
mov rsi, qword [0x140046758]
mov qword [0x140046758], rdi
mov dword [rdi + 0x52fc], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140018430
mov rbp, rax
lea rdx, [0x14003dd30]
mov rcx, rbx
call fcn.1400051e0
mov rbx, rax
test rax, rax
je 0x14000a153
mov r9, rax
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 1]
mov rcx, rbp
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 qword [0x140046758], rsi
mov ebx, r15d
cmp dword [rdi + 0x5340], r15d
jle 0x14000a1a0
mov rsi, r15
nop dword [rax]
mov rcx, qword [rdi + 0x5348]
cmp dword [rsi + rcx + 4], 6
jne 0x14000a192
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 + 0x5340]
jl 0x14000a170
mov esi, r15d
cmp dword [rdi + 0x3dc8], r15d
jle 0x14000a1f7
mov r14, r15
nop
mov rax, qword [rdi + 0x3dd0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000a1e9
mov rcx, rbx
call fcn.140006ef0
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a1da
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3dc8]
jl 0x14000a1b0
mov rcx, qword [rdi + 0x3dd0]
test rcx, rcx
je 0x14000a22f
mov qword [rdi + 0x3dc8], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a21c
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3dd0], r15
mov rcx, qword [rdi + 0x3de0]
test rcx, rcx
je 0x14000a267
mov qword [rdi + 0x3dd8], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a254
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3de0], r15
mov rcx, qword [rdi + 0x3df0]
test rcx, rcx
je 0x14000a29f
mov qword [rdi + 0x3de8], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a28c
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3df0], r15
mov qword [rdi + 0x3e28], r15
mov rcx, qword [rdi + 0x3e00]
test rcx, rcx
je 0x14000a2de
mov qword [rdi + 0x3df8], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a2cb
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e00], r15
mov rcx, qword [rdi + 0x3e10]
test rcx, rcx
je 0x14000a316
mov qword [rdi + 0x3e08], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a303
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e10], r15
mov qword [rdi + 0x4038], r15
mov qword [rdi + 0x3e38], r15
mov qword [rdi + 0x3e30], r15
mov qword [rdi + 0x3ec8], r15
mov qword [rdi + 0x3eb0], r15
mov qword [rdi + 0x3e40], r15
mov rcx, qword [rdi + 0x3fa8]
test rcx, rcx
je 0x14000a378
mov qword [rdi + 0x3fa0], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a365
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3fa8], r15
mov rcx, qword [rdi + 0x3fb8]
test rcx, rcx
je 0x14000a3b0
mov qword [rdi + 0x3fb0], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a39d
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3fb8], r15
mov rcx, qword [rdi + 0x3fc8]
test rcx, rcx
je 0x14000a3e8
mov qword [rdi + 0x3fc0], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a3d5
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3fc8], r15
mov rcx, qword [rdi + 0x4008]
test rcx, rcx
je 0x14000a420
mov qword [rdi + 0x4000], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a40d
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4008], r15
mov rcx, qword [rdi + 0x4018]
test rcx, rcx
je 0x14000a458
mov qword [rdi + 0x4010], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a445
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4018], r15
mov ebp, r15d
cmp dword [rdi + 0x4028], r15d
jle 0x14000a536
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rdi + 0x4030]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000a524
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14000a4b6
mov rcx, rsi
call fcn.1400036e0
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a4a7
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x14000a4e9
mov rcx, rsi
call fcn.1400036e0
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a4d9
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rbx + 0x78]
lea r9, [0x140018fc0]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.1400375a8
nop
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a515
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4028]
jl 0x14000a470
mov rcx, qword [rdi + 0x4030]
test rcx, rcx
je 0x14000a56e
mov qword [rdi + 0x4028], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a55b
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4030], r15
lea rcx, [rdi + 0x42f8]
call fcn.140019110
mov rcx, qword [rdi + 0x4328]
test rcx, rcx
je 0x14000a5b2
mov qword [rdi + 0x4320], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a59f
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4328], r15
mov rcx, qword [rdi + 0x4338]
test rcx, rcx
je 0x14000a5ea
mov qword [rdi + 0x4330], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a5d7
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4338], r15
mov ebx, r15d
cmp dword [rdi + 0x4278], r15d
jle 0x14000a63e
mov rsi, r15
nop dword [rax]
mov rax, qword [rdi + 0x4280]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14000a630
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a623
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4278]
jl 0x14000a600
mov rcx, qword [rdi + 0x4280]
test rcx, rcx
je 0x14000a676
mov qword [rdi + 0x4278], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a663
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4280], r15
lea rcx, [rdi + 0x42a8]
call fcn.1400192b0
mov esi, r15d
cmp dword [rdi + 0x4298], r15d
jle 0x14000a6dc
mov rbp, r15
mov rbx, qword [rdi + 0x42a0]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140024b30
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14000a6ce
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a6c1
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4298]
jl 0x14000a691
mov rcx, qword [rdi + 0x42a0]
test rcx, rcx
je 0x14000a714
mov qword [rdi + 0x4298], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a701
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x42a0], r15
mov rcx, qword [rdi + 0x42e8]
test rcx, rcx
je 0x14000a74c
mov qword [rdi + 0x42e0], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a739
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x42e8], r15
mov rcx, qword [rdi + 0x52c0]
test rcx, rcx
je 0x14000a784
mov qword [rdi + 0x52b8], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a771
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x52c0], r15
mov rcx, qword [rdi + 0x52d0]
test rcx, rcx
je 0x14000a7bc
mov qword [rdi + 0x52c8], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a7a9
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x52d0], r15
mov rcx, qword [rdi + 0x4360]
test rcx, rcx
je 0x14000a7f4
mov qword [rdi + 0x4358], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a7e1
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4360], r15
mov rcx, qword [rdi + 0x4370]
test rcx, rcx
je 0x14000a82c
mov qword [rdi + 0x4368], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a819
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4370], r15
mov rcx, qword [rdi + 0x4380]
test rcx, rcx
je 0x14000a864
mov qword [rdi + 0x4378], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a851
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4380], r15
mov rcx, qword [rdi + 0x5328]
test rcx, rcx
je 0x14000a89c
mov qword [rdi + 0x5320], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a889
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5328], r15
mov rcx, qword [rdi + 0x5318]
test rcx, rcx
je 0x14000a8d4
mov qword [rdi + 0x5310], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a8c1
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5318], r15
cmp qword [rdi + 0x5360], 0
je 0x14000a905
mov rbx, qword [rdi + 0x5360]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000a8fe
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5360], r15
mov rcx, qword [rdi + 0x5370]
test rcx, rcx
je 0x14000a93d
mov qword [rdi + 0x5368], r15
mov rax, qword [0x140046758]
test rax, rax
je 0x14000a92a
dec dword [rax + 0xec]
mov rdx, qword [0x140046748]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5370], 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