Function at 0x1400c5d60
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 rax, qword [0x140195358]
mov rdi, rax
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x1400c5e3c
cmp byte [rax + 1], 0
je 0x1400c5e3c
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x38]
test rbx, rbx
je 0x1400c5e3c
mov rcx, rbx
call fcn.1400f5870
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400c5dd6
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c5dcf
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400c5df8
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c5df1
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400c5e1a
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c5e13
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c5e2c
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140195358]
xor r12d, r12d
mov qword [rdi + 0x38], r12
mov rcx, qword [rdi + 0x3da0]
test rcx, rcx
je 0x1400c5e75
mov qword [rdi + 0x3d98], r12
test rax, rax
je 0x1400c5e61
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3da0], r12
mov rax, qword [0x140195358]
cmp byte [rdi], r12b
je 0x1400c6671
cmp byte [rdi + 0x5e18], r12b
je 0x1400c5edf
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400c5edf
mov dword [rax + 0x5e1c], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.1400dcb80
mov rsi, rax
lea rdx, [0x14015f4e0]
mov rcx, rbx
call fcn.1400c2820
mov rbx, rax
test rax, rax
je 0x1400c5edf
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]
call fcn.1400df2f0
mov esi, r12d
cmp dword [rdi + 0x5dd8], r12d
jle 0x1400c5f42
mov rbp, r12
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x5de0]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x1400c5f34
mov rcx, rbx
call fcn.1400e0ad0
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c5f2b
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rdi + 0x5dd8]
jl 0x1400c5f00
mov edx, 6
mov rcx, rdi
call fcn.1400c6690
mov esi, r12d
cmp dword [rdi + 0x3fc8], r12d
jle 0x1400c5fa1
mov r14, r12
nop
mov rax, qword [rdi + 0x3fd0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400c5f93
mov rcx, rbx
call fcn.1400c6cf0
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c5f8a
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 + 0x3fc8]
jl 0x1400c5f60
mov rcx, qword [rdi + 0x3fd0]
test rcx, rcx
je 0x1400c5fd3
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c5fc6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fd0], r12
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x1400c6005
mov qword [rdi + 0x3fd8], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c5ff8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fe0], r12
mov rcx, qword [rdi + 0x3ff0]
test rcx, rcx
je 0x1400c6037
mov qword [rdi + 0x3fe8], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c602a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ff0], r12
mov qword [rdi + 0x4028], r12
mov rcx, qword [rdi + 0x4000]
test rcx, rcx
je 0x1400c6070
mov qword [rdi + 0x3ff8], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c6063
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4000], r12
mov rcx, qword [rdi + 0x4010]
test rcx, rcx
je 0x1400c60a2
mov qword [rdi + 0x4008], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c6095
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4010], r12
mov qword [rdi + 0x4a98], r12
mov qword [rdi + 0x4038], r12
mov qword [rdi + 0x4030], r12
mov qword [rdi + 0x40c0], r12
mov qword [rdi + 0x40a8], r12
mov qword [rdi + 0x4040], r12
lea rcx, [rdi + 0x4760]
call fcn.1400c04a0
mov rcx, qword [rdi + 0x49a0]
test rcx, rcx
je 0x1400c610a
mov qword [rdi + 0x4998], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c60fd
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49a0], r12
mov rcx, qword [rdi + 0x49b0]
test rcx, rcx
je 0x1400c613c
mov qword [rdi + 0x49a8], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c612f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49b0], r12
mov rcx, qword [rdi + 0x49c0]
test rcx, rcx
je 0x1400c616e
mov qword [rdi + 0x49b8], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c6161
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49c0], r12
mov rcx, qword [rdi + 0x4a00]
test rcx, rcx
je 0x1400c61a0
mov qword [rdi + 0x49f8], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c6193
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a00], r12
mov rcx, qword [rdi + 0x4a10]
test rcx, rcx
je 0x1400c61d2
mov qword [rdi + 0x4a08], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c61c5
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a10], r12
mov qword [rdi + 0x4a48], r12
mov qword [rdi + 0x4a40], r12
mov qword [rdi + 0x4a38], r12
mov ebx, r12d
cmp dword [rdi + 0x4a20], r12d
jle 0x1400c621e
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x4a28]
mov rcx, qword [rsi + rcx]
call fcn.1400e9660
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x4a20]
jl 0x1400c6200
mov rcx, qword [rdi + 0x4a28]
test rcx, rcx
je 0x1400c6250
mov qword [rdi + 0x4a20], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c6243
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a28], r12
lea rcx, [rdi + 0x4d80]
call fcn.1400e86a0
mov rcx, qword [rdi + 0x4db0]
test rcx, rcx
je 0x1400c628e
mov qword [rdi + 0x4da8], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c6281
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4db0], r12
mov rcx, qword [rdi + 0x4dc0]
test rcx, rcx
je 0x1400c62c0
mov qword [rdi + 0x4db8], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c62b3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4dc0], r12
mov ebx, r12d
cmp dword [rdi + 0x4d00], r12d
jle 0x1400c6308
mov rsi, r12
nop
mov rax, qword [rdi + 0x4d08]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400c62fa
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c62f3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4d00]
jl 0x1400c62d0
mov rcx, qword [rdi + 0x4d08]
test rcx, rcx
je 0x1400c633a
mov qword [rdi + 0x4d00], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c632d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d08], r12
lea rcx, [rdi + 0x4d30]
call fcn.1400e8810
mov esi, r12d
cmp dword [rdi + 0x4d20], r12d
jle 0x1400c63a5
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4d28]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400f4ac0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400c6397
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c6390
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4d20]
jl 0x1400c6360
mov rcx, qword [rdi + 0x4d28]
test rcx, rcx
je 0x1400c63d7
mov qword [rdi + 0x4d20], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c63ca
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d28], r12
mov rcx, qword [rdi + 0x4d70]
test rcx, rcx
je 0x1400c6409
mov qword [rdi + 0x4d68], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c63fc
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d70], r12
mov rcx, qword [rdi + 0x5d98]
test rcx, rcx
je 0x1400c643b
mov qword [rdi + 0x5d90], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c642e
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d98], r12
mov rcx, qword [rdi + 0x5da8]
test rcx, rcx
je 0x1400c646d
mov qword [rdi + 0x5da0], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c6460
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5da8], r12
mov rcx, qword [rdi + 0x4e10]
test rcx, rcx
je 0x1400c649f
mov qword [rdi + 0x4e08], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c6492
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e10], r12
mov rcx, qword [rdi + 0x4e20]
test rcx, rcx
je 0x1400c64d1
mov qword [rdi + 0x4e18], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c64c4
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e20], r12
mov rcx, qword [rdi + 0x4e30]
test rcx, rcx
je 0x1400c6503
mov qword [rdi + 0x4e28], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c64f6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e30], r12
mov dword [rdi + 0x5c80], r12d
mov rcx, qword [rdi + 0x5c90]
test rcx, rcx
je 0x1400c653c
mov qword [rdi + 0x5c88], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c652f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c90], r12
mov rcx, qword [rdi + 0x5e48]
test rcx, rcx
je 0x1400c656e
mov qword [rdi + 0x5e40], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c6561
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e48], r12
mov rcx, qword [rdi + 0x5e38]
test rcx, rcx
je 0x1400c65a0
mov qword [rdi + 0x5e30], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c6593
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e38], r12
cmp qword [rdi + 0x5ec8], 0
je 0x1400c65d1
mov rbx, qword [rdi + 0x5ec8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400c65ca
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5ec8], r12
mov rcx, qword [rdi + 0x5ed8]
test rcx, rcx
je 0x1400c6603
mov qword [rdi + 0x5ed0], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c65f6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ed8], r12
mov rcx, qword [rdi + 0x5f10]
test rcx, rcx
je 0x1400c6635
mov qword [rdi + 0x5f08], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c6628
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f10], r12
mov rcx, qword [rdi + 0x5f20]
test rcx, rcx
je 0x1400c6667
mov qword [rdi + 0x5f18], r12
mov rax, qword [0x140195358]
test rax, rax
je 0x1400c665a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f20], r12
mov dword [rdi + 0x5f28], 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