Function at 0x140033380
Capabilities:
Connect socket
Resolve dns

Disassembly:
push r13
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x14010b358]
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 0x1400333df
lea r8, str.Cannot_resolve__s_n
lea edx, [rax + 3]
mov r9, r15
xor ecx, ecx
call fcn.140010980
xor eax, eax
jmp 0x1400336ba
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 0x140033418
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.140089494
cmp r12d, 0xff
je 0x1400334c9
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, [0x1400da5e0]
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.140010790
mov r12, qword [rsp + 0xa8]
movzx r8d, dil
movzx edx, sil
movzx ecx, bl
call fcn.140033150
test r13b, r13b
je 0x1400334ee
mov byte [0x14013585a], al
jmp 0x1400334f4
mov byte [0x140135b2b], 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.1400332d0
lea r8d, [rbp + 0xe]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140033649
test rbx, rbx
je 0x140033654
cmp dword [r14 + 0x1000c], eax
je 0x140033654
mov rcx, qword [0x140135868]
push rdi
call 0x1404dc920
mov edx, ebx
mov rcx, rax
mov rdi, rax
push rdi
call 0x140533540
mov rcx, rdi
push rdx
call 0x14053d5f0
cmp eax, 1
je 0x1400335aa
lea r8, str.Cannot_establish_SSL_TLS_connection_n
jmp 0x140033634
mov rcx, rdi
call 0x140540436
int3
mov edx, 3
xor ecx, ecx
call fcn.140010980
mov rcx, rdi
push rdi
call 0x140252349
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.140088760
add rsp, 0xd0
pop r15
pop r14
pop r13
ret