Function at 0x484cf0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xa0
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebx
push ebp
mov ebp, dword [esp + 0xac]
mov ebx, dword [ebp]
push edi
xor edi, edi
mov dword [edx], 0xffffffff
mov dword [ecx], edi
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
mov dword [esp + 0x24], edi
call fcn.00484c10
add esp, 0x10
test eax, eax
je 0x484d5c
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0xa0
ret
movzx eax, word [esp + 0x28]
sub eax, 2
push esi
lea esi, [ebp + 0x9e]
jne 0x484e52
push 0x2e
push esi
lea eax, [esp + 0x38]
push eax
push 2
call fcn.0048c290
add esp, 0x10
test eax, eax
je 0x484e52
mov ecx, dword [esp + 0x2e]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea eax, [ebp + 0x40]
mov dword [ebp + 0xcc], edx
mov edi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
push eax
push str.__Trying__s..._n
push ebx
movsw word es:[edi], word [esi]
call fcn.00482cf0
push ebp
call fcn.00484760
mov esi, dword [esp + 0x20]
add esp, 0x10
cmp dword [ebx + 0x314], 0
je 0x484dd8
mov edx, esi
mov edi, ebp
call fcn.004849b0
push esi
call fcn.00484a10
add esp, 4
cmp dword [ebx + 0x408], 0
je 0x484df7
mov edi, esi
mov esi, ebx
call fcn.00484130
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x16c]
test eax, eax
je 0x484e21
mov edx, dword [ebx + 0x170]
push 0
push esi
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0x484eb6
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
push eax
push esi
push ebp
call fcn.004842f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x484ed2
push esi
push ebp
call fcn.00484bc0
add esp, 8
lea eax, [edi - 1]
neg eax
sbb eax, eax
and eax, edi
jmp 0x484f8a
mov byte [esi], 0
mov dword [ebp + 0xcc], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004a0550
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00482d80
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x28]
add esp, 0x18
cmp eax, edi
je 0x484e9b
cmp ecx, dword [ebp + 0x134]
jne 0x484ea7
cmp dword [ebp + 0x13c], edi
je 0x484ea7
mov dword [ebp + 0x13c], edi
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x484f88
push ecx
mov ecx, dword [ebp + 0x2c]
push ecx
call eax
add esp, 8
jmp 0x484f88
test eax, eax
je 0x484e21
push esi
push ebp
call fcn.00484bc0
add esp, 8
mov eax, 0x2a
jmp 0x484f8a
mov edi, 1
push edi
push esi
call fcn.004a0740
add esp, 8
call fcn.00482820
mov dword [ebp + 0x204], eax
mov dword [ebp + 0x208], edx
cmp dword [ebp + 0x20c], edi
jle 0x484f0a
mov ecx, dword [ebp + 0x210]
push ecx
push ebx
call fcn.00474870
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x484f82
cmp dword [ebp + 0x74], edi
jne 0x484f82
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x484f7a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x484f72
cmp edi, 0x2732
jle 0x484f49
cmp edi, 0x2734
jle 0x484f72
push edi
push ebp
call fcn.004a0550
push eax
lea eax, [ebp + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push ebx
call fcn.00482d80
push esi
push ebp
mov dword [ebx + 0x858c], edi
call fcn.00484bc0
add esp, 0x20
jmp 0x484f88
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
jmp 0x484f88
mov edx, dword [esp + 0x14]
mov dword [edx], esi
jmp 0x484f88
mov eax, dword [esp + 0x14]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [esp + 0xac]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b2f5a
add esp, 0xa0
ret