Function at 0x10008f27
Capabilities:
Connect socket

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xb8
mov eax, dword [0x1014c240]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
mov esi, dword [ebp + 0x74]
mov ebx, dword [esi]
or dword [eax], 0xffffffff
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
xor edi, edi
push edx
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ecx], edi
call fcn.10008e74
add esp, 0x10
cmp eax, edi
jne 0x10008fc2
lea ebx, [esi + 0x9e]
lea edi, [esi + 0xcc]
lea esi, [ebp - 0x18]
call fcn.10008bb3
test eax, eax
jne 0x10008fd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x40]
call fcn.1001cec6
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x38]
call fcn.1001795c
add esp, 0x18
xor esi, esi
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
call fcn.10008e37
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e200a
add ebp, 0x6c
leave
ret
mov edi, dword [ebp - 0x40]
push 0x2e
lea esi, [edi + 0x40]
push ebx
push esi
mov dword [ebp - 0x48], esi
call fcn.100e20b0
mov ebx, dword [ebp - 0x38]
push esi
push str.__Trying__s..._n
push ebx
call fcn.100178f2
push edi
call fcn.10008b61
add esp, 0x1c
cmp dword [ebx + 0x314], 0
je 0x10009010
push dword [ebp - 0x2c]
call fcn.10008d28
pop ecx
push dword [ebp - 0x2c]
call fcn.10008d7d
cmp dword [ebx + 0x41c], 0
pop ecx
je 0x1000902d
push dword [ebp - 0x2c]
mov esi, ebx
call fcn.1000868d
pop ecx
mov eax, dword [ebx + 0x16c]
test eax, eax
je 0x10009056
push 0
push dword [ebp - 0x2c]
push dword [ebx + 0x170]
call eax
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp eax, 2
jne 0x10009070
mov dword [ebp - 0x3c], 1
push dword [ebp - 0x28]
mov ebx, edi
push dword [ebp - 0x2c]
call fcn.100087c0
pop ecx
pop ecx
test eax, eax
je 0x1000907c
mov esi, eax
jmp 0x10008fb3
test eax, eax
je 0x10009056
push 0x2a
pop esi
jmp 0x10008fb3
mov edi, dword [ebp - 0x2c]
push 1
push edi
call fcn.100164f6
cmp dword [ebp - 0x3c], 0
pop ecx
pop ecx
mov esi, ebx
jne 0x100090e3
cmp dword [esi + 0x74], 1
jne 0x100090e3
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x100090b6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x34], eax
call fcn.1001d007
cmp dword [esi + 0x230], 1
mov ebx, dword [ebp - 0x38]
mov dword [esi + 0x228], eax
mov dword [esi + 0x22c], edx
jle 0x100090ea
push dword [esi + 0x234]
push ebx
call fcn.100149ca
pop ecx
pop ecx
jmp 0x100090ea
and dword [ebp - 0x30], 0
mov ebx, dword [ebp - 0x38]
cmp dword [ebp - 0x30], 0xffffffff
jne 0x10009187
mov eax, dword [ebp - 0x34]
cmp eax, 0xb
je 0x1000916e
cmp eax, 0x2732
jle 0x1000910a
cmp eax, 0x2734
jle 0x1000916e
push eax
push esi
call fcn.1001cec6
push eax
push dword [ebp - 0x48]
push str.Failed_to_connect_to__s:__s
push ebx
call fcn.1001795c
mov eax, dword [ebp - 0x34]
add esp, 0x18
mov dword [ebx + 0x859c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10009142
push edi
lea edi, [ebp - 0x34]
call fcn.10008b01
mov edi, dword [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x30], 0
jne 0x100091a2
cmp dword [ebp - 0x3c], 0
je 0x100091ba
mov eax, dword [ebp - 0x4c]
push str.connected_n
push ebx
mov dword [eax], 1
call fcn.100178f2
push edi
push esi
call fcn.10008bec
add esp, 0x10
jmp 0x10009196
push dword [ebp + 0x78]
push edi
push esi
call fcn.10008765
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp eax, 3
je 0x10009074
cmp dword [ebp - 0x30], 1
jne 0x1000912c
cmp dword [ebx + 0x550], 2
jne 0x1000912c
mov eax, dword [ebp - 0x44]
mov dword [eax], edi
xor eax, eax
jmp 0x10008fc2
cmp dword [ebp - 0x30], 1
jne 0x100091ba
push str.Timeout_n
push ebx
call fcn.100178f2
pop ecx
pop ecx
jmp 0x10008fb1
mov eax, dword [ebp - 0x34]
push eax
push esi
mov dword [ebx + 0x859c], eax
call fcn.1001cec6
push eax
push 0x10103680
push ebx
call fcn.100178f2
add esp, 0x14
jmp 0x10008fb1