Function at 0x10027420
Capabilities:
Connect socket

Disassembly:
sub esp, 0xa0
mov eax, dword [0x100810f0]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa4]
push ebp
mov ebp, dword [ebx]
push edi
xor edi, edi
mov dword [edx], 0xffffffff
mov dword [ecx], edi
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], edx
lea edx, [esp + 0x18]
push edx
push eax
push ebx
mov dword [esp + 0x20], edi
call fcn.10027340
add esp, 0x10
test eax, eax
je 0x10027482
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1004ea1f
add esp, 0xa0
ret
movzx eax, word [esp + 0x24]
sub eax, 2
push esi
lea esi, [ebx + 0x9e]
jne 0x1002757a
push 0x2e
push esi
lea eax, [esp + 0x34]
push eax
push 2
call fcn.1002a6d0
add esp, 0x10
test eax, eax
je 0x1002757a
mov ecx, dword [esp + 0x2a]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea eax, [ebx + 0x40]
mov dword [ebx + 0xcc], edx
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
push str.__Trying__s..._n
push ebp
movsw word es:[edi], word [esi]
call fcn.10025340
push ebx
call fcn.10026f70
mov esi, dword [esp + 0x20]
add esp, 0x10
cmp dword [ebp + 0x34c], 0
je 0x100274fe
mov edx, esi
mov edi, ebx
call fcn.10027170
push esi
call fcn.100271d0
add esp, 4
cmp dword [ebp + 0x440], 0
je 0x10027517
mov edi, ebp
call fcn.10026a30
mov eax, dword [ebp + 0x1a4]
test eax, eax
je 0x1002753d
mov ecx, dword [ebp + 0x1a8]
push 0
push esi
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x100275b2
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x18]
push edx
push esi
push ebx
call fcn.10026b30
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100275dd
push esi
push ebx
call fcn.100272f0
add esp, 8
pop esi
mov eax, edi
pop edi
pop ebp
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1004ea1f
add esp, 0xa0
ret
mov byte [esi], 0
mov dword [ebx + 0xcc], edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.10029e00
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.100253d0
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.100272f0
add esp, 0x20
jmp 0x10027693
test eax, eax
je 0x1002753d
push esi
push ebx
call fcn.100272f0
add esp, 8
pop esi
pop edi
mov eax, 0x2a
pop ebp
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1004ea1f
add esp, 0xa0
ret
mov edi, 1
push edi
push esi
call fcn.10042a90
add esp, 8
call fcn.10029ee0
cmp dword [ebx + 0x20c], edi
mov dword [ebx + 0x204], eax
mov dword [ebx + 0x208], edx
jle 0x10027615
mov eax, dword [ebx + 0x210]
push eax
push ebp
call fcn.10023700
add esp, 8
cmp dword [esp + 0x14], 0
jne 0x1002768d
cmp dword [ebx + 0x74], edi
jne 0x1002768d
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10027685
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x1002767d
cmp edi, 0x2732
jle 0x10027654
cmp edi, 0x2734
jle 0x1002767d
push edi
push ebx
call fcn.10029e00
push eax
lea eax, [ebx + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push ebp
call fcn.100253d0
push esi
push ebx
mov dword [ebp + 0x85cc], edi
call fcn.100272f0
add esp, 0x20
jmp 0x10027693
mov eax, dword [esp + 0xc]
mov dword [eax], esi
jmp 0x10027693
mov ecx, dword [esp + 0xc]
mov dword [ecx], esi
jmp 0x10027693
mov edx, dword [esp + 0xc]
mov dword [edx], esi
mov ecx, dword [esp + 0xa8]
pop esi
pop edi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.1004ea1f
add esp, 0xa0
ret