Function at 0x466300
Capabilities:
Connect socket

Disassembly:
sub esp, 0xb0
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xbc]
push ebx
push ebp
mov ebp, dword [esp + 0xbc]
push esi
push edi
mov edi, dword [ebp]
xor esi, esi
mov dword [eax], 0xffffffff
mov dword [esp + 0x24], edx
mov dword [edx], esi
push ebp
lea ebx, [esp + 0x18]
lea edx, [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], edi
call fcn.00466870
add esp, 4
cmp eax, esi
jne 0x46660a
lea esi, [ebp + 0x9e]
lea ebx, [ebp + 0xcc]
mov eax, esi
lea edi, [esp + 0x38]
call fcn.00465e80
test eax, eax
jne 0x4663a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebp
call fcn.0047be40
mov esi, dword [esp + 0x14]
add esp, 4
push eax
push edi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
call fcn.00475ac0
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x466601
lea eax, [ebp + 0x40]
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x10]
push eax
push str.__Trying__s..._n
mov esi, edi
call fcn.00475a40
add esp, 8
mov eax, ebp
call fcn.00465e30
cmp dword [edi + 0x314], 0
mov ebx, dword [esp + 0x14]
je 0x4663e5
mov edx, ebx
call fcn.00466240
mov esi, ebx
call fcn.004662a0
cmp dword [edi + 0x41c], 0
je 0x466404
mov eax, dword [esp + 0x10]
mov edi, ebx
call fcn.00465650
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x16c]
test eax, eax
je 0x46642e
mov ecx, dword [edi + 0x170]
push 0
push ebx
push ecx
call eax
add esp, 0xc
mov dword [esp + 0x18], eax
cmp eax, 2
jne 0x466454
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x28]
push edx
push ebx
mov ecx, ebp
call fcn.004659c0
mov esi, eax
add esp, 8
mov edx, ebx
test esi, esi
je 0x46646b
mov eax, ebp
call fcn.00466830
mov eax, esi
jmp 0x46660a
test eax, eax
je 0x46642e
mov edx, ebx
mov eax, ebp
call fcn.00466830
mov eax, 0x2a
jmp 0x46660a
push 1
call fcn.004746b0
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
jne 0x46652f
cmp dword [ebp + 0x74], 1
jne 0x46652f
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x4664b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x18], eax
call fcn.0047bf80
cmp dword [ebp + 0x230], 1
mov dword [ebp + 0x228], eax
mov dword [ebp + 0x22c], edx
jle 0x4664d8
mov eax, dword [ebp + 0x234]
mov ecx, edi
call fcn.004740c0
cmp esi, 0xffffffff
jne 0x4665ac
mov edi, dword [esp + 0x18]
cmp edi, 0xb
je 0x466587
cmp edi, 0x2732
jle 0x466502
cmp edi, 0x2734
jle 0x466587
push ebp
call fcn.0047be40
mov esi, dword [esp + 0x14]
add esp, 4
push eax
lea eax, [ebp + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
call fcn.00475ac0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 0x85d4], edx
mov edi, esi
jmp 0x46653b
mov dword [esp + 0x14], 0
test eax, eax
jne 0x466558
push ebx
lea esi, [esp + 0x1c]
call fcn.00465d30
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
jne 0x4665c2
test eax, eax
je 0x4665d8
mov ecx, dword [esp + 0x24]
push str.connected_n
mov esi, edi
mov dword [ecx], 1
call fcn.00475a40
add esp, 4
push ebp
mov ecx, ebx
call fcn.00465ed0
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [edx], ebx
jmp 0x466608
mov eax, dword [esp + 0xc8]
push ebp
mov edi, ebx
call fcn.00465950
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 3
je 0x466458
mov edi, dword [esp + 0x10]
mov esi, eax
cmp esi, 1
jne 0x46653b
cmp dword [edi + 0x588], 2
jne 0x46653b
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
jmp 0x466608
cmp ecx, 1
jne 0x4665d8
push str.Timeout_n
mov esi, edi
call fcn.00475a40
add esp, 4
jmp 0x4665ff
mov eax, dword [esp + 0x18]
mov dword [edi + 0x85d4], eax
push ebp
mov edi, eax
call fcn.0047be40
mov esi, dword [esp + 0x14]
add esp, 4
push eax
push 0x5d3afc
call fcn.00475a40
add esp, 8
mov edx, ebx
mov eax, ebp
call fcn.00466830
xor eax, eax
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a314d
add esp, 0xb0
ret