Function at 0x48a7b0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1dc], 0xffffffff
mov dword [ebp - 0x1d4], 0
mov byte [ebp - 0x1ca], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*4 + 0x150]
mov dword [ebp - 0x1d8], edx
mov eax, dword [ebp - 0x1d8]
mov dword [eax], 0xffffffff
lea ecx, [ebp - 0x1c8]
push ecx
lea edx, [ebp - 0x1c4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00489920
add esp, 0x10
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x1d0], 0
je 0x48a835
mov eax, dword [ebp - 0x1d0]
jmp 0x48ac73
lea edx, [ebp - 0x1ec]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0x1b4]
push edx
call fcn.00488550
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x48a8b1
push 0x100
lea ecx, [ebp - 0x134]
push ecx
call fcn.0060278f
mov edx, dword [eax]
push edx
call fcn.004a2180
add esp, 0xc
push eax
call fcn.0060278f
mov eax, dword [eax]
push eax
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487870
add esp, 0x10
mov edx, dword [ebp - 0x1c8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00488690
add esp, 0xc
xor eax, eax
jmp 0x48ac73
mov edx, dword [ebp - 0x1ec]
push edx
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s:_d...
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487990
add esp, 0x10
cmp dword [ebp - 0x1c4], 2
je 0x48a8df
cmp dword [ebp - 0x1c4], 0x17
jne 0x48a8f4
cmp dword [ebp - 0x1c0], 1
jne 0x48a8f4
mov dword [ebp - 0x1e8], 1
jmp 0x48a8fe
mov dword [ebp - 0x1e8], 0
cmp dword [ebp - 0x1e8], 0
jne 0x48a913
mov dword [ebp - 0x1e4], 0
jmp 0x48a91d
mov dword [ebp - 0x1e4], 1
mov dl, byte [ebp - 0x1e4]
mov byte [ebp - 0x1c9], dl
movzx eax, byte [ebp - 0x1c9]
test eax, eax
je 0x48a955
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x71f]
test edx, edx
je 0x48a955
mov eax, dword [ebp - 0x1c8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048ada0
add esp, 8
xor edx, edx
jne 0x48a955
mov eax, dword [ebp - 0x1c8]
push eax
call fcn.00489870
add esp, 4
movzx ecx, byte [ebp - 0x1c9]
test ecx, ecx
je 0x48a994
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x727]
test eax, eax
je 0x48a994
mov ecx, dword [ebp - 0x1c8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0048ac90
add esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1b8], 0
je 0x48aa1f
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00471620
add esp, 8
push 0
mov edx, dword [ebp - 0x1c8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1bc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1b8]
call eax
add esp, 0xc
mov dword [ebp - 0x1d4], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00471620
add esp, 8
cmp dword [ebp - 0x1d4], 2
jne 0x48a9f5
mov byte [ebp - 0x1ca], 1
jmp 0x48aa1f
cmp dword [ebp - 0x1d4], 0
je 0x48aa1f
mov edx, dword [ebp - 0x1c8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00488690
add esp, 0xc
mov eax, 0x2a
jmp 0x48ac73
cmp dword [ebp - 0x1c4], 2
je 0x48aa31
cmp dword [ebp - 0x1c4], 0x17
jne 0x48aa9f
lea edx, [ebp - 0x1b4]
push edx
call fcn.004cb600
add esp, 4
push eax
mov eax, dword [ebp - 0x1c4]
push eax
mov ecx, dword [ebp - 0x1c8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00489de0
add esp, 0x10
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x1d0], 0
je 0x48aa9f
mov eax, dword [ebp - 0x1c8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00488690
add esp, 0xc
cmp dword [ebp - 0x1d0], 1
jne 0x48aa94
mov eax, 7
jmp 0x48ac73
mov eax, dword [ebp - 0x1d0]
jmp 0x48ac73
push 1
mov eax, dword [ebp - 0x1c8]
push eax
call fcn.004cb7d0
add esp, 8
lea ecx, [ebp - 0x1fc]
push ecx
call fcn.00494570
add esp, 4
mov edx, dword [ebp + 0xc]
add edx, 0x280
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x27c], 1
jle 0x48ab3c
push 3
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax + 0x294]
push edx
mov eax, dword [ecx + eax + 0x290]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00470ff0
add esp, 0x10
push 4
mov edx, 8
shl edx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx + 0x294]
push ecx
mov edx, dword [eax + edx + 0x290]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00470ff0
add esp, 0x10
movzx ecx, byte [ebp - 0x1ca]
test ecx, ecx
jne 0x48ab98
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x58], 4
je 0x48ab98
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x271]
test ecx, ecx
je 0x48ab60
jmp 0x48ab81
mov edx, dword [ebp - 0x1b8]
push edx
lea eax, [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x1c8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0xffffffff
jne 0x48ab96
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1d4], eax
jmp 0x48abad
mov edx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x1c8]
mov dword [edx], eax
xor eax, eax
jmp 0x48ac73
cmp dword [ebp - 0x1dc], 0xffffffff
jne 0x48ac56
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 0x1e0], ecx
cmp dword [ebp - 0x1e0], 0xb
je 0x48abe9
cmp dword [ebp - 0x1e0], 0x2732
jle 0x48abf5
cmp dword [ebp - 0x1e0], 0x2734
jle 0x48abe9
jmp 0x48abf5
mov dword [ebp - 0x1d0], 0
jmp 0x48ac56
push 0x100
lea edx, [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x1d4]
push eax
call fcn.004a2180
add esp, 0xc
push eax
lea ecx, [ebp - 0x34]
push ecx
push str.Immediate_connect_fail_for__s:__s
mov edx, dword [ebp + 8]
push edx
call fcn.00487990
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1d4]
mov dword [eax + 0x96c], ecx
mov edx, dword [ebp - 0x1c8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00488690
add esp, 0xc
mov dword [ebp - 0x1d0], 7
cmp dword [ebp - 0x1d0], 0
jne 0x48ac6d
mov edx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x1c8]
mov dword [edx], eax
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret