Function at 0x431cb0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0x120
mov eax, dword [0x516b80]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [eax + 4]
mov ebp, dword [edi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0xc]
mov esi, edx
mov edx, dword [edi + 0x50]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x10]
cmp ecx, 0x80
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edx
jl 0x431cfe
mov ecx, 0x80
mov edx, dword [eax + 0x18]
push ecx
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x34], ecx
call fcn.004992e0
mov eax, dword [ebp + 0x150]
add esp, 0xc
test eax, eax
je 0x431d33
mov edx, dword [ebp + 0x154]
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
call eax
add esp, 0xc
jmp 0x431d48
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x431eef
mov edx, dword [esp + 0x1c]
push 0x80
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
mov byte [esi], 0
call fcn.00438240
add esp, 0x10
test eax, eax
je 0x431d8f
lea eax, [esp + 0xac]
push eax
push str.__Trying__s...
push ebp
call fcn.00425c10
add esp, 0xc
cmp byte [ebp + 0x272], 0
je 0x431d9f
mov edx, ebx
call fcn.00431c50
mov eax, dword [ebp + 0x148]
test eax, eax
je 0x431dc4
mov ecx, dword [ebp + 0x14c]
push 0
push ebx
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x431ee8
push ebx
mov ecx, edi
call fcn.00431850
add esp, 4
test eax, eax
jne 0x431ee8
lea edx, [esp + 0x10]
push edx
push 0x8004667e
mov esi, 1
push ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [edi + 0x50], esi
jne 0x431e57
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x431e73
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xb
je 0x431e61
cmp esi, 0x2732
jle 0x431e31
cmp esi, 0x2734
jle 0x431e61
push esi
push edi
call fcn.00428eb0
push eax
lea edx, [esp + 0xb8]
push edx
push str.Failed_to_connect_to__s:__s
push ebp
call fcn.00425ca0
add esp, 0x18
mov dword [ebp + 0x8464], esi
jmp 0x431e81
mov dword [esp + 0x10], 0
jmp 0x431e81
mov eax, dword [esp + 0x138]
mov ecx, ebx
call fcn.00431820
mov dword [esp + 0x10], eax
cmp eax, 1
jne 0x431e81
cmp dword [ebp + 0x418], 2
je 0x431eaf
push ebx
lea esi, [esp + 0x18]
call fcn.00431b50
mov ecx, dword [esp + 0x14]
add esp, 4
test ecx, ecx
jne 0x431eb3
test al, al
je 0x431ec8
mov eax, dword [esp + 0x18]
push str.connected_n
push ebp
mov byte [eax], 1
call fcn.00425c10
add esp, 8
mov eax, ebx
jmp 0x431ef2
cmp ecx, 1
jne 0x431ec8
push str.Timeout_n
push ebp
call fcn.00425c10
add esp, 8
jmp 0x431ee8
mov eax, dword [esp + 0x14]
push eax
push edi
mov dword [ebp + 0x8464], eax
call fcn.00428eb0
push eax
push 0x4dd030
push ebp
call fcn.00425c10
add esp, 0x14
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00497164
add esp, 0x120
ret