Function at 0x9a9500
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0xa21230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x1d4], ecx
mov dword [ebx + ecx*4 + 0x150], 0xffffffff
mov esi, edx
lea ecx, [ebp - 0x1cc]
push ecx
lea edx, [ebp - 0x1c4]
push edx
push eax
xor edi, edi
push esi
mov dword [ebp - 0x1d8], edi
call fcn.009a9340
add esp, 0x10
mov dword [ebp - 0x1d0], eax
cmp eax, edi
jne 0x9a98b2
mov edx, dword [ebp - 0x1b8]
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x34]
push ecx
push edx
lea eax, [ebp - 0x1b4]
push eax
call fcn.009a8ce0
add esp, 0x10
test eax, eax
jne 0x9a95dc
call fcn.00984205
mov edi, eax
call fcn.00984205
mov edx, dword [edi]
push 0x100
lea ecx, [ebp - 0x134]
push ecx
push edx
mov dword [ebp - 0x1d4], eax
call fcn.009d2890
push eax
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [eax]
push ecx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.009a2680
mov edx, dword [ebp - 0x1cc]
push edx
push ebx
push esi
call fcn.009a92c0
add esp, 0x28
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009861d0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x34]
push ecx
push str.__Trying__s:_d...
push esi
call fcn.009a2610
add esp, 0x10
cmp dword [ebp - 0x1c4], 2
jne 0x9a9628
mov eax, 1
cmp dword [ebp - 0x1c0], eax
jne 0x9a9628
mov dword [ebp - 0x1c8], eax
cmp dword [esi + 0x7f4], edi
je 0x9a962e
mov edi, dword [ebp - 0x1cc]
mov ecx, edi
call fcn.009a9160
jmp 0x9a9634
mov dword [ebp - 0x1c8], edi
mov edi, dword [ebp - 0x1cc]
push edi
call fcn.009a91d0
add esp, 4
cmp dword [ebp - 0x1c8], 0
je 0x9a965a
cmp dword [esi + 0x818], 0
je 0x9a965a
call fcn.009a8490
mov edi, dword [ebp - 0x1cc]
cmp dword [esi + 0x1d8], 0
je 0x9a96a3
push 1
push esi
call fcn.009a01b0
mov edx, dword [esi + 0x1dc]
mov eax, dword [esi + 0x1d8]
push 0
push edi
push edx
call eax
push 0
push esi
mov dword [ebp - 0x1c8], eax
call fcn.009a01b0
mov eax, dword [ebp - 0x1c8]
add esp, 0x1c
cmp eax, 2
jne 0x9a96f8
mov dword [ebp - 0x1d8], 1
cmp dword [ebp - 0x1c4], 2
jne 0x9a9722
push 2
push edi
mov edi, esi
call fcn.009a8720
add esp, 8
mov dword [ebp - 0x1d0], eax
test eax, eax
je 0x9a971c
mov ecx, dword [ebp - 0x1cc]
push ecx
push ebx
push esi
call fcn.009a92c0
mov eax, dword [ebp - 0x1d0]
add esp, 0xc
cmp eax, 1
jne 0x9a98b2
pop edi
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009861d0
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x9a96a3
push edi
push ebx
push esi
call fcn.009a92c0
add esp, 0xc
pop edi
mov eax, 0x2a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009861d0
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1cc]
push 1
push edi
call fcn.009d4de0
lea edx, [ebp - 0x1e8]
push edx
call fcn.009add70
mov ecx, dword [eax]
mov dword [ebx + 0x318], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x31c], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x320], ecx
mov edx, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x314], 1
mov dword [ebx + 0x324], edx
jle 0x9a9794
mov eax, dword [ebx + 0x32c]
mov ecx, dword [ebx + 0x328]
push 3
push eax
push ecx
push esi
call fcn.0099ff10
mov edx, dword [ebx + 0x334]
mov eax, dword [ebx + 0x330]
push 4
push edx
push eax
push esi
call fcn.0099ff10
add esp, 0x20
cmp dword [ebp - 0x1d8], 0
jne 0x9a98a3
cmp dword [ebx + 0x54], 4
je 0x9a98a3
cmp dword [ebx + 0x2f0], 0
jne 0x9a97d2
mov ecx, dword [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0x1b4]
push edx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x9a9877
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c8], eax
cmp eax, 0xb
je 0x9a984a
cmp eax, 0x2732
jle 0x9a97f1
cmp eax, 0x2734
jle 0x9a984a
push 0x100
lea ecx, [ebp - 0x134]
push ecx
push eax
call fcn.009d2890
push eax
lea edx, [ebp - 0x34]
push edx
push str.Immediate_connect_fail_for__s:__s
push esi
call fcn.009a2610
mov eax, dword [ebp - 0x1c8]
push edi
push ebx
push esi
mov dword [esi + 0xa98], eax
call fcn.009a92c0
add esp, 0x28
mov dword [ebp - 0x1d0], 7
mov eax, dword [ebp - 0x1d0]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009861d0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1d4]
mov dword [ebx + ecx*4 + 0x150], edi
mov dword [ebp - 0x1d0], 0
mov eax, dword [ebp - 0x1d0]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009861d0
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1d0], 0
jne 0x9a988d
mov ecx, dword [ebp - 0x1d4]
mov dword [ebx + ecx*4 + 0x150], edi
mov eax, dword [ebp - 0x1d0]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009861d0
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1d4]
mov dword [ebx + edx*4 + 0x150], edi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.009861d0
mov esp, ebp
pop ebp
ret