Function at 0x1400197b0
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 rbx, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x14001980f
cmp byte [rcx + 1], 0
je 0x14001980f
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x14001980f
mov rcx, rdi
call fcn.140049f60
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019806
dec dword [rax + 0x3c8]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r15d, r15d
mov qword [rbx + 0xa8], r15
cmp byte [rbx], r15b
je 0x140019f54
cmp byte [rbx + 0x3140], r15b
je 0x140019892
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140019892
mov rsi, qword [0x140214df0]
mov qword [0x140214df0], rbx
mov dword [rbx + 0x3144], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.14002b7b0
mov rbp, rax
lea rdx, [0x14014300c]
mov rcx, rdi
call fcn.140012570
mov rdi, rax
test rax, rax
je 0x140019899
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, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140019899
mov rsi, qword [0x140214df0]
mov qword [0x140214df0], rbx
call fcn.14002ddb0
mov qword [0x140214df0], rsi
mov esi, r15d
cmp dword [rbx + 0x3108], r15d
jle 0x140019902
mov rbp, r15
nop dword [rax + rax]
mov rax, qword [rbx + 0x3110]
mov rdi, qword [rax + rbp + 8]
test rdi, rdi
je 0x1400198f4
mov rcx, rdi
call fcn.14002fc90
mov rax, qword [0x140214df0]
test rax, rax
je 0x1400198eb
dec dword [rax + 0x3c8]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rbx + 0x3108]
jl 0x1400198c0
mov edi, r15d
cmp dword [rbx + 0x3178], r15d
jle 0x140019942
mov rsi, r15
mov rdx, qword [rbx + 0x3180]
cmp dword [rsi + rdx], 6
jne 0x140019934
mov r8, qword [rsi + rdx + 8]
movsxd rax, edi
lea rcx, [rax + rax*2]
lea rdx, [rdx + rcx*8]
mov rcx, rbx
call r8
inc edi
add rsi, 0x18
cmp edi, dword [rbx + 0x3178]
jl 0x140019911
mov ebp, r15d
cmp dword [rbx + 0x1cc0], r15d
jle 0x140019a76
mov r14, r15
nop word [rax + rax]
mov rax, qword [rbx + 0x1cc8]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x140019a64
mov rcx, qword [rdi]
test rcx, rcx
je 0x140019994
mov rax, qword [0x140214df0]
test rax, rax
je 0x14001998e
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, r15d
cmp dword [rdi + 0x2f8], r15d
je 0x1400199c0
movsxd rax, esi
imul rcx, rax, 0x88
add rcx, qword [rdi + 0x300]
call fcn.140015920
inc esi
cmp esi, dword [rdi + 0x2f8]
jne 0x1400199a0
lea rcx, [rdi + 0x320]
call fcn.14000efc0
nop
mov rcx, qword [rdi + 0x300]
test rcx, rcx
je 0x1400199f2
mov rax, qword [0x140214df0]
test rax, rax
je 0x1400199eb
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rdi + 0x2f0]
test rcx, rcx
je 0x140019a17
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019a10
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rdi + 0x118]
call fcn.1400156e0
nop
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x140019a49
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019a42
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019a5b
dec dword [rax + 0x3c8]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x1cc0]
jl 0x140019960
mov rcx, qword [rbx + 0x1cc8]
test rcx, rcx
je 0x140019aa8
mov qword [rbx + 0x1cc0], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019a9b
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cc8], r15
mov rcx, qword [rbx + 0x1cd8]
test rcx, rcx
je 0x140019ada
mov qword [rbx + 0x1cd0], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019acd
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cd8], r15
mov rcx, qword [rbx + 0x1ce8]
test rcx, rcx
je 0x140019b0c
mov qword [rbx + 0x1ce0], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019aff
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ce8], r15
mov qword [rbx + 0x1d18], r15
mov rcx, qword [rbx + 0x1cf8]
test rcx, rcx
je 0x140019b45
mov qword [rbx + 0x1cf0], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019b38
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cf8], r15
mov rcx, qword [rbx + 0x1d08]
test rcx, rcx
je 0x140019b77
mov qword [rbx + 0x1d00], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019b6a
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d08], r15
mov qword [rbx + 0x1ef8], r15
mov qword [rbx + 0x1d30], r15
mov qword [rbx + 0x1d28], r15
mov qword [rbx + 0x1d20], r15
mov qword [rbx + 0x1db8], r15
mov qword [rbx + 0x1da0], r15
mov qword [rbx + 0x1d40], r15
mov rcx, qword [rbx + 0x1e78]
test rcx, rcx
je 0x140019bda
mov qword [rbx + 0x1e70], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019bcd
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e78], r15
mov rcx, qword [rbx + 0x1e88]
test rcx, rcx
je 0x140019c0c
mov qword [rbx + 0x1e80], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019bff
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e88], r15
mov rcx, qword [rbx + 0x1e98]
test rcx, rcx
je 0x140019c3e
mov qword [rbx + 0x1e90], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019c31
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1e98], r15
mov rcx, qword [rbx + 0x1ea8]
test rcx, rcx
je 0x140019c70
mov qword [rbx + 0x1ea0], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019c63
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ea8], r15
mov rcx, qword [rbx + 0x1eb8]
test rcx, rcx
je 0x140019ca2
mov qword [rbx + 0x1eb0], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019c95
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1eb8], r15
mov qword [rbx + 0x1ee8], r15
mov qword [rbx + 0x1ee0], r15
mov qword [rbx + 0x1ed8], r15
mov esi, r15d
cmp dword [rbx + 0x1ec0], r15d
jle 0x140019cee
mov rdi, r15
nop word [rax + rax]
mov rcx, qword [rbx + 0x1ec8]
mov rcx, qword [rdi + rcx]
call fcn.14003bfe0
inc esi
lea rdi, [rdi + 8]
cmp esi, dword [rbx + 0x1ec0]
jl 0x140019cd0
mov rcx, qword [rbx + 0x1ec8]
test rcx, rcx
je 0x140019d20
mov qword [rbx + 0x1ec0], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019d13
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ec8], r15
lea rcx, [rbx + 0x2128]
call fcn.1400384c0
mov rcx, qword [rbx + 0x2158]
test rcx, rcx
je 0x140019d5e
mov qword [rbx + 0x2150], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019d51
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2158], r15
mov rcx, qword [rbx + 0x2168]
test rcx, rcx
je 0x140019d90
mov qword [rbx + 0x2160], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019d83
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2168], r15
mov rcx, qword [rbx + 0x30d0]
test rcx, rcx
je 0x140019dc2
mov qword [rbx + 0x30c8], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019db5
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30d0], r15
mov rcx, qword [rbx + 0x30e0]
test rcx, rcx
je 0x140019df4
mov qword [rbx + 0x30d8], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019de7
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x30e0], r15
mov rcx, qword [rbx + 0x2190]
test rcx, rcx
je 0x140019e26
mov qword [rbx + 0x2188], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019e19
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2190], r15
mov rcx, qword [rbx + 0x21a0]
test rcx, rcx
je 0x140019e58
mov qword [rbx + 0x2198], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019e4b
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21a0], r15
mov rcx, qword [rbx + 0x21b0]
test rcx, rcx
je 0x140019e8a
mov qword [rbx + 0x21a8], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019e7d
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21b0], r15
mov rcx, qword [rbx + 0x3170]
test rcx, rcx
je 0x140019ebc
mov qword [rbx + 0x3168], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019eaf
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3170], r15
mov rcx, qword [rbx + 0x3160]
test rcx, rcx
je 0x140019eee
mov qword [rbx + 0x3158], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019ee1
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3160], r15
cmp qword [rbx + 0x3190], 0
je 0x140019f1f
mov rdi, qword [rbx + 0x3190]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140019f18
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3190], r15
mov rcx, qword [rbx + 0x31a0]
test rcx, rcx
je 0x140019f51
mov qword [rbx + 0x3198], r15
mov rax, qword [0x140214df0]
test rax, rax
je 0x140019f44
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x31a0], r15
mov byte [rbx], 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