Function at 0x18000ccb0
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 0x18000cd10
cmp byte [rcx + 1], 0
je 0x18000cd10
mov byte [rax + 0x18], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x18000cd10
mov rcx, rdi
call fcn.180033ca0
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000cd07
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r15d, r15d
mov qword [rbx + 0xa8], r15
cmp byte [rbx], r15b
je 0x18000d473
cmp byte [rbx + 0x3240], r15b
je 0x18000cd93
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x18000cd93
mov rsi, qword [0x1800e3370]
mov qword [0x1800e3370], rbx
mov dword [rbx + 0x3244], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.18001c070
mov rbp, rax
lea rdx, [0x1800c98d8]
mov rcx, rdi
call fcn.1800073a0
mov rdi, rax
test rax, rax
je 0x18000cd9a
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 0x18000cd9a
mov rsi, qword [0x1800e3370]
mov qword [0x1800e3370], rbx
call fcn.18001e5a0
mov qword [0x1800e3370], rsi
mov esi, r15d
cmp dword [rbx + 0x3208], r15d
jle 0x18000ce02
mov rbp, r15
nop dword [rax]
mov rax, qword [rbx + 0x3210]
mov rdi, qword [rax + rbp + 8]
test rdi, rdi
je 0x18000cdf4
mov rcx, rdi
call fcn.18001fce0
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000cdeb
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rbx + 0x3208]
jl 0x18000cdc0
mov edi, r15d
cmp dword [rbx + 0x3288], r15d
jle 0x18000ce41
mov rsi, r15
mov rcx, qword [rbx + 0x3290]
cmp dword [rsi + rcx + 4], 6
jne 0x18000ce33
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, edi
shl rdx, 5
add rdx, rcx
mov rcx, rbx
call rax
inc edi
add rsi, 0x20
cmp edi, dword [rbx + 0x3288]
jl 0x18000ce11
mov esi, r15d
cmp dword [rbx + 0x1cc8], r15d
jle 0x18000ce91
mov r14, r15
mov rax, qword [rbx + 0x1cd0]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x18000ce83
mov rcx, rdi
call fcn.180009b10
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000ce7a
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rbx + 0x1cc8]
jl 0x18000ce50
mov rcx, qword [rbx + 0x1cd0]
test rcx, rcx
je 0x18000cec3
mov qword [rbx + 0x1cc8], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000ceb6
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1cd0], r15
mov rcx, qword [rbx + 0x1ce0]
test rcx, rcx
je 0x18000cef5
mov qword [rbx + 0x1cd8], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000cee8
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ce0], r15
mov rcx, qword [rbx + 0x1cf0]
test rcx, rcx
je 0x18000cf27
mov qword [rbx + 0x1ce8], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000cf1a
dec dword [rax + 0x3b0]
call qword [sym.imp.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 0x18000cf60
mov qword [rbx + 0x1cf8], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000cf53
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d00], r15
mov rcx, qword [rbx + 0x1d10]
test rcx, rcx
je 0x18000cf92
mov qword [rbx + 0x1d08], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000cf85
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1d10], r15
mov qword [rbx + 0x1f98], 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 + 0x1ec0]
test rcx, rcx
je 0x18000cfee
mov qword [rbx + 0x1eb8], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000cfe1
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ec0], r15
mov rcx, qword [rbx + 0x1ed0]
test rcx, rcx
je 0x18000d020
mov qword [rbx + 0x1ec8], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d013
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ed0], r15
mov rcx, qword [rbx + 0x1ee0]
test rcx, rcx
je 0x18000d052
mov qword [rbx + 0x1ed8], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d045
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1ee0], r15
mov rcx, qword [rbx + 0x1f20]
test rcx, rcx
je 0x18000d084
mov qword [rbx + 0x1f18], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d077
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1f20], r15
mov rcx, qword [rbx + 0x1f30]
test rcx, rcx
je 0x18000d0b6
mov qword [rbx + 0x1f28], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d0a9
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1f30], r15
mov qword [rbx + 0x1f60], r15
mov qword [rbx + 0x1f58], r15
mov qword [rbx + 0x1f50], r15
mov ebp, r15d
cmp dword [rbx + 0x1f38], r15d
jle 0x18000d19d
mov r14, r15
nop
mov rax, qword [rbx + 0x1f40]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x18000d18b
mov rsi, qword [rdi + 0x98]
test rsi, rsi
je 0x18000d123
mov rcx, rsi
call fcn.180005ab0
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d11a
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rdi + 0xa0]
test rsi, rsi
je 0x18000d153
mov rcx, rsi
call fcn.180005ab0
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d149
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rdi + 0xe0]
lea r9, [0x180026d20]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1800b6c88
nop
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d182
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x1f38]
jl 0x18000d0e0
mov rcx, qword [rbx + 0x1f40]
test rcx, rcx
je 0x18000d1cf
mov qword [rbx + 0x1f38], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d1c2
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x1f40], r15
lea rcx, [rbx + 0x2228]
call fcn.1800270d0
mov rcx, qword [rbx + 0x2258]
test rcx, rcx
je 0x18000d20d
mov qword [rbx + 0x2250], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d200
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2258], r15
mov rcx, qword [rbx + 0x2268]
test rcx, rcx
je 0x18000d23f
mov qword [rbx + 0x2260], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d232
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2268], r15
lea rcx, [rbx + 0x21c8]
call fcn.180027250
mov rcx, qword [rbx + 0x21f8]
test rcx, rcx
je 0x18000d27d
mov qword [rbx + 0x21f0], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d270
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x21f8], r15
mov rcx, qword [rbx + 0x2218]
test rcx, rcx
je 0x18000d2af
mov qword [rbx + 0x2210], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d2a2
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2218], r15
mov rcx, qword [rbx + 0x31d0]
test rcx, rcx
je 0x18000d2e1
mov qword [rbx + 0x31c8], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d2d4
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x31d0], r15
mov rcx, qword [rbx + 0x31e0]
test rcx, rcx
je 0x18000d313
mov qword [rbx + 0x31d8], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d306
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x31e0], r15
mov rcx, qword [rbx + 0x2290]
test rcx, rcx
je 0x18000d345
mov qword [rbx + 0x2288], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d338
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x2290], r15
mov rcx, qword [rbx + 0x22a0]
test rcx, rcx
je 0x18000d377
mov qword [rbx + 0x2298], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d36a
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x22a0], r15
mov rcx, qword [rbx + 0x22b0]
test rcx, rcx
je 0x18000d3a9
mov qword [rbx + 0x22a8], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d39c
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x22b0], r15
mov rcx, qword [rbx + 0x3270]
test rcx, rcx
je 0x18000d3db
mov qword [rbx + 0x3268], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d3ce
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3270], r15
mov rcx, qword [rbx + 0x3260]
test rcx, rcx
je 0x18000d40d
mov qword [rbx + 0x3258], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d400
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x3260], r15
cmp qword [rbx + 0x32a8], 0
je 0x18000d43e
mov rdi, qword [rbx + 0x32a8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x18000d437
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x32a8], r15
mov rcx, qword [rbx + 0x32b8]
test rcx, rcx
je 0x18000d470
mov qword [rbx + 0x32b0], r15
mov rax, qword [0x1800e3370]
test rax, rax
je 0x18000d463
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x32b8], 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