Function at 0x14002eb80
Capabilities:
Connect socket
Resolve dns

Disassembly:
push r13
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rsp + 0x98], rax
movzx r13d, r9b
mov r14, r8
mov dword [rsp + 0x50], edx
mov r15, rcx
mov qword [r8], 0
mov byte [rsp + 0x78], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x14002ebdf
lea r8, str.Cannot_resolve__s_n
lea edx, [rax + 3]
mov r9, r15
xor ecx, ecx
call fcn.140015030
xor eax, eax
jmp 0x14002eeba
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xc0], rbp
mov rcx, qword [rax]
mov qword [rsp + 0xb8], rsi
or ebx, 0xffffffff
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xa8], r12
test rcx, rcx
je 0x14002ec18
mov ebx, dword [rcx]
mov esi, ebx
mov edi, ebx
mov ebp, ebx
shr esi, 8
shr edi, 0x10
movzx r12d, bl
movzx ecx, sil
movzx eax, dil
shr ebp, 0x18
mov dword [rsp + 0x58], ecx
mov r9d, ecx
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x78]
mov r8d, r12d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x20], eax
call fcn.140085764
cmp r12d, 0xff
je 0x14002ecc9
cmp dword [r14 + 0x1000c], 0
lea rcx, str.__SSL_TLS_
lea rax, str.__unsecure_
cmovne rax, rcx
lea rcx, str.DevFee:
test r13b, r13b
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x50]
lea r8, [0x1400d54c0]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x58]
cmovne r8, rcx
mov dword [rsp + 0x28], eax
lea rdx, str._sStratum___connecting_to__s___d._d._d._d__port__d_s_n
mov r9, r15
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call fcn.140014e30
mov r12, qword [rsp + 0xa8]
movzx r8d, dil
movzx edx, sil
movzx ecx, bl
call fcn.14002e950
test r13b, r13b
je 0x14002ecee
mov byte [0x14012ce8f], al
jmp 0x14002ecf4
mov byte [0x140130515], al
mov edx, 1
mov ebp, 2
lea r8d, [rdx + 5]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
movzx ecx, word [rsp + 0x50]
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x68], rax
mov word [rsp + 0x68], bp
mov qword [rsp + 0x70], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rsp + 0x78]
mov word [rsp + 0x6a], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, rbx
mov dword [rsp + 0x6c], eax
call fcn.14002ead0
lea r8d, [rbp + 0xe]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x14002ee49
test rbx, rbx
je 0x14002ee54
cmp dword [r14 + 0x1000c], eax
je 0x14002ee54
mov rcx, qword [0x14012f708]
push rdx
call 0x14023d287
mov edx, ebx
mov rcx, rax
mov rdi, rax
call 0x14017b506
int3
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor ebx, ebx
mov qword [r14], rbx
xor r14d, r14d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
lea r9d, [r14 + 4]
lea r8, [rsp + 0x54]
mov edx, 0x8004667e
mov rcx, rbx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x54], 1
mov qword [rsp + 0x20], r14
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xc0]
mov rax, rbx
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140084a30
add rsp, 0xd0
pop r15
pop r14
pop r13
ret