Function at 0x14000c980
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 0x14000ca6b
cmp byte [rcx + 1], 0
je 0x14000ca6b
mov byte [rax + 0x18], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x14000ca6b
mov rcx, rdi
call fcn.1400324a0
nop
mov rcx, qword [rdi + 0x70]
test rcx, rcx
je 0x14000c9fa
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000c9ed
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x14000ca22
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000ca15
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x14000ca4a
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000ca3d
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000ca5c
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rbx + 0xa8], r15
cmp byte [rbx], r15b
je 0x14000d202
cmp byte [rbx + 0x3208], r15b
je 0x14000caee
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14000caee
mov rsi, qword [0x14005ce38]
mov qword [0x14005ce38], rbx
mov dword [rbx + 0x320c], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.14001bdf0
mov rbp, rax
lea rdx, [0x1400520e8]
mov rcx, rdi
call fcn.140007440
mov rdi, rax
test rax, rax
je 0x14000caf5
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 0x14000caf5
mov rsi, qword [0x14005ce38]
mov qword [0x14005ce38], rbx
call fcn.14001e250
mov qword [0x14005ce38], rsi
mov esi, r15d
cmp dword [rbx + 0x31d0], r15d
jle 0x14000cb9d
mov rbp, r15
nop dword [rax + rax]
mov rax, qword [rbx + 0x31d8]
mov rdi, qword [rax + rbp + 8]
test rdi, rdi
je 0x14000cb8f
mov rcx, qword [rdi + 0x38]
call fcn.140027270
mov qword [rdi + 0x38], r15
mov qword [rdi + 0x20], r15
mov qword [rdi + 0x18], r15
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14000cb6e
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cb61
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cb80
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add rbp, 0x10
cmp esi, dword [rbx + 0x31d0]
jl 0x14000cb20
mov edi, r15d
cmp dword [rbx + 0x3250], r15d
jle 0x14000cbdd
mov rsi, r15
nop dword [rax]
mov rax, qword [rbx + 0x3258]
cmp dword [rsi + rax + 4], 6
jne 0x14000cbcf
movsxd rdx, edi
shl rdx, 5
add rdx, rax
mov rcx, rbx
call qword [rsi + rax + reloc.WS2_32.dll_recv]
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x3250]
jl 0x14000cbb0
mov esi, r15d
cmp dword [rbx + 0x1cc8], r15d
jle 0x14000cc37
mov r14, r15
nop dword [rax]
mov rax, qword [rbx + 0x1cd0]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x14000cc29
mov rcx, rdi
call fcn.1400095f0
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cc1a
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rbx + 0x1cc8]
jl 0x14000cbf0
mov rcx, qword [rbx + 0x1cd0]
test rcx, rcx
je 0x14000cc6f
mov qword [rbx + 0x1cc8], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cc5c
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1cd0], r15
mov rcx, qword [rbx + 0x1ce0]
test rcx, rcx
je 0x14000cca7
mov qword [rbx + 0x1cd8], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cc94
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ce0], r15
mov rcx, qword [rbx + 0x1cf0]
test rcx, rcx
je 0x14000ccdf
mov qword [rbx + 0x1ce8], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cccc
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1cf0], r15
mov qword [rbx + 0x1d28], r15
mov rcx, qword [rbx + 0x1d00]
test rcx, rcx
je 0x14000cd1e
mov qword [rbx + 0x1cf8], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cd0b
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1d00], r15
mov rcx, qword [rbx + 0x1d10]
test rcx, rcx
je 0x14000cd56
mov qword [rbx + 0x1d08], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cd43
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1d10], r15
mov qword [rbx + 0x1f60], r15
mov qword [rbx + 0x1d38], r15
mov qword [rbx + 0x1d30], r15
mov qword [rbx + 0x1dc0], r15
mov qword [rbx + 0x1da8], r15
mov qword [rbx + 0x1d48], r15
mov rcx, qword [rbx + 0x1e88]
test rcx, rcx
je 0x14000cdb8
mov qword [rbx + 0x1e80], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cda5
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1e88], r15
mov rcx, qword [rbx + 0x1e98]
test rcx, rcx
je 0x14000cdf0
mov qword [rbx + 0x1e90], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cddd
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1e98], r15
mov rcx, qword [rbx + 0x1ea8]
test rcx, rcx
je 0x14000ce28
mov qword [rbx + 0x1ea0], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000ce15
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ea8], r15
mov rcx, qword [rbx + 0x1ee8]
test rcx, rcx
je 0x14000ce60
mov qword [rbx + 0x1ee0], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000ce4d
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ee8], r15
mov rcx, qword [rbx + 0x1ef8]
test rcx, rcx
je 0x14000ce98
mov qword [rbx + 0x1ef0], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000ce85
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ef8], r15
mov qword [rbx + 0x1f28], r15
mov qword [rbx + 0x1f20], r15
mov qword [rbx + 0x1f18], r15
mov edi, r15d
cmp dword [rbx + 0x1f00], r15d
jle 0x14000cede
mov rsi, r15
nop dword [rax]
mov rcx, qword [rbx + 0x1f08]
mov rcx, qword [rcx + rsi]
call fcn.1400271a0
inc edi
lea rsi, [rsi + 8]
cmp edi, dword [rbx + 0x1f00]
jl 0x14000cec0
mov rcx, qword [rbx + 0x1f08]
test rcx, rcx
je 0x14000cf16
mov qword [rbx + 0x1f00], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cf03
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1f08], r15
lea rcx, [rbx + 0x21f0]
call fcn.1400263f0
mov rcx, qword [rbx + 0x2220]
test rcx, rcx
je 0x14000cf5a
mov qword [rbx + 0x2218], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cf47
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2220], r15
mov rcx, qword [rbx + 0x2230]
test rcx, rcx
je 0x14000cf92
mov qword [rbx + 0x2228], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cf7f
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2230], r15
lea rcx, [rbx + 0x2190]
call fcn.140026590
mov rcx, qword [rbx + 0x21c0]
test rcx, rcx
je 0x14000cfd6
mov qword [rbx + 0x21b8], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cfc3
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x21c0], r15
mov rcx, qword [rbx + 0x21e0]
test rcx, rcx
je 0x14000d00e
mov qword [rbx + 0x21d8], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000cffb
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x21e0], r15
mov rcx, qword [rbx + 0x3198]
test rcx, rcx
je 0x14000d046
mov qword [rbx + 0x3190], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000d033
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3198], r15
mov rcx, qword [rbx + 0x31a8]
test rcx, rcx
je 0x14000d07e
mov qword [rbx + 0x31a0], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000d06b
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x31a8], r15
mov rcx, qword [rbx + 0x2258]
test rcx, rcx
je 0x14000d0b6
mov qword [rbx + 0x2250], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000d0a3
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2258], r15
mov rcx, qword [rbx + 0x2268]
test rcx, rcx
je 0x14000d0ee
mov qword [rbx + 0x2260], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000d0db
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2268], r15
mov rcx, qword [rbx + 0x2278]
test rcx, rcx
je 0x14000d126
mov qword [rbx + 0x2270], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000d113
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2278], r15
mov rcx, qword [rbx + 0x3238]
test rcx, rcx
je 0x14000d15e
mov qword [rbx + 0x3230], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000d14b
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3238], r15
mov rcx, qword [rbx + 0x3228]
test rcx, rcx
je 0x14000d196
mov qword [rbx + 0x3220], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000d183
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3228], r15
cmp qword [rbx + 0x3270], 0
je 0x14000d1c7
mov rdi, qword [rbx + 0x3270]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x14000d1c0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3270], r15
mov rcx, qword [rbx + 0x3280]
test rcx, rcx
je 0x14000d1ff
mov qword [rbx + 0x3278], r15
mov rax, qword [0x14005ce38]
test rax, rax
je 0x14000d1ec
dec dword [rax + 0x3b0]
mov rdx, qword [0x14005ce28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3280], 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