Function at 0x140065ee0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14015e098]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov rax, qword gs:[0x58]
lea r8, [0x1400eac48]
xor r14d, r14d
mov rsi, rcx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x50], r14d
mov dword [rbp + 0x60], r14d
mov rdi, qword [rax]
mov eax, reloc.WS2_32.dll_sendto
mov dword [rax + rdi], r14d
mov eax, reloc.WS2_32.dll_recv
mov dword [rax + rdi], 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rbx, qword [rsp + 0x60]
test eax, eax
cmovne rbx, r14
mov qword [rsp + 0x60], rbx
test rbx, rbx
jne 0x140065f74
mov ecx, Ordinal_41
lea rax, str.cant_fopen
mov qword [rcx + rdi], rax
jmp 0x140066199
movups xmm0, xmmword [0x14084f530]
lea rax, [rbp - 0x48]
mov qword [rbp - 0x58], rbx
movsd xmm1, qword [0x14084f540]
lea rcx, [rbp - 0x80]
mov qword [rbp + 0x50], rax
lea rax, [rbp - 0x48]
mov qword [rbp + 0x40], rax
movaps xmmword [rbp - 0x70], xmm0
movsd qword [rbp - 0x60], xmm1
mov dword [rbp - 0x4c], 0x80
mov dword [rbp - 0x50], 1
mov dword [rbp + 0x38], r14d
call fcn.140056790
mov rax, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
lea rdx, [rsp + 0x50]
mov qword [rbp + 0x58], rax
lea rcx, [rbp - 0x80]
call fcn.140056560
mov rdi, rax
mov rcx, rbx
test rax, rax
je 0x140066193
mov edx, dword [rbp + 0x40]
mov r8d, 1
sub edx, dword [rbp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsi + 0x10]
mov r9d, 1
mov r8d, dword [rbp + 0x60]
mov qword [rsp + 0x40], r14
mov rdx, qword [rcx]
mov rax, qword [rdx + 0xb8]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x38], rdx
mov edx, dword [rsp + 0x50]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], reloc.WS2_32.dll_setsockopt
mov dword [rsp + 0x20], 0x200
call rax
mov rcx, qword [rsp + 0x58]
test eax, eax
mov rax, qword [rcx]
jne 0x140066074
xor r9d, r9d
mov dword [rsp + 0x20], 0x2000
lea r8, [rsp + 0x70]
xor edx, edx
call qword [rax + 0x98]
test eax, eax
je 0x140066085
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140066199
mov edx, dword [rbp + 0x60]
mov r11d, r14d
test edx, edx
jle 0x14006610e
mov ecx, dword [rsp + 0x50]
nop dword [rax]
nop word [rax + rax]
mov eax, r11d
mov r9d, r14d
imul eax, ecx
shl eax, 2
movsxd r10, eax
mov eax, dword [rsp + 0x70]
add r10, rdi
imul eax, r11d
cdqe
add rax, qword [rsp + 0x78]
test ecx, ecx
jle 0x140066106
sub r10, rax
nop dword [rax + rax]
mov r8d, dword [r10 + rax]
lea rax, [rax + 4]
mov ecx, r8d
inc r9d
shr ecx, 0x10
movzx edx, cl
movzx ecx, r8b
and r8d, 0xff00ff00
shl ecx, 0x10
or edx, ecx
or edx, r8d
mov dword [rax - 4], edx
mov ecx, dword [rsp + 0x50]
cmp r9d, ecx
jl 0x1400660d0
mov edx, dword [rbp + 0x60]
inc r11d
cmp r11d, edx
jl 0x1400660a0
mov rcx, qword [rsp + 0x58]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x68]
mov r8d, dword [rbp + 0x60]
mov r9d, 1
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rdx
mov rax, qword [rcx]
mov edx, dword [rsp + 0x50]
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], reloc.WS2_32.dll_setsockopt
mov dword [rsp + 0x20], 0x400
call qword [rax + 0xb8]
test eax, eax
jne 0x14006606c
mov rcx, qword [rsi + 0x10]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rsp + 0x68]
mov qword [rsi], rax
mov al, 1
jmp 0x14006619b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor al, al
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.1400d64d0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret