Function at 0x1400c0730
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 rax, qword [rcx + 0x50]
xor r12d, r12d
test rax, rax
je 0x1400c0876
cmp byte [rcx + 1], r12b
je 0x1400c0876
mov byte [rax + 0x18], r12b
mov rbx, qword [rcx + 0x50]
test rbx, rbx
je 0x1400c0876
mov rcx, rbx
call fcn.1400b30d0
mov rcx, rbx
call fcn.1400b3220
mov ebp, r12d
cmp dword [rbx + 0x48], r12d
jle 0x1400c07cb
mov r14d, r12d
mov rax, qword [rbx + 0x50]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x1400c07c0
mov rcx, rsi
call fcn.1400b4660
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c07b7
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 0x1400c0790
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400c07f4
mov qword [rbx + 0x48], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c07ea
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 0x1400c0819
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0813
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 0x1400c083a
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0834
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 0x1400c085b
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0855
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c086d
dec dword [rax + 0xec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x50], r12
cmp byte [rdi], r12b
je 0x1400c0f8b
cmp byte [rdi + 0x5b01], r12b
je 0x1400c08f9
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400c08f9
mov rsi, qword [0x1402bc3c0]
mov qword [0x1402bc3c0], rdi
mov dword [rdi + 0x5b04], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.1400cee50
mov rbp, rax
lea rdx, [0x14028a64c]
mov rcx, rbx
call fcn.1400bb610
mov rbx, rax
test rax, rax
je 0x1400c08f2
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 [0x1402bc3c0], rsi
mov edx, 6
mov rcx, rdi
call fcn.1400bdb40
lea rcx, [rdi + 0x3dd0]
call fcn.1400d00f0
mov rcx, qword [rdi + 0x3de8]
test rcx, rcx
je 0x1400c0944
mov qword [rdi + 0x3de0], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0937
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 0x1400c0976
mov qword [rdi + 0x3df0], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0969
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 0x1400c09af
mov qword [rdi + 0x3e00], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c09a2
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 0x1400c09e1
mov qword [rdi + 0x3e10], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c09d4
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 0x1400c0a3d
mov qword [rdi + 0x3fa8], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0a30
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 0x1400c0a6f
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0a62
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 0x1400c0aa1
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0a94
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 0x1400c0ad3
mov qword [rdi + 0x4008], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0ac6
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 0x1400c0b05
mov qword [rdi + 0x4018], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0af8
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 0x1400c0bd4
mov r14, r12
nop dword [rax + rax]
mov rax, qword [rdi + 0x4038]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400c0bc2
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1400c0b60
mov rcx, rsi
call fcn.1400b9d40
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0b57
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 0x1400c0b8d
mov rcx, rsi
call fcn.1400b9d40
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0b83
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, [0x1400d02c0]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1401529e8
nop
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0bb9
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 0x1400c0b20
mov rcx, qword [rdi + 0x4038]
test rcx, rcx
je 0x1400c0c06
mov qword [rdi + 0x4030], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0bf9
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.1400cfb50
mov rcx, qword [rdi + 0x4330]
test rcx, rcx
je 0x1400c0c44
mov qword [rdi + 0x4328], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0c37
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 0x1400c0c76
mov qword [rdi + 0x4338], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0c69
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 0x1400c0cc7
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4288]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400c0cb9
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0cb3
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 0x1400c0c90
mov rcx, qword [rdi + 0x4288]
test rcx, rcx
je 0x1400c0cf9
mov qword [rdi + 0x4280], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0cec
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.1400cfc60
mov esi, r12d
cmp dword [rdi + 0x42a0], r12d
jle 0x1400c0d63
mov rbp, r12
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x42a8]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400b2340
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400c0d55
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0d4f
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 0x1400c0d20
mov rcx, qword [rdi + 0x42a8]
test rcx, rcx
je 0x1400c0d95
mov qword [rdi + 0x42a0], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0d88
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 0x1400c0dc7
mov qword [rdi + 0x42e8], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0dba
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 0x1400c0df9
mov qword [rdi + 0x5ac0], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0dec
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 0x1400c0e2b
mov qword [rdi + 0x5ad0], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0e1e
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 0x1400c0e5d
mov qword [rdi + 0x4360], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0e50
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 0x1400c0e8f
mov qword [rdi + 0x4370], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0e82
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 0x1400c0ec1
mov qword [rdi + 0x4380], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0eb4
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 0x1400c0ef3
mov qword [rdi + 0x5b28], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0ee6
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 0x1400c0f25
mov qword [rdi + 0x5b18], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0f18
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 0x1400c0f56
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 0x1400c0f4f
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 0x1400c0f88
mov qword [rdi + 0x5b70], r12
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400c0f7b
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