Function at 0x1004b850
Capabilities:
Check mutex on windows
Set registry value

Disassembly:
mov eax, 0x100d08b8
call fcn.10030644
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
push 0x1010244c
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.10002736
xor ebx, ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], ebx
lea esi, [edi + 0x35b0]
push str.vpnclient
push esi
mov byte [ebp - 4], 3
call fcn.100038e0
pop ecx
test al, al
pop ecx
je 0x1004b8cd
push str.SmartVpn
lea ecx, [ebp - 0x14]
call fcn.1001c2d1
push str.Semaphore
lea ecx, [ebp - 0x20]
call fcn.10002736
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.10003a64
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
jmp 0x1004b937
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x1004b8d9
mov eax, 0x100d6d1c
push eax
lea ecx, [ebp - 0x14]
call fcn.1001c2d1
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x1004b8ee
mov esi, 0x100d6d1c
push esi
lea ecx, [ebp - 0x20]
call fcn.10002736
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 5
call fcn.10003a64
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.1000278a
push str.Semaphore
lea ecx, [ebp - 0x20]
call fcn.10002736
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 6
call fcn.10003a64
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.1000278a
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1004b947
mov eax, dword [eax]
jmp 0x1004b949
xor eax, eax
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x1004ba00
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 8], esp
mov dword [ebp + 0x30], ecx
mov al, byte [ebp + 0x33]
push ebx
mov byte [ecx], al
call fcn.10002424
mov esi, 0x10102418
push esi
call fcn.10030730
pop ecx
mov ecx, dword [ebp + 0x30]
push eax
push esi
call fcn.100036bc
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 3
push eax
call fcn.10041dd8
add esp, 0x14
mov eax, dword [eax]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x1004b9b0
mov esi, dword [eax]
jmp 0x1004b9b2
xor esi, esi
push esi
call fcn.10031058
pop ecx
push eax
push esi
lea ecx, [edi + 0x3508]
call fcn.10004232
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.1000278a
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x1004b9e5
call fcn.10002801
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x1004b9f8
call fcn.10002801
mov dword [ebp - 0x10], ebx
mov byte [ebp + 0x33], bl
jmp 0x1004bc6d
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x1004ba0b
mov eax, dword [eax]
jmp 0x1004ba0d
xor eax, eax
push eax
push 0x14
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [0x1010f680], eax
call esi
cmp eax, 0xb7
jne 0x1004ba45
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x1004ba31
mov eax, dword [eax]
jmp 0x1004ba33
xor eax, eax
push eax
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov dword [0x1010f680], eax
push dword [ebp + 0x30]
lea eax, [ebp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0x30], esp
push eax
call fcn.1000350c
push dword [ebp + 0x1c]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 9
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0x1c], esp
push eax
call fcn.1000350c
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.1004be42
lea eax, [ebp - 0x38]
push 0x10101bc4
push eax
mov ecx, edi
call fcn.10048e77
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.10002424
mov eax, dword [0x100fd4c0]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x34dc]
mov byte [ebp - 4], 0xc
cmp eax, ebx
jne 0x1004bab8
mov eax, 0x100d6e28
push eax
lea ecx, [ebp - 0x18]
call fcn.100c11fe
mov eax, dword [ebp - 0x18]
mov eax, dword [eax - 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 0x56
lea esi, [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
push str.SOFTWAREMicrosoftRasCurrent
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push esi
push ebx
lea ecx, [ebp - 0x18]
call fcn.100c14ac
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x1c]
call esi
lea eax, [ebp - 0x24]
push 4
push eax
push 4
push ebx
push str.KeepAlive
push dword [ebp - 0x1c]
call esi
lea eax, [ebp - 0x28]
push 4
push eax
push 4
push ebx
push str.KeepAliveID
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0x2d0], ebx
jne 0x1004bc30
mov ecx, edi
call fcn.10043762
test al, al
jne 0x1004bbab
push ebx
push ebx
sub esp, 0x10
lea eax, [ebp + 0x33]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
push 0x101023d0
call fcn.10003536
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 0xc
push eax
call fcn.10041dd8
add esp, 0x14
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.10003ab9
push eax
call fcn.100c5aaa
mov ecx, dword [ebp + 0x1c]
mov byte [ebp - 4], 0xc
cmp ecx, ebx
je 0x1004bb9a
call fcn.10002801
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.100c1067
jmp 0x1004b9d2
call fcn.10041bff
test eax, eax
jne 0x1004bc30
push ecx
mov ecx, esp
mov dword [ebp + 0x30], esp
push dword [0x10101bd0]
call fcn.100039ab
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.1004b593
cmp al, bl
jne 0x1004bc30
push ecx
mov ecx, esp
mov dword [ebp + 0x30], esp
push dword [0x10101bd4]
call fcn.100039ab
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.1004b593
cmp al, bl
jne 0x1004bc30
push ecx
mov ecx, esp
mov dword [ebp + 0x30], esp
push dword [0x10101bd8]
call fcn.100039ab
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.1004b593
cmp al, bl
jne 0x1004bc30
push ecx
mov ecx, esp
mov dword [ebp + 0x30], esp
push dword [0x10101bdc]
call fcn.100039ab
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.1004b593
mov byte [edi + 0x32c], 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.100c1067
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x1004bc56
call fcn.10002801
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x1004bc69
call fcn.10002801
mov dword [ebp - 0x10], ebx
mov byte [ebp + 0x33], 1
push 1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.10002424
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 0x20]
call fcn.10002424
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0x33]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x2c