Function at 0x140036784
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x21], 0
mov rax, qword [rsp + 0x150]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rax], 0xffffffffffffffff
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x150]
call fcn.140036180
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140036811
xor eax, eax
jmp 0x140036b86
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x80]
call fcn.140037418
movzx eax, al
test eax, eax
jne 0x140036885
call fcn.140097430
mov edx, dword [rax]
mov rcx, qword [rsp + 0x150]
call fcn.140052500
mov qword [rsp + 0x58], rax
call fcn.140097430
mov rcx, qword [rsp + 0x58]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x38]
call fcn.1400339c8
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
call fcn.1400360b4
xor eax, eax
jmp 0x140036b86
lea r8, [rsp + 0x100]
lea rdx, str.__Trying__s..._n
mov rcx, qword [rsp + 0x38]
call fcn.1400338d0
cmp dword [rsp + 0x70], 2
jne 0x1400368b6
cmp dword [rsp + 0x74], 1
jne 0x1400368b6
mov dword [rsp + 0x48], 1
jmp 0x1400368be
mov dword [rsp + 0x48], 0
cmp dword [rsp + 0x48], 0
jne 0x1400368cf
mov dword [rsp + 0x4c], 0
jmp 0x1400368d7
mov dword [rsp + 0x4c], 1
mov al, byte [rsp + 0x4c]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14003690a
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x75e]
test eax, eax
je 0x14003690a
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
call fcn.140036348
xor eax, eax
test eax, eax
jne 0x14003690a
mov rcx, qword [rsp + 0x30]
call fcn.140035ca0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140036942
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x994]
test eax, eax
je 0x140036942
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.1400365fc
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x2c8], 0
je 0x1400369a5
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x2d0]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x2c8]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 2
jne 0x140036982
mov byte [rsp + 0x21], 1
jmp 0x1400369a5
cmp dword [rsp + 0x28], 0
je 0x1400369a5
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
call fcn.1400360b4
mov eax, Ordinal_45
jmp 0x140036b86
cmp dword [rsp + 0x70], 2
jne 0x140036a0a
lea rcx, [rsp + 0x80]
call fcn.14007ae74
mov r9d, eax
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
call fcn.140036ba4
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140036a0a
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
call fcn.1400360b4
cmp dword [rsp + 0x24], 1
jne 0x140036a01
mov eax, 7
jmp 0x140036b86
mov eax, dword [rsp + 0x24]
jmp 0x140036b86
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.14007aeac
lea rcx, [rsp + 0x60]
call fcn.1400231d8
mov rcx, qword [rsp + 0x150]
movups xmm0, xmmword [rax]
movdqu xmmword [rcx + 0x3c8], xmm0
mov rax, qword [rsp + 0x150]
cmp dword [rax + 0x3d8], 1
jle 0x140036a66
mov r8d, 3
mov rax, qword [rsp + 0x150]
mov rdx, qword [rax + 0x3e0]
mov rcx, qword [rsp + 0x38]
call fcn.14001be78
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x140036ac4
mov rax, qword [rsp + 0x150]
cmp dword [rax + 0xbc], 1
jne 0x140036ac4
mov rax, qword [rsp + 0x150]
movzx eax, byte [rax + 0x3be]
test eax, eax
je 0x140036a95
jmp 0x140036ab1
mov r8d, dword [rsp + 0x7c]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x140036ac2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
jmp 0x140036adb
mov rax, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
jmp 0x140036b86
cmp dword [rsp + 0x40], 0xffffffff
jne 0x140036b6b
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xb
je 0x140036b0b
cmp dword [rsp + 0x44], 0x2732
jle 0x140036b15
cmp dword [rsp + 0x44], 0x2734
jle 0x140036b0b
jmp 0x140036b15
mov dword [rsp + 0x24], 0
jmp 0x140036b6b
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x150]
call fcn.140052500
mov r9, rax
lea r8, [rsp + 0x100]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, qword [rsp + 0x38]
call fcn.1400338d0
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x4c7c], ecx
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
call fcn.1400360b4
mov dword [rsp + 0x24], 7
cmp dword [rsp + 0x24], 0
jne 0x140036b82
mov rax, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14008e520
add rsp, 0x148
ret