Function at 0x430d97
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x498d74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x124], ecx
mov ecx, dword [eax + 4]
push esi
push edi
mov edi, edx
mov ebx, dword [edi]
mov dword [ebp - 0x114], ecx
mov ecx, dword [edi + 0x80]
mov dword [ebp - 0x110], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10c], ecx
mov ecx, dword [eax + 0x10]
mov esi, 0x80
mov dword [ebp - 0x108], ecx
cmp ecx, esi
jbe 0x430df0
mov dword [ebp - 0x108], esi
push dword [ebp - 0x108]
push dword [eax + 0x18]
lea eax, [ebp - 0x104]
push eax
call fcn.00444920
mov eax, dword [ebp - 0x124]
mov byte [eax], 0
mov eax, dword [ebx + 0x150]
add esp, 0xc
test eax, eax
je 0x430e31
lea ecx, [ebp - 0x114]
push ecx
push 0
push dword [ebx + 0x154]
call eax
add esp, 0xc
jmp 0x430e49
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push dword [ebp - 0x114]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x118], eax
or eax, 0xffffffff
cmp dword [ebp - 0x118], eax
je 0x43104e
push esi
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp - 0x114]
call fcn.0043237d
add esp, 0x10
test eax, eax
je 0x430eb8
lea eax, [ebp - 0x84]
push eax
push str.__Trying__s...
push ebx
call fcn.0043052e
lea eax, [ebp - 0x84]
push eax
push 0x47eb8c
lea esi, [ebx + 0x8590]
push 0x2e
push esi
call fcn.004317b4
lea eax, [edi + 0x3c]
push esi
push eax
call fcn.0044af70
add esp, 0x24
cmp byte [ebx + 0x286], 0
je 0x430ecd
push dword [ebp - 0x118]
call fcn.00430d1b
pop ecx
mov esi, dword [ebp - 0x118]
push esi
call fcn.00430d71
mov eax, dword [ebx + 0x148]
pop ecx
test eax, eax
je 0x430f02
push 0
push esi
push dword [ebx + 0x14c]
call eax
add esp, 0xc
mov dword [ebp - 0x120], eax
test eax, eax
je 0x430f02
push esi
jmp 0x431045
mov ecx, dword [ebp - 0x114]
push esi
push edi
call fcn.0043098e
pop ecx
pop ecx
test eax, eax
jne 0x430efc
push 1
push esi
call fcn.00440cb7
cmp dword [edi + 0x80], 1
pop ecx
pop ecx
jne 0x430f44
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x11c], eax
jmp 0x430f4b
and dword [ebp - 0x11c], 0
cmp dword [ebp - 0x11c], 0xffffffff
jne 0x430feb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [ebp - 0x120], esi
cmp esi, 0xb
je 0x430fd5
cmp esi, 0x2732
jle 0x430f7b
cmp esi, 0x2734
jle 0x430fd5
push esi
push edi
call fcn.00440a93
push eax
lea eax, [ebp - 0x84]
push eax
push str.Failed_to_connect_to__s:__s
push ebx
call fcn.00430598
add esp, 0x18
mov dword [ebx + 0x8494], esi
push dword [ebp - 0x118]
lea esi, [ebp - 0x120]
call fcn.00430cbc
cmp dword [ebp - 0x11c], 0
pop ecx
jne 0x431005
test al, al
je 0x43101d
mov eax, dword [ebp - 0x124]
push str.connected_n
push ebx
mov byte [eax], 1
call fcn.0043052e
pop ecx
pop ecx
jmp 0x430ffd
push dword [ebp + 0xc]
push dword [ebp - 0x118]
call fcn.00430961
pop ecx
pop ecx
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 1
jne 0x430f9e
cmp dword [ebx + 0x448], 2
jne 0x430f9e
mov eax, dword [ebp - 0x118]
jmp 0x43104e
cmp dword [ebp - 0x11c], 1
jne 0x43101d
push str.Timeout_n
push ebx
call fcn.0043052e
pop ecx
pop ecx
jmp 0x43103f
mov eax, dword [ebp - 0x120]
push eax
push edi
mov dword [ebx + 0x8494], eax
call fcn.00440a93
push eax
push 0x4827e4
push ebx
call fcn.0043052e
add esp, 0x14
push dword [ebp - 0x118]
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044249e
leave
ret