Function at 0x1801272a0
Capabilities:
Connect socket
Get socket status

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov eax, 0x8098
call fcn.1800e9570
sub rsp, rax
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x8080], rax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x60], 1
xor r8d, r8d
mov edx, 1
mov rax, qword [rsp + 0x80a0]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0xffffffff
jne 0x180127306
mov eax, 1
jmp 0x180127542
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x80a0]
mov r8d, dword [rcx + 0x10]
mov rcx, qword [rsp + 0x80a0]
mov rdx, qword [rcx + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x180127357
mov dword [rsp + 0x34], 0
movsxd rax, dword [rsp + 0x3c]
mov edx, 2
mov rcx, rax
call qword [sym.imp.WS2_32.dll_shutdown]
jmp 0x180127530
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x274c
jg 0x1801273a7
cmp dword [rsp + 0x30], 0x274c
je 0x180127400
cmp dword [rsp + 0x30], 0
je 0x18012740d
cmp dword [rsp + 0x30], 0x2734
je 0x18012740d
cmp dword [rsp + 0x30], 0x2742
je 0x180127400
cmp dword [rsp + 0x30], 0x2743
je 0x1801273f3
jmp 0x18012750a
cmp dword [rsp + 0x30], 0x274d
je 0x1801273ca
cmp dword [rsp + 0x30], 0x2750
je 0x180127400
cmp dword [rsp + 0x30], 0x2751
je 0x180127400
jmp 0x18012750a
cmp dword [rsp + 0x80a8], 0
je 0x1801273de
mov dword [rsp + 0x44], 0x274d
jmp 0x1801273e6
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x34], eax
jmp 0x180127530
mov dword [rsp + 0x34], 0xfffffffe
jmp 0x180127530
mov dword [rsp + 0x34], 0xffffffff
jmp 0x180127530
mov dword [rsp + 0x48], 5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x180127427
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x38], 0
jmp 0x180127443
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x38], eax
jae 0x180127461
mov eax, dword [rsp + 0x38]
movsxd rcx, dword [rsp + 0x3c]
cmp qword [rsp + rax*8 + 0x78], rcx
jne 0x18012745f
jmp 0x180127461
jmp 0x180127439
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x38], eax
jne 0x18012748d
cmp dword [rsp + 0x70], 0x1000
jae 0x18012748d
mov eax, dword [rsp + 0x38]
movsxd rcx, dword [rsp + 0x3c]
mov qword [rsp + rax*8 + 0x78], rcx
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
xor eax, eax
test eax, eax
jne 0x18012742f
mov dword [rsp + 0x58], 5
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x40], 0
jmp 0x1801274b7
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x40], eax
jge 0x1801274ef
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jle 0x1801274ed
jmp 0x1801274ef
jmp 0x1801274ad
cmp dword [rsp + 0x4c], 0
jg 0x180127500
mov dword [rsp + 0x34], 0xffffffff
jmp 0x180127508
mov dword [rsp + 0x34], 0
jmp 0x180127530
cmp dword [rsp + 0x80a8], 0
je 0x18012751e
mov dword [rsp + 0x50], 0xfffffffd
jmp 0x180127528
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x3c]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x8080]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x8098
ret