Function at 0x4dfdb0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xa0], 0
mov ebx, dword [edi]
mov dword [edx], 0xffffffff
mov dword [eax], 0
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x94]
push eax
push ecx
push edi
call fcn.004df5a0
add esp, 0x10
test eax, eax
je 0x4dfe1d
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp - 0x84]
push esi
lea esi, [edi + 0x9e]
sub eax, 2
jne 0x4e0035
push 0x2e
push esi
lea eax, [ebp - 0x80]
push eax
push 2
call fcn.004eaab0
add esp, 0x10
test eax, eax
je 0x4e0035
push dword [ebp - 0x82]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
lea ecx, [edi + 0x40]
mov dword [edi + 0xcc], eax
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
push ecx
movdqu xmmword [ecx], xmm0
push str.__Trying__s..._n
movdqu xmm0, xmmword [esi + 0x10]
push ebx
movdqu xmmword [ecx + 0x10], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ecx + 0x20], xmm0
mov dword [ecx + 0x28], eax
mov ax, word [esi + 0x2c]
mov word [ecx + 0x2c], ax
call fcn.004de870
push edi
call fcn.004df480
mov esi, dword [ebp - 0x98]
add esp, 0x10
cmp dword [ebx + 0x354], 0
je 0x4dfebd
push esi
push edi
call fcn.004e0110
add esp, 8
push esi
call fcn.004df540
add esp, 4
cmp dword [ebx + 0x450], 0
je 0x4dfed9
push esi
push ebx
call fcn.004e00c0
add esp, 8
mov eax, dword [ebx + 0x1a4]
test eax, eax
je 0x4dff00
push 0
push esi
push dword [ebx + 0x1a8]
call eax
add esp, 0xc
cmp eax, 2
jne 0x4dff3b
mov dword [ebp - 0xa0], 1
push dword [ebp - 0x94]
push esi
push edi
call fcn.004df8c0
add esp, 0xc
mov dword [ebp - 0x98], eax
test eax, eax
je 0x4dff5f
push esi
push edi
call fcn.004def30
mov eax, dword [ebp - 0x98]
add esp, 8
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4dff00
push esi
push edi
call fcn.004def30
add esp, 8
mov eax, 0x2a
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.004febb0
add esp, 8
call fcn.004d5e20
cmp dword [edi + 0x238], 1
mov dword [edi + 0x230], eax
mov dword [edi + 0x234], edx
jle 0x4dff93
push dword [edi + 0x23c]
push ebx
call fcn.004d2150
add esp, 8
cmp dword [ebp - 0xa0], 0
jne 0x4e001a
cmp dword [edi + 0x74], 1
jne 0x4e001a
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4e001a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x98], eax
cmp eax, 0xb
je 0x4e001a
cmp eax, 0x2732
jle 0x4dffda
cmp eax, 0x2734
jle 0x4e001a
push eax
push edi
call fcn.004ea250
push eax
lea eax, [edi + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push ebx
call fcn.004de760
mov eax, dword [ebp - 0x98]
push esi
push edi
mov dword [ebx + 0x45dc], eax
call fcn.004def30
add esp, 0x20
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x9c]
mov dword [eax], esi
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
mov byte [esi], 0
mov dword [edi + 0xcc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004ea250
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004de760
mov ecx, dword [edi + 0x28]
add esp, 0x18
mov eax, dword [ebp - 0x98]
test ecx, ecx
je 0x4e0089
cmp eax, dword [edi + 0x138]
jne 0x4e00a3
cmp dword [edi + 0x140], 0
je 0x4e00a3
mov dword [edi + 0x140], 0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
push eax
push dword [edi + 0x2c]
call ecx
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop esi
pop edi
pop ebx
call fcn.0049355b
mov esp, ebp
pop ebp
ret