Function at 0xb78dc0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [str.g.0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
mov dword [edx], 0xffffffff
mov dword [ecx], 0
lea ecx, [ebp - 0x9c]
push ecx
mov dword [ebp - 0xa4], edx
lea edx, [ebp - 0x94]
push edx
push eax
push esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x98], edi
call fcn.00b78d00
add esp, 0x10
test eax, eax
je 0xb78e33
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00ba2239
mov esp, ebp
pop ebp
ret
push ebx
lea edi, [esi + 0x9e]
lea ebx, [esi + 0xcc]
lea esi, [ebp - 0x84]
call fcn.00b78940
test eax, eax
jne 0xb78e9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xa8]
mov esi, eax
push esi
push edi
call fcn.00b7b3e0
push eax
mov eax, dword [ebp - 0x98]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00b76730
mov ecx, dword [ebp - 0x9c]
push ecx
push edi
call fcn.00b78cb0
add esp, 0x20
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00ba2239
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xa8]
lea eax, [ebx + 0x40]
mov esi, edi
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0x98]
push str.__Trying__s..._n
push edi
call fcn.00b766b0
push ebx
call fcn.00b788e0
mov esi, dword [ebp - 0x9c]
add esp, 0x10
cmp dword [edi + 0x314], 0
je 0xb78ee9
mov edx, esi
mov edi, ebx
call fcn.00b78b40
mov edi, dword [ebp - 0x98]
push esi
call fcn.00b78ba0
add esp, 4
cmp dword [edi + 0x408], 0
je 0xb78f06
mov edi, dword [ebp - 0x98]
call fcn.00b78330
mov eax, dword [edi + 0x16c]
test eax, eax
je 0xb78f2e
mov edx, dword [edi + 0x170]
push 0
push esi
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0xb78f69
mov dword [ebp - 0xa0], 1
mov ecx, dword [ebp - 0x94]
push esi
push ebx
call fcn.00b78450
add esp, 8
mov dword [ebp - 0x9c], eax
test eax, eax
je 0xb78f8d
push esi
push ebx
call fcn.00b78cb0
mov eax, dword [ebp - 0x9c]
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00ba2239
mov esp, ebp
pop ebp
ret
test eax, eax
je 0xb78f2e
push esi
push ebx
call fcn.00b78cb0
add esp, 8
pop ebx
pop edi
mov eax, 0x2a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00ba2239
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.00b859b0
add esp, 8
call fcn.00b7b4c0
cmp dword [ebx + 0x20c], 1
mov dword [ebx + 0x204], eax
mov dword [ebx + 0x208], edx
jle 0xb78fc2
mov eax, dword [ebx + 0x210]
push eax
push edi
call fcn.00b74b90
add esp, 8
cmp dword [ebp - 0xa0], 0
jne 0xb79088
cmp dword [ebx + 0x74], 1
jne 0xb79088
mov ecx, dword [ebp - 0x88]
push ecx
lea edx, [ebp - 0x84]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0xb7906d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xa0], eax
cmp eax, 0xb
je 0xb79052
cmp eax, 0x2732
jle 0xb79012
cmp eax, 0x2734
jle 0xb79052
push eax
push ebx
call fcn.00b7b3e0
push eax
lea eax, [ebx + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push edi
call fcn.00b76730
mov eax, dword [ebp - 0xa0]
push esi
push ebx
mov dword [edi + 0x8594], eax
call fcn.00b78cb0
add esp, 0x20
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00ba2239
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xa4]
pop ebx
pop edi
mov dword [ecx], esi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00ba2239
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xa4]
pop ebx
pop edi
mov dword [edx], esi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00ba2239
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 4]
pop ebx
mov dword [eax], esi
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00ba2239
mov esp, ebp
pop ebp
ret