Function at 0x471aa0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
xor eax, eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xa4], edx
mov esi, dword [edi]
mov dword [edx], 0xffffffff
mov eax, dword [ecx + 4]
mov dword [ebp - 0x94], eax
mov eax, dword [edi + 0x74]
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x90], eax
cmp eax, 2
jne 0x471b0d
mov dword [ebp - 0x8c], 0x11
jmp 0x471b16
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ecx + 0x10]
mov edx, 0x80
cmp eax, edx
cmova eax, edx
push eax
push dword [ecx + 0x18]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
call fcn.00496490
mov dword [ebx], 0
add esp, 0xc
mov eax, dword [esi + 0x174]
test eax, eax
je 0x471b62
lea ecx, [ebp - 0x94]
push ecx
push 0
push dword [esi + 0x178]
call eax
add esp, 0xc
jmp 0x471b7a
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x471f23
movzx eax, word [ebp - 0x84]
lea ecx, [edi + 0x9e]
sub eax, 2
jne 0x471ec9
push 0x2e
push ecx
lea eax, [ebp - 0x80]
push eax
push 2
call fcn.00476040
add esp, 0x10
test eax, eax
je 0x471ec3
push dword [ebp - 0x82]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
lea edx, [edi + 0x40]
mov dword [edi + 0xcc], eax
movups xmm0, xmmword [edi + 0x9e]
mov eax, dword [edi + 0xc6]
push edx
movups xmmword [edx], xmm0
push str.__Trying__s...
movups xmm0, xmmword [edi + 0xae]
push esi
movups xmmword [edx + 0x10], xmm0
movq xmm0, qword [edi + 0xbe]
movq qword [edx + 0x20], xmm0
mov dword [edx + 0x28], eax
mov ax, word [edi + 0xca]
mov word [edx + 0x2c], ax
call fcn.00470a30
push edi
call fcn.004712f0
add esp, 0x10
cmp dword [esi + 0x314], 0
je 0x471c2a
push ebx
push edi
call fcn.00471f40
add esp, 8
push ebx
call fcn.004713b0
mov eax, dword [esi + 0x16c]
add esp, 4
test eax, eax
je 0x471c60
push 0
push ebx
push dword [esi + 0x170]
call eax
add esp, 0xc
mov dword [ebp - 0x9c], eax
cmp eax, 2
jne 0x471ca1
mov dword [ebp - 0x98], 1
push dword [ebp - 0x94]
push ebx
push edi
call fcn.00471660
add esp, 0xc
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x471ce2
mov ecx, dword [edi + 0x28]
push ebx
test ecx, ecx
je 0x471cc5
push dword [edi + 0x2c]
call ecx
mov eax, dword [ebp - 0xa0]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x471c60
push ebx
push edi
call fcn.004710b0
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0xa0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
push 1
push ebx
call fcn.004899b0
mov eax, dword [ebp - 0x98]
add esp, 8
test eax, eax
jne 0x471dea
cmp dword [edi + 0x74], 1
jne 0x471dea
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x98], eax
cmp eax, 0xffffffff
jne 0x471d30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x9c], eax
call fcn.00474630
cmp dword [edi + 0x208], 1
mov dword [edi + 0x200], eax
mov dword [edi + 0x204], edx
jle 0x471d59
push dword [edi + 0x20c]
push esi
call fcn.00475320
add esp, 8
mov eax, dword [ebp - 0x98]
cmp eax, 0xffffffff
jne 0x471dc1
mov eax, dword [ebp - 0x9c]
cmp eax, 0xb
je 0x471da5
cmp eax, 0x2732
jle 0x471d7d
cmp eax, 0x2734
jle 0x471da5
push eax
push edi
call fcn.00474b50
push eax
lea eax, [edi + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push esi
call fcn.00470960
mov eax, dword [ebp - 0x9c]
add esp, 0x18
mov dword [esi + 0x856c], eax
jmp 0x471df8
push dword [ebp + 0x10]
push ebx
push edi
call fcn.00472010
add esp, 0xc
mov dword [ebp - 0x98], eax
cmp eax, 3
je 0x471ca5
cmp eax, 1
jne 0x471df8
cmp dword [esi + 0x520], 2
jne 0x471df8
mov eax, dword [ebp - 0xa4]
pop edi
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x98], 0
test eax, eax
jne 0x471e18
lea eax, [ebp - 0x9c]
push eax
push ebx
call fcn.00471fa0
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x471e54
test ecx, ecx
je 0x471e84
mov eax, dword [ebp - 0xa8]
push str.connected_n
push esi
mov dword [eax], 1
call fcn.00470a30
push ebx
push edi
call fcn.004714d0
mov eax, dword [ebp - 0xa4]
add esp, 0x10
pop edi
mov dword [eax], ebx
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x471e84
push str.Timeout_n
push esi
call fcn.00470a30
add esp, 8
push ebx
push edi
call fcn.004710b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x9c]
push eax
push edi
mov dword [esi + 0x856c], eax
call fcn.00474b50
push eax
push 0x4c51b4
push esi
call fcn.00470a30
add esp, 0x14
push ebx
push edi
call fcn.004710b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x9e]
mov byte [ecx], 0
mov dword [edi + 0xcc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00474b50
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0xa0]
call fcn.00470960
mov eax, dword [edi + 0x28]
add esp, 0x18
push ebx
test eax, eax
je 0x471f1d
push dword [edi + 0x2c]
call eax
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret