Function at 0x48b510
Capabilities:
Connect socket

Disassembly:
sub esp, 0xdc
mov eax, dword [0x4e0490]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xe4]
push ebp
mov ebp, dword [esp + 0xe4]
mov edx, dword [ebp]
mov dword [esp + 0x14], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x20]
push edx
push eax
push ebp
mov dword [esp + 0x1c], 0
call fcn.0048b430
add esp, 0x10
mov dword [esp + 4], eax
test eax, eax
je 0x48b580
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0044bc4c
add esp, 0xdc
ret
push ebx
push esi
push edi
lea ebx, [esp + 0x24]
lea edi, [esp + 0xb8]
lea esi, [esp + 0x38]
call fcn.0048afa0
test eax, eax
jne 0x48b5ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0047a8f0
push eax
mov eax, dword [esp + 0x28]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.004889e0
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
call fcn.0048b3d0
add esp, 0x20
jmp 0x48b7b2
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0xb8]
push edx
push str.__Trying__s..._n
push esi
call fcn.00488950
mov ebx, dword [esp + 0x20]
add esp, 0xc
cmp dword [esp + 0x28], 2
jne 0x48b6a4
mov eax, 1
cmp dword [esp + 0x2c], eax
jne 0x48b6a4
cmp dword [esi + 0x364], 0
mov dword [esp + 0x14], eax
je 0x48b61c
mov edx, ebx
mov edi, ebp
call fcn.0048b170
push ebx
call fcn.0048b1d0
add esp, 4
cmp dword [esp + 0x14], 0
je 0x48b63c
cmp dword [esi + 0x480], 0
je 0x48b63c
mov edi, ebx
call fcn.0048a930
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x48b662
mov ecx, dword [esi + 0x1b4]
push 0
push ebx
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x48b6b1
mov dword [esp + 0x18], 1
cmp dword [esp + 0x28], 2
jne 0x48b6c9
lea edx, [esp + 0x38]
push edx
call fcn.00415dd0
push eax
mov eax, dword [esp + 0x30]
push eax
push ebx
push ebp
call fcn.0048aac0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x48b6cd
push ebx
push ebp
call fcn.0048b3d0
add esp, 8
cmp edi, 1
jne 0x48b7a8
lea eax, [edi + 6]
jmp 0x48b7b4
mov dword [esp + 0x14], 0
jmp 0x48b61c
test eax, eax
je 0x48b662
push ebx
push ebp
call fcn.0048b3d0
add esp, 8
mov eax, 0x2a
jmp 0x48b7b4
mov edi, dword [esp + 0x10]
push 1
push ebx
call fcn.004a8540
add esp, 8
call fcn.00488530
cmp dword [ebp + 0x2d8], 1
mov dword [ebp + 0x2d0], eax
mov dword [ebp + 0x2d4], edx
jle 0x48b702
mov ecx, dword [ebp + 0x2dc]
push ecx
push esi
call fcn.00486f70
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x48b7ac
cmp dword [ebp + 0x8c], 1
jne 0x48b7ac
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x48b79e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x48b788
cmp edi, 0x2732
jle 0x48b74d
cmp edi, 0x2734
jle 0x48b788
push edi
push ebp
call fcn.0047a8f0
push eax
lea ecx, [esp + 0xc4]
push ecx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.00488950
push ebx
push ebp
mov dword [esi + 0x8624], edi
call fcn.0048b3d0
mov dword [esp + 0x30], 7
mov edi, dword [esp + 0x30]
add esp, 0x20
mov eax, edi
jmp 0x48b7b4
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x10]
mov dword [edx], ebx
mov eax, edi
jmp 0x48b7b4
test edi, edi
jne 0x48b7a8
mov edx, dword [esp + 0x20]
mov dword [edx], ebx
mov eax, edi
jmp 0x48b7b4
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
xor eax, eax
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.0044bc4c
add esp, 0xdc
ret