Function at 0x140004d50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1400c8008]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov rdi, rcx
xor r12d, r12d
lea ecx, [r12 + 0x40]
call fcn.1400997c8
mov r14, rax
mov qword [rax], r12
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
lea r15, [rax + 0x20]
mov qword [r15], r12
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rdi + r8], r12b
jne 0x140004dc0
mov rdx, rdi
mov rcx, r14
call fcn.140006300
lea rdx, [0x1400c80d0]
cmp r15, rdx
je 0x140004dff
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rdx, qword [0x1400c80d0]
mov r8, qword [0x1400c80e0]
mov rcx, r15
call fcn.140006300
mov rcx, qword [0x1400cd230]
mov rax, qword [rcx]
mov r8, r14
lea rdx, [rbp - 0x11]
call qword [rax + 0x18]
cmp byte [rbp - 1], r12b
je 0x140005021
cmp qword [rbp - 0x11], r12
je 0x140005021
mov qword [rbp - 0x71], r12
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x59], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x71], r12b
mov r8d, 1
lea rdx, [0x14009f068]
lea rcx, [rbp - 0x71]
call fcn.140006300
nop
lea rcx, [rbp - 0x31]
call fcn.140005430
nop
lea r9, [rbp - 0x71]
mov r8, rax
lea rcx, [rbp - 0x51]
call fcn.1400078a0
nop
nop dword [rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140004e70
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp - 0x51]
call fcn.140006460
mov qword [rbp + 7], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp + 7], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x17], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140004ef0
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004eeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004eeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400997c0
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x51], 0
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140004f3e
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400997c0
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x31], 0
mov rdx, qword [rbp - 0x59]
cmp rdx, 0x10
jb 0x140004f8c
inc rdx
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400997c0
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rcx, qword [rbp + 7]
lea rdx, [0x14009eedc]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
mov r9, rax
mov r8, qword [rbp - 9]
mov edx, 1
mov rcx, qword [rbp - 0x11]
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 edx, 1
mov rcx, qword [rbp - 0x11]
call fcn.1400997c0
mov rcx, r14
call fcn.140003e20
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x14000501d
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005018
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005018
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400997c0
xor eax, eax
jmp 0x14000502e
mov rcx, r14
call fcn.140003e20
mov eax, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400997a0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret