Function at 0x14005b0a0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0xcc0
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0xcb0], rax
mov rbx, rcx
xor eax, eax
mov qword [r11 - 0x38], rax
mov word [r11 - 0x30], ax
mov dword [rsp + 0x44], 1
xor edx, edx
mov r8d, 0xc50
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea r12, [rsp + 0x50]
lea r14, [rbx + 0x11b18]
lea rdi, [rbx + 0x11bd0]
cmp dword [rbx + 0x7da04], 1
jne 0x14005b211
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 1
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2f1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2f1
mov rdx, r14
mov rcx, rbx
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 1
lea rax, [0x1400ea0b0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e6b3c]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x88b
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rbx
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x14005b20c
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x14005b20c
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005b9a2
mov r15d, 0xc06d
mov dword [rsp + 0x40], r15d
cmp r15d, 0xc0d0
ja 0x14005b89e
mov rcx, qword [rbx + 0x7db50]
cmp rcx, 0xffffffffffffffff
je 0x14005b352
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x14005b352
xor edx, edx
mov r8d, 0xc50
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ef
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ef
mov rdx, r14
mov rcx, rbx
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400ea030]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e6b24]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x8c0
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r12
mov rdx, r14
mov rcx, rbx
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x14005b34d
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x14005b34d
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005b9a2
mov dword [rsp + 0x20], r15d
lea r9, [0x1400e6aec]
mov edx, 0xa
lea r8, [rdx - 0xb]
lea rcx, [rsp + 0xca0]
call fcn.140001030
mov byte [rsp + 0xca9], 0
lea r8, [rbx + 0x7daf0]
lea rcx, [rbx + 0x7da78]
lea r9, [rbx + 0x7dae0]
lea rdx, [rsp + 0xca0]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14005b4b0
xor edx, edx
mov r8d, 0xc50
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ec
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ec
mov rdx, r14
mov rcx, rbx
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400e9fb0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e6acc]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x8e4
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r12
mov rdx, r14
mov rcx, rbx
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x14005b4ab
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x14005b4ab
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005b9a2
mov rsi, qword [rbx + 0x7dae0]
test rsi, rsi
je 0x14005b896
mov r8d, dword [rsi + 0xc]
mov edx, dword [rsi + 8]
mov ecx, dword [rsi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x7db50], rax
cmp rax, 0xffffffffffffffff
jne 0x14005b5ea
xor edx, edx
mov r8d, 0xc50
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ed
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ed
mov rdx, r14
mov rcx, rbx
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400e9f40]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e6924]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x908
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r12
mov rdx, r14
mov rcx, rbx
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x14005b5e5
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x14005b5e5
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005b9a2
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x44]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14005b71d
xor edx, edx
mov r8d, 0xc50
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ee
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ee
mov rdx, r14
mov rcx, rbx
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400e9ec0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e6894]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x930
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r12
mov rdx, r14
mov rcx, rbx
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x14005b718
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x14005b718
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005b9a2
mov r8d, dword [rsi + 0x10]
mov rdx, qword [rsi + 0x20]
mov rcx, qword [rbx + 0x7db50]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14005b763
mov dword [rbx + 0x7da2c], r15d
lea rcx, [rbx + 0x7daa0]
mov r9d, 0xa
lea r8, [rsp + 0xca0]
mov edx, r9d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
xor eax, eax
jmp 0x14005b9ae
mov rcx, qword [rbx + 0x7db50]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x14005b882
xor edx, edx
mov r8d, 0xc50
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2ef
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2ef
mov rdx, r14
mov rcx, rbx
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400e9e40]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e67e4]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x967
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r12
mov rdx, r14
mov rcx, rbx
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x14005b87d
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x14005b87d
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
jmp 0x14005b9a2
mov qword [rbx + 0x7db50], 0xffffffffffffffff
mov rsi, qword [rsi + 0x28]
jmp 0x14005b4b7
inc r15d
jmp 0x14005b217
xor edx, edx
mov r8d, 0xc50
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x90], 3
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x98], 0x2f3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2f3
mov rdx, r14
mov rcx, rbx
call fcn.1400a5b80
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400e9dc0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e666c]
mov edx, 0x9f6
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140001030
mov byte [rsp + 0xa95], 0
mov dword [rsp + 0xa98], 0x9d7
mov eax, dword [r14 + 0x30]
mov dword [rsp + 0x6c], eax
inc eax
mov dword [r14 + 0x30], eax
mov r9d, 1
mov r8, r12
mov rdx, r14
mov rcx, rbx
call fcn.1400a51e0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x14005b9a2
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x14005b9a2
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400b4c70]
mov dword [r14 + 0x50], eax
mov eax, 1
jmp 0x14005b9ae
mov rcx, qword [rsp + 0xcb0]
xor rcx, rsp
call fcn.140001ea0
lea r11, [rsp + 0xcc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret