Function at 0x140044f30
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 [0x1400b1008]
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 + 0x7d9ec], 1
jne 0x1400450a1
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], 0x2f0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2f0
mov rdx, r14
mov rcx, rbx
call fcn.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 1
lea rax, [0x1400dd250]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd33c]
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.1400056d0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x14004509c
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x14004509c
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140045832
mov r15d, 0xc06d
mov dword [rsp + 0x40], r15d
cmp r15d, 0xc0d0
ja 0x14004572e
mov rcx, qword [rbx + 0x7db38]
cmp rcx, 0xffffffffffffffff
je 0x1400451e2
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x1400451e2
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.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd1f0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd31c]
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.1400056d0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x1400451dd
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x1400451dd
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140045832
mov dword [rsp + 0x20], r15d
lea r9, [0x1400cd30c]
mov edx, 0xa
lea r8, [rdx - 0xb]
lea rcx, [rsp + 0xca0]
call fcn.140001030
mov byte [rsp + 0xca9], 0
lea r8, [rbx + 0x7dad8]
lea rcx, [rbx + 0x7da60]
lea r9, [rbx + 0x7dac8]
lea rdx, [rsp + 0xca0]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140045340
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], 0x2eb
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2eb
mov rdx, r14
mov rcx, rbx
call fcn.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd190]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd2fc]
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.1400056d0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x14004533b
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x14004533b
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140045832
mov rsi, qword [rbx + 0x7dac8]
test rsi, rsi
je 0x140045726
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 + 0x7db38], rax
cmp rax, 0xffffffffffffffff
jne 0x14004547a
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.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd130]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd2ec]
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.1400056d0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x140045475
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x140045475
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140045832
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 0x1400455ad
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.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd0d0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd2dc]
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.1400056d0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x1400455a8
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x1400455a8
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140045832
mov r8d, dword [rsi + 0x10]
mov rdx, qword [rsi + 0x20]
mov rcx, qword [rbx + 0x7db38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400455f3
mov dword [rbx + 0x7da14], r15d
lea rcx, [rbx + 0x7da88]
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 0x14004583e
mov rcx, qword [rbx + 0x7db38]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x140045712
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.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd070]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd2bc]
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.1400056d0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x14004570d
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x14004570d
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
jmp 0x140045832
mov qword [rbx + 0x7db38], 0xffffffffffffffff
mov rsi, qword [rsi + 0x28]
jmp 0x140045347
inc r15d
jmp 0x1400450a7
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], 0x2f2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov dword [rsp + 0x28], 1
mov r9d, 0x2f2
mov rdx, r14
mov rcx, rbx
call fcn.140002de0
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x9c], 5
lea rax, [0x1400dd010]
mov qword [rsp + 0x20], rax
lea r9, [0x1400cd2ac]
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.1400056d0
mov dword [r14 + 0x50], eax
test rdi, rdi
je 0x140045832
mov qword [rdi + 0x10], 1
xor eax, eax
mov dword [rdi + 0xc], eax
mov rax, qword [rbx + 0x12820]
test rax, rax
je 0x140045832
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [0x1400a4c40]
mov dword [r14 + 0x50], eax
mov eax, 1
jmp 0x14004583e
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