Function at 0x1400ceb80
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, rcx
mov rdx, qword [rcx + 0x50]
add rcx, 0x50
xor r12d, r12d
test rdx, rdx
je 0x1400cecda
lea rcx, [rdi + 0x50]
cmp byte [rdi + 1], r12b
je 0x1400cecda
mov byte [rdx + 0x18], r12b
mov rbx, qword [rdi + 0x50]
lea rcx, [rdi + 0x50]
test rbx, rbx
je 0x1400cecda
mov rcx, rbx
call fcn.1400c1590
mov rcx, rbx
call fcn.1400c16e0
mov ebp, r12d
cmp dword [rbx + 0x48], r12d
jle 0x1400cec2b
mov r14d, r12d
nop dword [rax]
mov rax, qword [rbx + 0x50]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x1400cec20
mov rcx, rsi
call fcn.1400c2b10
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cec17
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x48]
jl 0x1400cebf0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400cec54
mov qword [rbx + 0x48], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cec4a
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x50], r12
mov byte [rbx + 0x19], r12b
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400cec79
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cec73
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400cec9a
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cec94
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400cecbb
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cecb5
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400ceccd
dec dword [rax + 0xec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rdi + 0x50]
mov qword [rcx], r12
cmp byte [rdi], r12b
je 0x1400cf3eb
cmp byte [rdi + 0x5b01], r12b
je 0x1400ced5c
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400ced5c
mov rsi, qword [0x1402db5d8]
mov qword [0x1402db5d8], rdi
mov dword [rdi + 0x5b04], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.1400dd240
mov rbp, rax
lea rdx, [0x1402a62b8]
mov rcx, rbx
call fcn.1400c9a30
mov rbx, rax
test rax, rax
je 0x1400ced55
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rbp
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 qword [0x1402db5d8], rsi
mov edx, 6
mov rcx, rdi
call fcn.1400cbf60
lea rcx, [rdi + 0x3dd0]
call fcn.1400de5a0
mov rcx, qword [rdi + 0x3de8]
test rcx, rcx
je 0x1400ceda7
mov qword [rdi + 0x3de0], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400ced9a
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3de8], r12
mov rcx, qword [rdi + 0x3df8]
test rcx, rcx
je 0x1400cedd9
mov qword [rdi + 0x3df0], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cedcc
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3df8], r12
mov qword [rdi + 0x3e30], r12
mov rcx, qword [rdi + 0x3e08]
test rcx, rcx
je 0x1400cee12
mov qword [rdi + 0x3e00], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cee05
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e08], r12
mov rcx, qword [rdi + 0x3e18]
test rcx, rcx
je 0x1400cee44
mov qword [rdi + 0x3e10], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cee37
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e18], r12
mov qword [rdi + 0x4040], r12
mov qword [rdi + 0x3e40], r12
mov qword [rdi + 0x3e38], r12
mov qword [rdi + 0x3ed0], r12
mov qword [rdi + 0x3eb8], r12
mov qword [rdi + 0x3e48], r12
mov rcx, qword [rdi + 0x3fb0]
test rcx, rcx
je 0x1400ceea0
mov qword [rdi + 0x3fa8], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cee93
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fb0], r12
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x1400ceed2
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400ceec5
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc0], r12
mov rcx, qword [rdi + 0x3fd0]
test rcx, rcx
je 0x1400cef04
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400ceef7
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fd0], r12
mov rcx, qword [rdi + 0x4010]
test rcx, rcx
je 0x1400cef36
mov qword [rdi + 0x4008], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cef29
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4010], r12
mov rcx, qword [rdi + 0x4020]
test rcx, rcx
je 0x1400cef68
mov qword [rdi + 0x4018], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cef5b
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4020], r12
mov ebp, r12d
cmp dword [rdi + 0x4030], r12d
jle 0x1400cf034
mov r14, r12
nop dword [rax + rax]
mov rax, qword [rdi + 0x4038]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400cf022
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1400cefc0
mov rcx, rsi
call fcn.1400c8270
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cefb7
dec dword [rax + 0xec]
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 0x1400cefed
mov rcx, rsi
call fcn.1400c8270
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cefe3
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x1400c4e70]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.14016b6a8
nop
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf019
dec dword [rax + 0xec]
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 + 0x4030]
jl 0x1400cef80
mov rcx, qword [rdi + 0x4038]
test rcx, rcx
je 0x1400cf066
mov qword [rdi + 0x4030], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf059
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4038], r12
lea rcx, [rdi + 0x4300]
call fcn.1400ddf40
mov rcx, qword [rdi + 0x4330]
test rcx, rcx
je 0x1400cf0a4
mov qword [rdi + 0x4328], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf097
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4330], r12
mov rcx, qword [rdi + 0x4340]
test rcx, rcx
je 0x1400cf0d6
mov qword [rdi + 0x4338], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf0c9
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4340], r12
mov ebx, r12d
cmp dword [rdi + 0x4280], r12d
jle 0x1400cf127
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4288]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400cf119
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf113
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4280]
jl 0x1400cf0f0
mov rcx, qword [rdi + 0x4288]
test rcx, rcx
je 0x1400cf159
mov qword [rdi + 0x4280], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf14c
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4288], r12
lea rcx, [rdi + 0x42b0]
call fcn.1400de0b0
mov esi, r12d
cmp dword [rdi + 0x42a0], r12d
jle 0x1400cf1c3
mov rbp, r12
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x42a8]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400c0c20
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400cf1b5
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf1af
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x42a0]
jl 0x1400cf180
mov rcx, qword [rdi + 0x42a8]
test rcx, rcx
je 0x1400cf1f5
mov qword [rdi + 0x42a0], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf1e8
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x42a8], r12
mov rcx, qword [rdi + 0x42f0]
test rcx, rcx
je 0x1400cf227
mov qword [rdi + 0x42e8], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf21a
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x42f0], r12
mov rcx, qword [rdi + 0x5ac8]
test rcx, rcx
je 0x1400cf259
mov qword [rdi + 0x5ac0], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf24c
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ac8], r12
mov rcx, qword [rdi + 0x5ad8]
test rcx, rcx
je 0x1400cf28b
mov qword [rdi + 0x5ad0], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf27e
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ad8], r12
mov rcx, qword [rdi + 0x4368]
test rcx, rcx
je 0x1400cf2bd
mov qword [rdi + 0x4360], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf2b0
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4368], r12
mov rcx, qword [rdi + 0x4378]
test rcx, rcx
je 0x1400cf2ef
mov qword [rdi + 0x4370], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf2e2
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4378], r12
mov rcx, qword [rdi + 0x4388]
test rcx, rcx
je 0x1400cf321
mov qword [rdi + 0x4380], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf314
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4388], r12
mov rcx, qword [rdi + 0x5b30]
test rcx, rcx
je 0x1400cf353
mov qword [rdi + 0x5b28], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf346
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b30], r12
mov rcx, qword [rdi + 0x5b20]
test rcx, rcx
je 0x1400cf385
mov qword [rdi + 0x5b18], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf378
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b20], r12
cmp qword [rdi + 0x5b68], 0
je 0x1400cf3b6
mov rbx, qword [rdi + 0x5b68]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400cf3af
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5b68], r12
mov rcx, qword [rdi + 0x5b78]
test rcx, rcx
je 0x1400cf3e8
mov qword [rdi + 0x5b70], r12
mov rax, qword [0x1402db5d8]
test rax, rax
je 0x1400cf3db
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b78], r12
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