Function at 0x49ca50
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49cd47
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x49cd60
mov dl, 8
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Psock_TPowersock_StatusMessage_qqruc17System_AnsiString
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10290], 0
je 0x49caaa
mov ecx, 0x49cd74
mov dl, 1
mov eax, dword [sym.LookAtLan.exe__Psock_ESockError_]
call fcn.00558568
call fcn.0055d6b8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x49cacf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Psock_TPowersock_ResolveRemoteHost_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49cb0a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10260], 0
jne 0x49cb8e
cmp dword [ebp - 8], 0
jle 0x49cb34
mov ecx, 0x49cdd0
mov dl, 1
mov eax, dword [sym.LookAtLan.exe__Psock_ESockError_]
call fcn.00558568
call fcn.0055d6b8
jmp 0x49cb8e
mov eax, dword [ebp - 4]
cmp word [eax + 0x1005a], 0
jne 0x49cb59
mov ecx, 0x49cdd0
mov dl, 1
mov eax, dword [sym.LookAtLan.exe__Psock_ESockError_]
call fcn.00558568
call fcn.0055d6b8
jmp 0x49cb8e
mov byte [ebp - 9], 0
lea edx, [ebp - 9]
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1005c]
call dword [ebx + 0x10058]
cmp byte [ebp - 9], 0
jne 0x49cb8b
mov ecx, 0x49cdd0
mov dl, 1
mov eax, dword [sym.LookAtLan.exe__Psock_ESockError_]
call fcn.00558568
call fcn.0055d6b8
inc dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10260], 0
je 0x49caaf
mov eax, dword [ebp - 4]
mov word [eax + 0x1025c], 2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1009c], 0
jne 0x49cbd2
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x100ac]
push eax
call sub.WS2_32.DLL_htons
mov edx, dword [ebp - 4]
mov word [edx + 0x1025e], ax
jmp 0x49cbec
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x100a0]
push eax
call sub.WS2_32.DLL_htons
mov edx, dword [ebp - 4]
mov word [edx + 0x1025e], ax
mov eax, dword [ebp - 4]
mov byte [eax + 0x100c8], 0
mov eax, 0x10
mov edx, dword [ebp - 4]
mov byte [edx + 0x100a8], 1
push eax
mov eax, dword [ebp - 4]
add eax, 0x1025c
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.WS2_32.DLL_connect
inc eax
jne 0x49cc31
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Psock_TPowersock_ErrorManager_qqrus
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Psock_TPowersock_TimerOn_qqrv
push 2
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x5ae3ec]
mov eax, dword [eax]
call fcn.0050f7c8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10290], 0
jne 0x49cc7c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100a9], 0
jne 0x49cc7c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x49cc7c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100a8], 0
jne 0x49cc39
mov eax, dword [ebp - 4]
call sym.LookAtLan.exe__Psock_TPowersock_TimerOff_qqrv
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100a9], 0
jne 0x49ccac
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x49ccac
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100a8], 0
jne 0x49cd31
mov eax, dword [ebp - 4]
cmp word [eax + 0x1007a], 0
je 0x49cccb
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1007c]
call dword [ebx + 0x10078]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100a9], 0
je 0x49cced
mov ecx, 0x49cdec
mov dl, 1
mov eax, dword [sym.LookAtLan.exe__Psock_ESockError_]
call fcn.00558568
call fcn.0055d6b8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x49cd0f
mov ecx, 0x49ce0c
mov dl, 1
mov eax, dword [sym.LookAtLan.exe__Psock_ESockError_]
call fcn.00558568
call fcn.0055d6b8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100a8], 0
jne 0x49cd31
mov ecx, 0x49ce28
mov dl, 1
mov eax, dword [sym.LookAtLan.exe__Psock_ESockError_]
call fcn.00558568
call fcn.0055d6b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49cd4e
lea eax, [ebp - 0x10]
call fcn.0055dbbc
ret