Function at 0x18002ad50
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18008a480]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x28], 0
and dword [rbp - 0x30], 0
xor eax, eax
cmp qword [rcx + 0x118], rax
mov rsi, rdx
lea edx, [rax + 1]
cmovne eax, edx
mov r14, rcx
movzx ecx, word [rsi]
xor r9d, r9d
xor r8d, r8d
mov dword [rbp - 0x18], 0x25a207b9
and dword [rsp + 0x28], r9d
mov dword [rbp - 0x14], 0x4660ddf3
mov dword [rbp - 0x10], 0xe576e98e
mov dword [rsp + 0x20], eax
mov dword [rbp - 0xc], 0x3e06748c
call fcn.1800153fc
mov rdi, rax
test rax, rax
je 0x180046555
movzx edx, word [rsi]
mov r9d, dword [r14 + 0xac]
xor r8d, r8d
mov rcx, rax
call fcn.180024394
mov ebx, eax
test eax, eax
jne 0x1800465b5
cmp qword [r14 + 0xb0], 0
lea r12, [0x18008a130]
mov r15d, 0x400
jne 0x1800465f9
mov rdx, rsi
mov rcx, r14
mov qword [r14 + 0xb8], rdi
mov byte [r14 + 0x254], 1
call fcn.18002af80
xor esi, esi
cmp qword [r14 + 0x118], rsi
je 0x18002bad9
mov rdx, qword [r14 + 0xb8]
mov rcx, qword [r14 + 0x110]
mov r8d, 0x2710
xor r9d, r9d
mov dword [r14 + 0x23c], r8d
mov qword [rsp + 0x20], rsi
call fcn.1800147fc
mov ebx, eax
test eax, eax
jne 0x18004666e
mov rcx, qword [r14 + 0xb8]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x30]
lea r9d, [rsi + 0x10]
lea r8, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov edx, 0xc8000006
mov dword [rsp + 0x28], 8
mov dword [r14 + 0x238], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rbp - 0x2c], eax
cmp eax, 0xffffffff
je 0x180046687
mov rcx, qword [0x18008a130]
cmp rcx, r12
je 0x18002aed7
test dword [rcx + 0x1c], r15d
jne 0x1800466e3
mov dword [rbp - 0x30], esi
mov rsi, qword [rbp - 0x28]
lea rbx, [r14 + 0x120]
mov rcx, rsi
call qword [sym.DNSAPI.dll_DnsNotifyResolverClusterIp]
mov r8d, dword [r14 + 0x4c]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea rdx, [r14 + 0x2c]
xor r9d, r9d
mov rcx, rdi
call rsi
test eax, eax
jne 0x18003dfa3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [r14 + 0x110]
mov edx, eax
call fcn.1800149f0
mov ebx, 0x3e5
cmp eax, ebx
jne 0x18002baea
mov rcx, qword [0x18008a130]
cmp rcx, r12
je 0x18002af50
test dword [rcx + 0x1c], r15d
jne 0x180046701
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180001000
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov r8d, dword [r14 + 0x4c]
lea rdx, [r14 + 0x2c]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov edx, eax
mov rcx, r14
call fcn.18002a900
nop
jmp 0x18002af52
mov eax, dword [rbp - 0x2c]
jmp 0x18002af1f
mov rax, qword [0x18008a130]
lea r12, [0x18008a130]
cmp rax, r12
je 0x18004659b
mov r15d, 0x400
test dword [rax + 0x1c], r15d
je 0x18004659b
mov rcx, rsi
call fcn.180069264
mov rcx, qword [0x18008a130]
lea r8, [0x180021620]
mov rcx, qword [rcx + 0x10]
mov r9, rax
mov edx, 0x6a
call fcn.18005b780
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
test eax, eax
jne 0x1800466d6
mov ebx, 0x2736
jmp 0x1800466d6
mov rcx, qword [0x18008a130]
lea r12, [0x18008a130]
cmp rcx, r12
je 0x1800466cc
mov r15d, 0x400
test dword [rcx + 0x1c], r15d
je 0x1800466cc
mov rcx, qword [rcx + 0x10]
lea r8, [0x180021620]
mov edx, WSAGetLastError
mov r9d, eax
call fcn.180058fb0
jmp 0x1800466cc
mov rcx, qword [0x18008a130]
cmp rcx, r12
je 0x180046620
test dword [rcx + 0x1c], r15d
je 0x180046620
mov rcx, qword [rcx + 0x10]
lea r8, [0x180021620]
mov edx, WSAGetLastError
call fcn.180058818
mov rdx, qword [r14 + 0xb0]
mov rcx, rdi
call fcn.180066d58
mov ebx, eax
test eax, eax
je 0x18002ae11
mov rcx, qword [0x18008a130]
cmp rcx, r12
je 0x180046663
test dword [rcx + 0x1c], r15d
je 0x180046663
mov rcx, qword [rcx + 0x10]
lea r8, [0x180021620]
mov edx, WSAGetLastError
mov r9d, eax
call fcn.180058fb0
lea rcx, [r14 + 0x2c]
call fcn.180069264
jmp 0x1800466cc
mov rcx, qword [0x18008a130]
cmp rcx, r12
je 0x1800466bc
test dword [rcx + 0x1c], r15d
je 0x1800466bc
mov edx, WSAGetLastError
jmp 0x1800466a6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x18008a130]
cmp rcx, r12
je 0x1800466bc
test dword [rcx + 0x1c], r15d
je 0x1800466bc
mov edx, reloc.WS2_32.dll_WSAGetLastError
mov rcx, qword [rcx + 0x10]
lea r8, [0x180021620]
mov r9d, eax
call fcn.180058fb0
nop
nop
nop
mov rcx, qword [r14 + 0x110]
mov edx, ebx
call fcn.1800149f0
mov ebx, eax
xor edx, edx
mov rcx, rdi
call sym.DNSAPI.dll_Socket_CloseEx
and qword [r14 + 0xb8], 0
jmp 0x18002af50
mov rcx, qword [rcx + 0x10]
lea r8, [0x180021620]
mov edx, WSAStartup
mov r9, r14
call fcn.18005b42c
nop
jmp 0x18002aed7
mov rcx, qword [rcx + 0x10]
lea r8, [0x180021620]
mov edx, WSAStartup
mov r9, r14
call fcn.18005b42c
nop
jmp 0x18002af50