Function at 0x140002e4c
Capabilities:
Connect socket
Create thread
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x14001c258]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov r12d, r8d
mov r13, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
mov eax, r14d
xchg dword [rsi + 0x20], eax
call qword [sym.imp.WINMM.dll_timeGetTime]
lea edx, [r14 + 1]
mov dword [rsi + 0x1c], eax
xor eax, eax
lea ecx, [rdx + 1]
mov qword [rsi + 0x30], rax
mov word [rsi + 0x38], ax
mov rax, qword [rsi + 0x1c]
lea r8d, [r14 + 6]
mov word [rsi + 0x38], 0x1ca
mov qword [rsi + 0x30], rax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0xb0], rax
cmp rax, 0xffffffffffffffff
jne 0x140002ed3
xor al, al
jmp 0x1400030eb
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, r13
xor edx, edx
xor ecx, ecx
mov r9d, eax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
lea ecx, [rbx + 1]
movsxd rcx, ecx
call fcn.14000726c
mov rcx, r13
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, r13
xor edx, edx
mov r9d, eax
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
mov byte [rbx + rdi], r14b
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, rdi
mov rbx, rax
call fcn.140007274
test rbx, rbx
je 0x140002ecc
mov eax, 2
movzx ecx, r12w
mov word [rbp + 0xf], ax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [rbp + 0xf]
mov word [rbp + 0x11], ax
mov rax, qword [rbx + 0x18]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, qword [rsi + 0xb0]
mov dword [rbp + 0x13], eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140002ecc
mov rcx, qword [rsi + 0xb0]
mov edi, 0xffff
lea r9, [rbp - 0x19]
mov ebx, 0x40000
mov r12d, 4
mov edx, edi
mov r8d, 0x1001
mov dword [rbp - 0x19], ebx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0xb0]
lea r9, [rbp - 0x19]
mov r8d, 0x1002
mov edx, edi
mov dword [rbp - 0x19], ebx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0xb0]
lea r9, [rbp - 0xd]
mov r8d, 0x1006
mov edx, edi
mov dword [rbp - 0xd], 0x7530
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0xb0]
lea r9, [rbp - 0x11]
lea r8d, [r12 + 4]
mov edx, edi
mov dword [rbp - 0x11], 1
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14000308d
mov rcx, qword [rsi + 0xb0]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rax, [rbp - 9]
lea r9d, [r12 + 8]
lea r8, [rbp - 1]
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov dword [rbp - 1], 1
mov dword [rbp + 3], 0x2bf20
mov dword [rbp + 7], 0x1388
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, 1
lea r8, [0x14000310c]
mov r9, rsi
xchg dword [rsi + 0x20], eax
lea rax, [rbp - 0x15]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rbp - 0x15], r14d
mov dword [rsp + 0x20], r14d
call fcn.140007c9c
lea rcx, [rbp - 5]
mov qword [rsp + 0x28], rcx
lea r8, [0x14000334c]
mov r9, rsi
xor ecx, ecx
xor edx, edx
mov qword [rsi + 0xa0], rax
mov dword [rsp + 0x20], r14d
call fcn.140007c9c
mov qword [rsi + 0xa8], rax
mov al, 1
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140007290
add rsp, 0x90
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret