Function at 0x484dd0
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.00484cf0
add esp, 0x10
test eax, eax
je 0x484e3c
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004b303a
add esp, 0xa0
ret
movzx eax, word [esp + 0x28]
sub eax, 2
push esi
lea esi, [ebp + 0x9e]
jne 0x484f32
push 0x2e
push esi
lea eax, [esp + 0x38]
push eax
push 2
call fcn.0048c370
add esp, 0x10
test eax, eax
je 0x484f32
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.00482dd0
push ebp
call fcn.00484840
mov esi, dword [esp + 0x20]
add esp, 0x10
cmp dword [ebx + 0x314], 0
je 0x484eb8
mov edx, esi
mov edi, ebp
call fcn.00484a90
push esi
call fcn.00484af0
add esp, 4
cmp dword [ebx + 0x408], 0
je 0x484ed7
mov edi, esi
mov esi, ebx
call fcn.00484210
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x16c]
test eax, eax
je 0x484f01
mov edx, dword [ebx + 0x170]
push 0
push esi
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0x484f96
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
push eax
push esi
push ebp
call fcn.004843d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x484fb2
push esi
push ebp
call fcn.00484ca0
add esp, 8
lea eax, [edi - 1]
neg eax
sbb eax, eax
and eax, edi
jmp 0x48506a
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.004a0630
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00482e60
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x28]
add esp, 0x18
cmp eax, edi
je 0x484f7b
cmp ecx, dword [ebp + 0x134]
jne 0x484f87
cmp dword [ebp + 0x13c], edi
je 0x484f87
mov dword [ebp + 0x13c], edi
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x485068
push ecx
mov ecx, dword [ebp + 0x2c]
push ecx
call eax
add esp, 8
jmp 0x485068
test eax, eax
je 0x484f01
push esi
push ebp
call fcn.00484ca0
add esp, 8
mov eax, 0x2a
jmp 0x48506a
mov edi, 1
push edi
push esi
call fcn.004a0820
add esp, 8
call fcn.00482900
mov dword [ebp + 0x204], eax
mov dword [ebp + 0x208], edx
cmp dword [ebp + 0x20c], edi
jle 0x484fea
mov ecx, dword [ebp + 0x210]
push ecx
push ebx
call fcn.00474950
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x485062
cmp dword [ebp + 0x74], edi
jne 0x485062
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 0x48505a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x485052
cmp edi, 0x2732
jle 0x485029
cmp edi, 0x2734
jle 0x485052
push edi
push ebp
call fcn.004a0630
push eax
lea eax, [ebp + 0x40]
push eax
push str.Failed_to_connect_to__s:__s
push ebx
call fcn.00482e60
push esi
push ebp
mov dword [ebx + 0x858c], edi
call fcn.00484ca0
add esp, 0x20
jmp 0x485068
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
jmp 0x485068
mov edx, dword [esp + 0x14]
mov dword [edx], esi
jmp 0x485068
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.004b303a
add esp, 0xa0
ret