Function at 0x1800c1e50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, qword [0x1801e3228]
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x1800c1eac
cmp byte [rdi + 1], 0
je 0x1800c1eac
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x1800c1eac
mov rcx, rbx
call fcn.1800ee710
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c1ea3
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3c40]
test rcx, rcx
je 0x1800c1ee5
mov qword [rdi + 0x3c38], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c1ed8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c40], r12
cmp byte [rdi], r12b
je 0x1800c2706
cmp byte [rdi + 0x5391], r12b
je 0x1800c1f56
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1800c1f56
mov rax, qword [0x1801e3228]
mov dword [rax + 0x5394], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.1800d2710
mov rsi, rax
lea rdx, [0x18017c270]
mov rcx, rbx
call fcn.1800ba9a0
mov rbx, rax
test rax, rax
je 0x1800c1f56
mov r9, rax
mov r8, qword [rsp + 0x50]
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 ebx, r12d
cmp dword [rdi + 0x53d8], r12d
jle 0x1800c1f9d
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x53e0]
cmp dword [rsi + rax + 4], 6
jne 0x1800c1f8f
movsxd rdx, ebx
shl rdx, 5
add rdx, rax
mov rcx, rdi
call qword [rsi + rax + 0x10]
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x53d8]
jl 0x1800c1f70
mov esi, r12d
cmp dword [rdi + 0x3e40], r12d
jle 0x1800c1ff1
mov r14, r12
nop dword [rax]
mov rax, qword [rdi + 0x3e48]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1800c1fe3
mov rcx, rbx
call fcn.1800be0d0
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c1fda
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3e40]
jl 0x1800c1fb0
mov rcx, qword [rdi + 0x3e48]
test rcx, rcx
je 0x1800c2023
mov qword [rdi + 0x3e40], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2016
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e48], r12
mov rcx, qword [rdi + 0x3e58]
test rcx, rcx
je 0x1800c2055
mov qword [rdi + 0x3e50], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2048
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e58], r12
mov rcx, qword [rdi + 0x3e68]
test rcx, rcx
je 0x1800c2087
mov qword [rdi + 0x3e60], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c207a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e68], r12
mov qword [rdi + 0x3ea0], r12
mov rcx, qword [rdi + 0x3e78]
test rcx, rcx
je 0x1800c20c0
mov qword [rdi + 0x3e70], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c20b3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e78], r12
mov rcx, qword [rdi + 0x3e88]
test rcx, rcx
je 0x1800c20f2
mov qword [rdi + 0x3e80], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c20e5
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e88], r12
mov qword [rdi + 0x40b0], r12
mov qword [rdi + 0x3eb0], r12
mov qword [rdi + 0x3ea8], r12
mov qword [rdi + 0x3f20], r12
mov qword [rdi + 0x3f08], r12
mov qword [rdi + 0x3eb8], r12
mov rcx, qword [rdi + 0x4020]
test rcx, rcx
je 0x1800c214e
mov qword [rdi + 0x4018], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2141
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4020], r12
mov rcx, qword [rdi + 0x4030]
test rcx, rcx
je 0x1800c2180
mov qword [rdi + 0x4028], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2173
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4030], r12
mov rcx, qword [rdi + 0x4040]
test rcx, rcx
je 0x1800c21b2
mov qword [rdi + 0x4038], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c21a5
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4040], r12
mov rcx, qword [rdi + 0x4080]
test rcx, rcx
je 0x1800c21e4
mov qword [rdi + 0x4078], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c21d7
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4080], r12
mov rcx, qword [rdi + 0x4090]
test rcx, rcx
je 0x1800c2216
mov qword [rdi + 0x4088], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2209
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4090], r12
mov ebp, r12d
cmp dword [rdi + 0x40a0], r12d
jle 0x1800c22e4
mov r14, r12
nop dword [rax]
mov rax, qword [rdi + 0x40a8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1800c22d2
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1800c2270
mov rcx, rsi
call fcn.1800b8de0
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2267
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x1800c229d
mov rcx, rsi
call fcn.1800b8de0
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2293
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x180052b30]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.1800ffcd4
nop
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c22c9
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x40a0]
jl 0x1800c2230
mov rcx, qword [rdi + 0x40a8]
test rcx, rcx
je 0x1800c2316
mov qword [rdi + 0x40a0], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2309
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x40a8], r12
lea rcx, [rdi + 0x4380]
call fcn.1800d3c00
mov rcx, qword [rdi + 0x43b0]
test rcx, rcx
je 0x1800c2354
mov qword [rdi + 0x43a8], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2347
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x43b0], r12
mov rcx, qword [rdi + 0x43c0]
test rcx, rcx
je 0x1800c2386
mov qword [rdi + 0x43b8], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2379
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x43c0], r12
mov ebx, r12d
cmp dword [rdi + 0x4300], r12d
jle 0x1800c23d7
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4308]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1800c23c9
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c23c3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4300]
jl 0x1800c23a0
mov rcx, qword [rdi + 0x4308]
test rcx, rcx
je 0x1800c2409
mov qword [rdi + 0x4300], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c23fc
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4308], r12
lea rcx, [rdi + 0x4330]
call fcn.1800d3d70
mov esi, r12d
cmp dword [rdi + 0x4320], r12d
jle 0x1800c2473
mov rbp, r12
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x4328]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1800edf70
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1800c2465
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c245f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4320]
jl 0x1800c2430
mov rcx, qword [rdi + 0x4328]
test rcx, rcx
je 0x1800c24a5
mov qword [rdi + 0x4320], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2498
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4328], r12
mov rcx, qword [rdi + 0x4370]
test rcx, rcx
je 0x1800c24d7
mov qword [rdi + 0x4368], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c24ca
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4370], r12
mov rcx, qword [rdi + 0x5358]
test rcx, rcx
je 0x1800c2509
mov qword [rdi + 0x5350], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c24fc
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5358], r12
mov rcx, qword [rdi + 0x5368]
test rcx, rcx
je 0x1800c253b
mov qword [rdi + 0x5360], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c252e
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5368], r12
mov rcx, qword [rdi + 0x43f8]
test rcx, rcx
je 0x1800c256d
mov qword [rdi + 0x43f0], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2560
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x43f8], r12
mov rcx, qword [rdi + 0x4408]
test rcx, rcx
je 0x1800c259f
mov qword [rdi + 0x4400], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2592
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4408], r12
mov rcx, qword [rdi + 0x4418]
test rcx, rcx
je 0x1800c25d1
mov qword [rdi + 0x4410], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c25c4
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4418], r12
mov rcx, qword [rdi + 0x53c0]
test rcx, rcx
je 0x1800c2603
mov qword [rdi + 0x53b8], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c25f6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x53c0], r12
mov rcx, qword [rdi + 0x53b0]
test rcx, rcx
je 0x1800c2635
mov qword [rdi + 0x53a8], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c2628
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x53b0], r12
cmp qword [rdi + 0x53f8], 0
je 0x1800c2666
mov rbx, qword [rdi + 0x53f8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1800c265f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x53f8], r12
mov rcx, qword [rdi + 0x5408]
test rcx, rcx
je 0x1800c2698
mov qword [rdi + 0x5400], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c268b
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5408], r12
mov rcx, qword [rdi + 0x5440]
test rcx, rcx
je 0x1800c26ca
mov qword [rdi + 0x5438], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c26bd
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5440], r12
mov rcx, qword [rdi + 0x5450]
test rcx, rcx
je 0x1800c26fc
mov qword [rdi + 0x5448], r12
mov rax, qword [0x1801e3228]
test rax, rax
je 0x1800c26ef
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5450], r12
mov dword [rdi + 0x5458], r12d
mov byte [rdi], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret