Function at 0x4d75a0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x55c380]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xa4], edx
mov ebx, dword [edi]
mov dword [edx], 0xffffffff
mov dword [esi], ecx
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xa8], esi
push ecx
push eax
push edi
call fcn.004d6dc0
add esp, 0x10
test eax, eax
jne 0x4d78ac
lea eax, [edi + 0xcc]
push eax
lea esi, [edi + 0x9e]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004d7540
add esp, 0xc
test eax, eax
jne 0x4d7665
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004d8eb0
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004d6290
push dword [ebp - 0x98]
push edi
call fcn.004d6880
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
lea ecx, [edi + 0x40]
push ecx
movups xmmword [ecx], xmm0
push str.__Trying__s..._n
movups xmm0, xmmword [esi + 0x10]
push ebx
movups 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.004d6330
push edi
call fcn.004d6ca0
mov esi, dword [ebp - 0x98]
add esp, 0x10
cmp dword [ebx + 0x314], 0
je 0x4d76bc
push esi
push edi
call fcn.004d7980
add esp, 8
push esi
call fcn.004d6d60
add esp, 4
cmp dword [ebx + 0x408], 0
je 0x4d76d8
push esi
push ebx
call fcn.004d7930
add esp, 8
mov eax, dword [ebx + 0x16c]
test eax, eax
je 0x4d7705
push 0
push esi
push dword [ebx + 0x170]
call eax
add esp, 0xc
mov dword [ebp - 0x9c], eax
cmp eax, 2
jne 0x4d7740
mov dword [ebp - 0xa0], 1
push dword [ebp - 0x94]
push esi
push edi
call fcn.004d70d0
add esp, 0xc
mov dword [ebp - 0x98], eax
test eax, eax
je 0x4d7764
push esi
push edi
call fcn.004d6880
mov eax, dword [ebp - 0x98]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4d7705
push esi
push edi
call fcn.004d6880
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.004efdf0
mov eax, dword [ebp - 0xa0]
add esp, 8
test eax, eax
jne 0x4d7855
cmp dword [edi + 0x74], 1
jne 0x4d7855
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x98], eax
cmp eax, 0xffffffff
jne 0x4d77b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x9c], ecx
call fcn.004d8990
cmp dword [edi + 0x20c], 1
mov dword [edi + 0x204], eax
mov dword [edi + 0x208], edx
jle 0x4d77dd
push dword [edi + 0x210]
push ebx
call fcn.004d9690
add esp, 8
mov eax, dword [ebp - 0x98]
cmp eax, 0xffffffff
jne 0x4d7845
mov eax, dword [ebp - 0x9c]
cmp eax, 0xb
je 0x4d7829
cmp eax, 0x2732
jle 0x4d7801
cmp eax, 0x2734
jle 0x4d7829
push eax
push edi
call fcn.004d8eb0
push eax
lea eax, [edi + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push ebx
call fcn.004d6290
mov ecx, dword [ebp - 0x9c]
add esp, 0x18
mov dword [ebx + 0x858c], ecx
jmp 0x4d7863
push dword [ebp + 0x10]
push esi
push edi
call fcn.004d7b00
add esp, 0xc
mov dword [ebp - 0x98], eax
cmp eax, 3
je 0x4d7744
cmp eax, 1
jne 0x4d7863
cmp dword [ebx + 0x540], 2
jne 0x4d7863
jmp 0x4d78a4
mov dword [ebp - 0x98], 0
test eax, eax
jne 0x4d7883
lea eax, [ebp - 0x9c]
push eax
push esi
call fcn.004d7a90
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x4d78bf
test ecx, ecx
je 0x4d78ef
mov eax, dword [ebp - 0xa8]
push str.connected_n
push ebx
mov dword [eax], 1
call fcn.004d6330
push esi
push edi
call fcn.004d6f40
add esp, 0x10
mov eax, dword [ebp - 0xa4]
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4d78ef
push str.Timeout_n
push ebx
call fcn.004d6330
add esp, 8
push esi
push edi
call fcn.004d6880
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x9c]
push eax
push edi
mov dword [ebx + 0x858c], eax
call fcn.004d8eb0
push eax
push 0x530694
push ebx
call fcn.004d6330
add esp, 0x14
push esi
push edi
call fcn.004d6880
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004f5c8b
mov esp, ebp
pop ebp
ret