Function at 0x14000bcb0
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 rdi, qword [0x140150f50]
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x14000bd9c
cmp byte [rdi + 1], 0
je 0x14000bd9c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x14000bd9c
mov rcx, rbx
call fcn.14002df40
nop
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14000bd2b
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000bd1e
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14000bd53
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000bd46
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14000bd7b
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000bd6e
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000bd8d
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rdi + 0x58], r15
mov rcx, qword [rdi + 0x3c68]
test rcx, rcx
je 0x14000bddb
mov qword [rdi + 0x3c60], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000bdc8
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3c68], r15
cmp byte [rdi], r15b
je 0x14000c6b7
cmp byte [rdi + 0x5ba1], r15b
je 0x14000be4c
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14000be4c
mov rax, qword [0x140150f50]
mov dword [rax + 0x5ba4], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140020260
mov rsi, rax
lea rdx, [0x1400fd91c]
mov rcx, rbx
call fcn.140009aa0
mov rbx, rax
test rax, rax
je 0x14000be4c
mov r9, rax
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, rsi
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 ebx, r15d
cmp dword [rdi + 0x5be8], r15d
jle 0x14000be90
mov rsi, r15
nop dword [rax + rax]
mov rcx, qword [rdi + 0x5bf0]
cmp dword [rsi + rcx + 4], 6
jne 0x14000be82
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x5be8]
jl 0x14000be60
mov esi, r15d
cmp dword [rdi + 0x3e68], r15d
jle 0x14000bee7
mov r14, r15
nop
mov rax, qword [rdi + 0x3e70]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000bed9
mov rcx, rbx
call fcn.14000cbc0
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000beca
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3e68]
jl 0x14000bea0
mov rcx, qword [rdi + 0x3e70]
test rcx, rcx
je 0x14000bf1f
mov qword [rdi + 0x3e68], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000bf0c
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e70], r15
mov rcx, qword [rdi + 0x3e80]
test rcx, rcx
je 0x14000bf57
mov qword [rdi + 0x3e78], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000bf44
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e80], r15
mov rcx, qword [rdi + 0x3e90]
test rcx, rcx
je 0x14000bf8f
mov qword [rdi + 0x3e88], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000bf7c
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3e90], r15
mov qword [rdi + 0x3ec8], r15
mov rcx, qword [rdi + 0x3ea0]
test rcx, rcx
je 0x14000bfce
mov qword [rdi + 0x3e98], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000bfbb
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3ea0], r15
mov rcx, qword [rdi + 0x3eb0]
test rcx, rcx
je 0x14000c006
mov qword [rdi + 0x3ea8], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000bff3
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3eb0], r15
mov qword [rdi + 0x48a8], r15
mov qword [rdi + 0x3ed8], r15
mov qword [rdi + 0x3ed0], r15
mov qword [rdi + 0x3f60], r15
mov qword [rdi + 0x3f48], r15
mov qword [rdi + 0x3ee0], r15
lea rcx, [rdi + 0x4600]
call fcn.140008140
mov rcx, qword [rdi + 0x4818]
test rcx, rcx
je 0x14000c074
mov qword [rdi + 0x4810], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c061
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4818], r15
mov rcx, qword [rdi + 0x4828]
test rcx, rcx
je 0x14000c0ac
mov qword [rdi + 0x4820], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c099
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4828], r15
mov rcx, qword [rdi + 0x4838]
test rcx, rcx
je 0x14000c0e4
mov qword [rdi + 0x4830], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c0d1
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4838], r15
mov rcx, qword [rdi + 0x4878]
test rcx, rcx
je 0x14000c11c
mov qword [rdi + 0x4870], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c109
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4878], r15
mov rcx, qword [rdi + 0x4888]
test rcx, rcx
je 0x14000c154
mov qword [rdi + 0x4880], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c141
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4888], r15
mov ebp, r15d
cmp dword [rdi + 0x4898], r15d
jle 0x14000c236
mov r14, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x48a0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000c224
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14000c1b6
mov rcx, rsi
call fcn.140007f10
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c1a7
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x14000c1e9
mov rcx, rsi
call fcn.140007f10
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c1d9
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rbx + 0x78]
lea r9, [0x140021300]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1400e80c0
nop
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c215
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4898]
jl 0x14000c170
mov rcx, qword [rdi + 0x48a0]
test rcx, rcx
je 0x14000c26e
mov qword [rdi + 0x4898], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c25b
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x48a0], r15
lea rcx, [rdi + 0x4b78]
call fcn.140021340
mov rcx, qword [rdi + 0x4ba8]
test rcx, rcx
je 0x14000c2b2
mov qword [rdi + 0x4ba0], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c29f
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4ba8], r15
mov rcx, qword [rdi + 0x4bb8]
test rcx, rcx
je 0x14000c2ea
mov qword [rdi + 0x4bb0], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c2d7
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4bb8], r15
mov ebx, r15d
cmp dword [rdi + 0x4af8], r15d
jle 0x14000c33e
mov rsi, r15
nop dword [rax]
mov rax, qword [rdi + 0x4b00]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14000c330
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c323
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4af8]
jl 0x14000c300
mov rcx, qword [rdi + 0x4b00]
test rcx, rcx
je 0x14000c376
mov qword [rdi + 0x4af8], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c363
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b00], r15
lea rcx, [rdi + 0x4b28]
call fcn.1400214e0
mov esi, r15d
cmp dword [rdi + 0x4b18], r15d
jle 0x14000c3dc
mov rbp, r15
mov rbx, qword [rdi + 0x4b20]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14002d8f0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14000c3ce
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c3c1
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4b18]
jl 0x14000c391
mov rcx, qword [rdi + 0x4b20]
test rcx, rcx
je 0x14000c414
mov qword [rdi + 0x4b18], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c401
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b20], r15
mov rcx, qword [rdi + 0x4b68]
test rcx, rcx
je 0x14000c44c
mov qword [rdi + 0x4b60], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c439
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4b68], r15
mov rcx, qword [rdi + 0x5b68]
test rcx, rcx
je 0x14000c484
mov qword [rdi + 0x5b60], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c471
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5b68], r15
mov rcx, qword [rdi + 0x5b78]
test rcx, rcx
je 0x14000c4bc
mov qword [rdi + 0x5b70], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c4a9
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5b78], r15
mov rcx, qword [rdi + 0x4bf8]
test rcx, rcx
je 0x14000c4f4
mov qword [rdi + 0x4bf0], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c4e1
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4bf8], r15
mov rcx, qword [rdi + 0x4c08]
test rcx, rcx
je 0x14000c52c
mov qword [rdi + 0x4c00], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c519
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c08], r15
mov rcx, qword [rdi + 0x4c18]
test rcx, rcx
je 0x14000c564
mov qword [rdi + 0x4c10], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c551
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x4c18], r15
mov rcx, qword [rdi + 0x5bd0]
test rcx, rcx
je 0x14000c59c
mov qword [rdi + 0x5bc8], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c589
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5bd0], r15
mov rcx, qword [rdi + 0x5bc0]
test rcx, rcx
je 0x14000c5d4
mov qword [rdi + 0x5bb8], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c5c1
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5bc0], r15
cmp qword [rdi + 0x5c40], 0
je 0x14000c605
mov rbx, qword [rdi + 0x5c40]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000c5fe
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5c40], r15
mov rcx, qword [rdi + 0x5c50]
test rcx, rcx
je 0x14000c63d
mov qword [rdi + 0x5c48], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c62a
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c50], r15
mov rcx, qword [rdi + 0x5c88]
test rcx, rcx
je 0x14000c675
mov qword [rdi + 0x5c80], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c662
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c88], r15
mov rcx, qword [rdi + 0x5c98]
test rcx, rcx
je 0x14000c6ad
mov qword [rdi + 0x5c90], r15
mov rax, qword [0x140150f50]
test rax, rax
je 0x14000c69a
dec dword [rax + 0xf4]
mov rdx, qword [0x140150f40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x5c98], r15
mov dword [rdi + 0x5ca0], r15d
mov byte [rdi], 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