Function at 0x485c70
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x600f84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
mov dword [ebp - 0xdc], edx
mov dword [edx], 0xffffffff
lea edx, [ebp - 0xcc]
push edx
lea edx, [ebp - 0xc4]
push edx
push eax
push ecx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xc8], esi
call fcn.00485ba0
add esp, 0x10
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x485cde
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea ebx, [ebp - 0xe0]
lea edi, [ebp - 0x34]
lea esi, [ebp - 0xb4]
call fcn.00485770
test eax, eax
jne 0x485d43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xd4]
mov esi, eax
push esi
push edi
call fcn.004887b0
push eax
mov eax, dword [ebp - 0xc8]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00484440
mov ecx, dword [ebp - 0xcc]
push ecx
push edi
call fcn.00485b40
add esp, 0x20
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc8]
lea edx, [ebp - 0x34]
push edx
push str.__Trying__s..._n
push esi
call fcn.004843c0
mov edi, dword [ebp - 0xcc]
add esp, 0xc
cmp dword [ebp - 0xc4], 2
jne 0x485d98
mov eax, 1
cmp dword [ebp - 0xc0], eax
jne 0x485d98
cmp dword [esi + 0x360], 0
mov dword [ebp - 0xcc], eax
je 0x485da2
mov ebx, dword [ebp - 0xd4]
push edi
push ebx
call fcn.004859b0
add esp, 8
jmp 0x485da8
mov dword [ebp - 0xcc], 0
mov ebx, dword [ebp - 0xd4]
push edi
call fcn.00485a10
add esp, 4
cmp dword [ebp - 0xcc], 0
je 0x485dc8
cmp dword [esi + 0x474], 0
je 0x485dc8
call fcn.00485080
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x485df0
mov ecx, dword [esi + 0x1b4]
push 0
push edi
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x485e44
mov dword [ebp - 0xd8], 1
cmp dword [ebp - 0xc4], 2
jne 0x485e68
lea edx, [ebp - 0xb4]
push edx
call fcn.00462490
push eax
mov eax, dword [ebp - 0xc4]
push eax
push edi
push ebx
call fcn.00485230
mov esi, eax
add esp, 0x14
test esi, esi
je 0x485e6e
push edi
push ebx
call fcn.00485b40
add esp, 8
cmp esi, 1
jne 0x485f94
pop edi
pop ebx
lea eax, [esi + 6]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x485df0
push edi
push ebx
call fcn.00485b40
add esp, 8
pop edi
pop ebx
mov eax, 0x2a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xd0]
push 1
push edi
call fcn.004a2020
add esp, 8
call fcn.00483f30
cmp dword [ebx + 0x2ac], 1
mov dword [ebx + 0x2a4], eax
mov dword [ebx + 0x2a8], edx
jle 0x485ea9
mov ecx, dword [ebx + 0x2b0]
mov edx, dword [ebp - 0xc8]
push ecx
push edx
call fcn.00483ea0
add esp, 8
cmp dword [ebp - 0xd8], 0
jne 0x485fa7
cmp dword [ebx + 0x8c], 1
jne 0x485fa7
cmp dword [ebx + 0x298], 0
jne 0x485eea
mov eax, dword [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xb4]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x485f88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0xb
je 0x485f5d
cmp esi, 0x2732
jle 0x485f07
cmp esi, 0x2734
jle 0x485f5d
push esi
push ebx
call fcn.004887b0
push eax
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0x34]
push edx
push str.Immediate_connect_fail_for__s:__s_n
push eax
call fcn.004843c0
mov ecx, dword [ebp - 0xc8]
push edi
push ebx
mov dword [ecx + 0x8628], esi
call fcn.00485b40
add esp, 0x20
mov dword [ebp - 0xd0], 7
mov esi, dword [ebp - 0xd0]
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0xd0], 0
mov esi, dword [ebp - 0xd0]
mov dword [edx], edi
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x485f94
mov edx, dword [ebp - 0xdc]
mov dword [edx], edi
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005521f1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
pop edi
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.005521f1
mov esp, ebp
pop ebp
ret