Function at 0x432290
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0x120
mov eax, dword [0x52d4d0]
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 0x4322de
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.004a7d10
mov eax, dword [ebp + 0x150]
add esp, 0xc
test eax, eax
je 0x432313
mov edx, dword [ebp + 0x154]
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
call eax
add esp, 0xc
jmp 0x432328
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 0x4324cf
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.00438820
add esp, 0x10
test eax, eax
je 0x43236f
lea eax, [esp + 0xac]
push eax
push str.__Trying__s...
push ebp
call fcn.004261e0
add esp, 0xc
cmp byte [ebp + 0x272], 0
je 0x43237f
mov edx, ebx
call fcn.00432230
mov eax, dword [ebp + 0x148]
test eax, eax
je 0x4323a4
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 0x4324c8
push ebx
mov ecx, edi
call fcn.00431e30
add esp, 4
test eax, eax
jne 0x4324c8
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 0x432437
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 0x432453
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xb
je 0x432441
cmp esi, 0x2732
jle 0x432411
cmp esi, 0x2734
jle 0x432441
push esi
push edi
call fcn.00429480
push eax
lea edx, [esp + 0xb8]
push edx
push str.Failed_to_connect_to__s:__s
push ebp
call fcn.00426270
add esp, 0x18
mov dword [ebp + 0x8464], esi
jmp 0x432461
mov dword [esp + 0x10], 0
jmp 0x432461
mov eax, dword [esp + 0x138]
mov ecx, ebx
call fcn.00431e00
mov dword [esp + 0x10], eax
cmp eax, 1
jne 0x432461
cmp dword [ebp + 0x418], 2
je 0x43248f
push ebx
lea esi, [esp + 0x18]
call fcn.00432130
mov ecx, dword [esp + 0x14]
add esp, 4
test ecx, ecx
jne 0x432493
test al, al
je 0x4324a8
mov eax, dword [esp + 0x18]
push str.connected_n
push ebp
mov byte [eax], 1
call fcn.004261e0
add esp, 8
mov eax, ebx
jmp 0x4324d2
cmp ecx, 1
jne 0x4324a8
push str.Timeout_n
push ebp
call fcn.004261e0
add esp, 8
jmp 0x4324c8
mov eax, dword [esp + 0x14]
push eax
push edi
mov dword [ebp + 0x8464], eax
call fcn.00429480
push eax
push 0x4ee150
push ebp
call fcn.004261e0
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.004a58c9
add esp, 0x120
ret