Function at 0x1400bb4c0
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 0x1400bb606
cmp byte [rcx + 1], r12b
je 0x1400bb606
mov byte [rax + 0x18], r12b
mov rbx, qword [rcx + 0x50]
test rbx, rbx
je 0x1400bb606
mov rcx, rbx
call fcn.1400ae1a0
mov rcx, rbx
call fcn.1400ae2f0
mov ebp, r12d
cmp dword [rbx + 0x48], r12d
jle 0x1400bb55b
mov r14d, r12d
mov rax, qword [rbx + 0x50]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x1400bb550
mov rcx, rsi
call fcn.1400af730
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb547
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 0x1400bb520
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400bb584
mov qword [rbx + 0x48], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb57a
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 0x1400bb5a9
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb5a3
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 0x1400bb5ca
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb5c4
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 0x1400bb5eb
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb5e5
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb5fd
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 0x1400bbd1b
cmp byte [rdi + 0x5b01], r12b
je 0x1400bb689
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400bb689
mov rsi, qword [0x1402b52a0]
mov qword [0x1402b52a0], rdi
mov dword [rdi + 0x5b04], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.1400c9be0
mov rbp, rax
lea rdx, [0x1402844dc]
mov rcx, rbx
call fcn.1400b63a0
mov rbx, rax
test rax, rax
je 0x1400bb682
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 [0x1402b52a0], rsi
mov edx, 6
mov rcx, rdi
call fcn.1400b88d0
lea rcx, [rdi + 0x3dd0]
call fcn.1400cae80
mov rcx, qword [rdi + 0x3de8]
test rcx, rcx
je 0x1400bb6d4
mov qword [rdi + 0x3de0], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb6c7
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 0x1400bb706
mov qword [rdi + 0x3df0], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb6f9
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 0x1400bb73f
mov qword [rdi + 0x3e00], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb732
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 0x1400bb771
mov qword [rdi + 0x3e10], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb764
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 0x1400bb7cd
mov qword [rdi + 0x3fa8], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb7c0
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 0x1400bb7ff
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb7f2
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 0x1400bb831
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb824
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 0x1400bb863
mov qword [rdi + 0x4008], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb856
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 0x1400bb895
mov qword [rdi + 0x4018], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb888
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 0x1400bb964
mov r14, r12
nop dword [rax + rax]
mov rax, qword [rdi + 0x4038]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400bb952
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1400bb8f0
mov rcx, rsi
call fcn.1400b4ad0
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb8e7
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 0x1400bb91d
mov rcx, rsi
call fcn.1400b4ad0
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb913
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, [0x1400cb050]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.14014d778
nop
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb949
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 0x1400bb8b0
mov rcx, qword [rdi + 0x4038]
test rcx, rcx
je 0x1400bb996
mov qword [rdi + 0x4030], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb989
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.1400ca8e0
mov rcx, qword [rdi + 0x4330]
test rcx, rcx
je 0x1400bb9d4
mov qword [rdi + 0x4328], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb9c7
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 0x1400bba06
mov qword [rdi + 0x4338], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bb9f9
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 0x1400bba57
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4288]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x1400bba49
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bba43
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 0x1400bba20
mov rcx, qword [rdi + 0x4288]
test rcx, rcx
je 0x1400bba89
mov qword [rdi + 0x4280], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bba7c
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.1400ca9f0
mov esi, r12d
cmp dword [rdi + 0x42a0], r12d
jle 0x1400bbaf3
mov rbp, r12
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x42a8]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400ad410
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400bbae5
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bbadf
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 0x1400bbab0
mov rcx, qword [rdi + 0x42a8]
test rcx, rcx
je 0x1400bbb25
mov qword [rdi + 0x42a0], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bbb18
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 0x1400bbb57
mov qword [rdi + 0x42e8], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bbb4a
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 0x1400bbb89
mov qword [rdi + 0x5ac0], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bbb7c
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 0x1400bbbbb
mov qword [rdi + 0x5ad0], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bbbae
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 0x1400bbbed
mov qword [rdi + 0x4360], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bbbe0
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 0x1400bbc1f
mov qword [rdi + 0x4370], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bbc12
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 0x1400bbc51
mov qword [rdi + 0x4380], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bbc44
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 0x1400bbc83
mov qword [rdi + 0x5b28], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bbc76
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 0x1400bbcb5
mov qword [rdi + 0x5b18], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bbca8
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 0x1400bbce6
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 0x1400bbcdf
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 0x1400bbd18
mov qword [rdi + 0x5b70], r12
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400bbd0b
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