Function at 0x140005880
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push rsi
push r15
lea rbp, [rax - 0x6d8]
sub rsp, 0x7c0
mov qword [rax + 8], rbx
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
xor r12d, r12d
mov qword [rax - 0x30], r13
mov rdi, rcx
lea rdx, [rbp + 0x500]
mov ecx, 0x202
mov r15d, r12d
mov r13d, r12d
mov ebx, r12d
mov qword [rbp + 0x6e8], r12
mov esi, r12d
mov qword [rax - 0x38], r14
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140005ac7
xor edx, edx
mov ecx, pe_nt_image_headers64
call fcn.14000e210
mov r13, rax
test rax, rax
je 0x140005ac7
mov rcx, rdi
call fcn.140005b50
mov r15, rax
test rax, rax
je 0x140005ac7
mov rcx, qword [rbp + 0x6e8]
mov edi, r12d
lea r14, [0x14001a930]
lea r12, [0x14001e088]
test rbx, rbx
je 0x140005941
mov rcx, qword [0x14001e780]
mov r8, rbx
mov edx, 8
call qword [0x14001e798]
mov rcx, qword [rbp + 0x6e8]
xor ebx, ebx
mov qword [rbp + 0x6f0], rbx
test rcx, rcx
je 0x140005955
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [str.QLrHQLr]
lea rdx, [rbp + 0x100]
mov qword [rbp + 0x6e8], rbx
call fcn.14000deb0
movzx eax, byte [rbp + 0x100]
lea r11, [rbp + 0x100]
lea rcx, [rsp + 0x60]
test al, al
je 0x1400059a6
nop word [rax + rax]
movsx eax, al
inc r11
add rcx, 2
mov word [rcx - 2], ax
movzx eax, byte [r11]
test al, al
jne 0x140005990
mov word [rcx], bx
mov ecx, dword [r14]
lea rax, str.hjH_Jp1NncH_aqpsL8N
dec ecx
lea rdx, [rbp + 0x100]
mov rcx, qword [rax + rcx*8]
call fcn.14000deb0
movzx eax, byte [rbp + 0x100]
lea r11, [rbp + 0x100]
lea rcx, [rbp + 0x30]
test al, al
je 0x1400059f6
nop dword [rax + rax]
movsx eax, al
inc r11
add rcx, 2
mov word [rcx - 2], ax
movzx eax, byte [r11]
test al, al
jne 0x1400059e0
lea rax, [rbp + 0x30]
mov word [rcx], bx
lea r8, [rsp + 0x60]
mov r9, r15
mov edx, 0x80
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140002880
test eax, eax
js 0x140005ac7
lea r8, [rbp + 0x6f0]
xor edx, edx
mov rcx, r13
call fcn.14000bec0
test eax, eax
je 0x140005ac7
mov rbx, qword [rbp + 0x6f0]
xor eax, eax
lea r9, [rbp + 0x6e8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x30]
mov rcx, rbx
xor edx, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x34], 2
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140005aab
mov rcx, qword [rbp + 0x6e8]
test rcx, rcx
jne 0x140005a9a
xor esi, esi
jmp 0x140005ab2
mov rax, qword [rcx + 0x20]
mov ecx, dword [rax + 4]
call qword [r12]
mov esi, eax
test eax, eax
jne 0x140005ac7
mov rcx, qword [rbp + 0x6e8]
inc edi
add r14, 4
add r12, 8
cmp edi, 5
jb 0x140005920
jmp 0x140005ace
mov rcx, qword [rbp + 0x6e8]
mov r14, qword [rsp + 0x7a0]
mov r12, qword [rsp + 0x7b0]
mov rdi, qword [rsp + 0x7b8]
mov rbx, qword [rsp + 0x7e0]
test rcx, rcx
je 0x140005af9
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r13, r13
je 0x140005b13
mov rcx, qword [0x14001e780]
mov r8, r13
mov edx, 8
call qword [0x14001e798]
mov r13, qword [rsp + 0x7a8]
test r15, r15
je 0x140005b35
mov rcx, qword [0x14001e780]
mov r8, r15
mov edx, 8
call qword [0x14001e798]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
add rsp, 0x7c0
pop r15
pop rsi
pop rbp
ret