Function at 0x14000c9e0
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, qword [0x140194da0]
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x14000cacc
cmp byte [rdi + 1], 0
je 0x14000cacc
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x14000cacc
mov rcx, rbx
call fcn.14002e130
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14000ca5b
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000ca4e
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14000ca83
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000ca76
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14000caab
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000ca9e
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000cabd
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rdi + 0x58], r15
mov rcx, qword [rdi + 0x3c58]
test rcx, rcx
je 0x14000cb0b
mov qword [rdi + 0x3c50], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000caf8
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3c58], r15
cmp byte [rdi], r15b
je 0x14000d3e7
cmp byte [rdi + 0x5b99], r15b
je 0x14000cb7c
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14000cb7c
mov rax, qword [0x140194da0]
mov dword [rax + 0x5b9c], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140020560
mov rsi, rax
lea rdx, [0x14014449c]
mov rcx, rbx
call fcn.14000a760
mov rbx, rax
test rax, rax
je 0x14000cb7c
mov r9, rax
mov r8, qword [rsp + 0x40]
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, r15d
cmp dword [rdi + 0x5be0], r15d
jle 0x14000cbc0
mov rsi, r15
nop dword [rax + rax]
mov rcx, qword [rdi + 0x5be8]
cmp dword [rsi + rcx + 4], 6
jne 0x14000cbb2
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 + 0x5be0]
jl 0x14000cb90
mov esi, r15d
cmp dword [rdi + 0x3e58], r15d
jle 0x14000cc17
mov r14, r15
nop
mov rax, qword [rdi + 0x3e60]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000cc09
mov rcx, rbx
call fcn.14000d8f0
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000cbfa
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3e58]
jl 0x14000cbd0
mov rcx, qword [rdi + 0x3e60]
test rcx, rcx
je 0x14000cc4f
mov qword [rdi + 0x3e58], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000cc3c
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e60], r15
mov rcx, qword [rdi + 0x3e70]
test rcx, rcx
je 0x14000cc87
mov qword [rdi + 0x3e68], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000cc74
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e70], r15
mov rcx, qword [rdi + 0x3e80]
test rcx, rcx
je 0x14000ccbf
mov qword [rdi + 0x3e78], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000ccac
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e80], r15
mov qword [rdi + 0x3eb8], r15
mov rcx, qword [rdi + 0x3e90]
test rcx, rcx
je 0x14000ccfe
mov qword [rdi + 0x3e88], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000cceb
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e90], r15
mov rcx, qword [rdi + 0x3ea0]
test rcx, rcx
je 0x14000cd36
mov qword [rdi + 0x3e98], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000cd23
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3ea0], r15
mov qword [rdi + 0x4898], r15
mov qword [rdi + 0x3ec8], r15
mov qword [rdi + 0x3ec0], r15
mov qword [rdi + 0x3f50], r15
mov qword [rdi + 0x3f38], r15
mov qword [rdi + 0x3ed0], r15
lea rcx, [rdi + 0x45f0]
call fcn.1400087f0
mov rcx, qword [rdi + 0x4808]
test rcx, rcx
je 0x14000cda4
mov qword [rdi + 0x4800], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000cd91
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4808], r15
mov rcx, qword [rdi + 0x4818]
test rcx, rcx
je 0x14000cddc
mov qword [rdi + 0x4810], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000cdc9
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4818], r15
mov rcx, qword [rdi + 0x4828]
test rcx, rcx
je 0x14000ce14
mov qword [rdi + 0x4820], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000ce01
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4828], r15
mov rcx, qword [rdi + 0x4868]
test rcx, rcx
je 0x14000ce4c
mov qword [rdi + 0x4860], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000ce39
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4868], r15
mov rcx, qword [rdi + 0x4878]
test rcx, rcx
je 0x14000ce84
mov qword [rdi + 0x4870], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000ce71
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4878], r15
mov ebp, r15d
cmp dword [rdi + 0x4888], r15d
jle 0x14000cf66
mov r14, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x4890]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000cf54
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14000cee6
mov rcx, rsi
call fcn.140008630
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000ced7
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x14000cf19
mov rcx, rsi
call fcn.140008630
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000cf09
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rbx + 0x78]
lea r9, [0x140021600]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.14010dad0
nop
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000cf45
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4888]
jl 0x14000cea0
mov rcx, qword [rdi + 0x4890]
test rcx, rcx
je 0x14000cf9e
mov qword [rdi + 0x4888], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000cf8b
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4890], r15
lea rcx, [rdi + 0x4b70]
call fcn.140021640
mov rcx, qword [rdi + 0x4ba0]
test rcx, rcx
je 0x14000cfe2
mov qword [rdi + 0x4b98], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000cfcf
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4ba0], r15
mov rcx, qword [rdi + 0x4bb0]
test rcx, rcx
je 0x14000d01a
mov qword [rdi + 0x4ba8], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d007
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4bb0], r15
mov ebx, r15d
cmp dword [rdi + 0x4af0], r15d
jle 0x14000d06e
mov rsi, r15
nop dword [rax]
mov rax, qword [rdi + 0x4af8]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14000d060
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d053
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4af0]
jl 0x14000d030
mov rcx, qword [rdi + 0x4af8]
test rcx, rcx
je 0x14000d0a6
mov qword [rdi + 0x4af0], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d093
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4af8], r15
lea rcx, [rdi + 0x4b20]
call fcn.1400217e0
mov esi, r15d
cmp dword [rdi + 0x4b10], r15d
jle 0x14000d10c
mov rbp, r15
mov rbx, qword [rdi + 0x4b18]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14002d670
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14000d0fe
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d0f1
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4b10]
jl 0x14000d0c1
mov rcx, qword [rdi + 0x4b18]
test rcx, rcx
je 0x14000d144
mov qword [rdi + 0x4b10], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d131
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b18], r15
mov rcx, qword [rdi + 0x4b60]
test rcx, rcx
je 0x14000d17c
mov qword [rdi + 0x4b58], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d169
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b60], r15
mov rcx, qword [rdi + 0x5b60]
test rcx, rcx
je 0x14000d1b4
mov qword [rdi + 0x5b58], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d1a1
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5b60], r15
mov rcx, qword [rdi + 0x5b70]
test rcx, rcx
je 0x14000d1ec
mov qword [rdi + 0x5b68], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d1d9
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5b70], r15
mov rcx, qword [rdi + 0x4bf0]
test rcx, rcx
je 0x14000d224
mov qword [rdi + 0x4be8], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d211
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4bf0], r15
mov rcx, qword [rdi + 0x4c00]
test rcx, rcx
je 0x14000d25c
mov qword [rdi + 0x4bf8], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d249
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c00], r15
mov rcx, qword [rdi + 0x4c10]
test rcx, rcx
je 0x14000d294
mov qword [rdi + 0x4c08], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d281
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c10], r15
mov rcx, qword [rdi + 0x5bc8]
test rcx, rcx
je 0x14000d2cc
mov qword [rdi + 0x5bc0], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d2b9
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5bc8], r15
mov rcx, qword [rdi + 0x5bb8]
test rcx, rcx
je 0x14000d304
mov qword [rdi + 0x5bb0], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d2f1
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5bb8], r15
cmp qword [rdi + 0x5c38], 0
je 0x14000d335
mov rbx, qword [rdi + 0x5c38]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000d32e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5c38], r15
mov rcx, qword [rdi + 0x5c48]
test rcx, rcx
je 0x14000d36d
mov qword [rdi + 0x5c40], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d35a
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c48], r15
mov rcx, qword [rdi + 0x5c80]
test rcx, rcx
je 0x14000d3a5
mov qword [rdi + 0x5c78], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d392
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c80], r15
mov rcx, qword [rdi + 0x5c90]
test rcx, rcx
je 0x14000d3dd
mov qword [rdi + 0x5c88], r15
mov rax, qword [0x140194da0]
test rax, rax
je 0x14000d3ca
dec dword [rax + 0xf4]
mov rdx, qword [0x140194d90]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c90], r15
mov dword [rdi + 0x5c98], r15d
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