Function at 0x1004185e
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x100cee58
call fcn.10030644
sub esp, 0xf8
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0x50
mov byte [ebp - 4], 1
pop eax
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x8021
push dword [ebp + 8]
call sub.RASAPI32.dll_RasGetProjectionInfoW
cmp eax, ebx
je 0x100418c2
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1000278a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1000278a
jmp 0x10041b49
lea eax, [ebp - 0xfc]
lea ecx, [ebp - 0x14]
push eax
call fcn.10008984
lea eax, [ebp - 0xdc]
lea ecx, [ebp - 0x10]
push eax
call fcn.10008984
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x100418ee
call fcn.1000886e
jmp 0x100418f0
xor eax, eax
push esi
mov esi, dword [sym.imp.WSOCK32.dll_inet_addr]
push edi
push eax
call esi
push 0xd
mov edx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0xb0]
mov dword [ebp - 0xb4], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb4]
push eax
push ebx
push edx
call sub.iphlpapi.dll_GetBestRoute
push 0xd
xor eax, eax
pop ecx
lea edi, [ebp - 0x78]
mov dword [ebp - 0x7c], ebx
push 1
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x6c], eax
pop edi
or eax, 0xffffffff
cmp ecx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
je 0x1004195a
call fcn.1000886e
jmp 0x1004195c
xor eax, eax
push eax
call esi
push 3
mov dword [ebp - 0x70], eax
pop eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], eax
mov al, byte [ebp + 0xf]
push ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x30], al
call fcn.10002424
mov esi, str.count
push esi
call fcn.10030730
pop ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.100036bc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.1006f1f1
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 1
call fcn.10002424
cmp byte [ebp + 0xb], bl
je 0x100419d7
mov ecx, dword [ebp + 0xc]
push esi
call fcn.100420b1
mov esi, eax
push 2
mov ecx, esi
call fcn.1006e74a
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
mov dword [ebp + 8], ebx
jle 0x10041b25
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.net_d
push eax
call fcn.100598b6
add esp, 0xc
mov ecx, dword [eax]
mov byte [ebp - 4], 3
cmp ecx, ebx
je 0x10041a08
call fcn.1000886e
jmp 0x10041a0a
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
call fcn.100420b1
mov esi, eax
push 4
mov ecx, esi
call fcn.1006e74a
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x30]
mov al, byte [esi]
mov byte [ebp - 0x30], al
call fcn.10002424
push dword [0x100d6d18]
lea ecx, [ebp - 0x30]
push ebx
push esi
call fcn.10003585
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp eax, ebx
jne 0x10041a4e
mov eax, 0x100d6d1c
mov edi, dword [sym.imp.WSOCK32.dll_inet_addr]
push eax
call edi
mov dword [ebp - 0x7c], eax
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.10002424
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10041a7b
call fcn.10002801
mov dword [ebp - 0x20], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str.mask_d
push eax
call fcn.100598b6
add esp, 0xc
mov ecx, dword [eax]
mov byte [ebp - 4], 5
cmp ecx, ebx
je 0x10041aa0
call fcn.1000886e
jmp 0x10041aa2
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
call fcn.100420b1
mov esi, eax
push 4
mov ecx, esi
call fcn.1006e74a
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x44]
mov al, byte [esi]
mov byte [ebp - 0x44], al
call fcn.10002424
push dword [0x100d6d18]
lea ecx, [ebp - 0x44]
push ebx
push esi
call fcn.10003585
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 6
cmp eax, ebx
jne 0x10041ae6
mov eax, 0x100d6d1c
push eax
call edi
mov dword [ebp - 0x78], eax
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.10002424
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10041b0d
call fcn.10002801
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x7c]
push eax
call sub.iphlpapi.dll_CreateIpForwardEntry
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x18]
jl 0x100419e3
mov ecx, dword [ebp - 0x10]
pop edi
cmp ecx, ebx
mov byte [ebp - 4], bl
pop esi
je 0x10041b39
call fcn.10002801
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x10041b49
call fcn.10002801
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret