Function at 0x100eb97
Capabilities:
Get common file path
Get startup folder
Query or enumerate registry key
Query or enumerate registry value
Set environment variable

Disassembly:
lea ecx, [ebp - 0x424]
call fcn.0100c7c9
mov eax, dword [ebp - 0x424]
xor edi, edi
cmp eax, edi
mov byte [ebp - 4], 0xa
jl 0x101c8f6
mov esi, 0x104a180
push 0x104a740
mov ecx, esi
call fcn.01010679
cmp eax, edi
jl 0x101c8f6
mov ecx, esi
call fcn.0100bebd
push 3
push 0xb86
call fcn.01002c0d
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], edi
call dword [sym.imp.MSSRCH.DLL_public:_static_int___stdcall_CSearchServiceObj::Cleanup_void_]
cmp dword [0x104a3ac], 0
je 0x100be41
mov dl, byte [0x104a3b0]
cmp dl, 4
jb 0x100be8c
mov eax, dword [0x104a398]
mov ecx, dword [0x104a39c]
mov edi, 0x200
mov ebx, 0x80000000
and eax, edi
and ecx, ebx
or eax, ecx
jne 0x101c843
cmp dword [0x104a3ac], 0
je 0x100be41
cmp dl, 4
jb 0x100be99
mov eax, dword [0x104a398]
mov ecx, dword [0x104a39c]
mov edi, 0x80010000
and eax, 5
and ecx, edi
or eax, ecx
je 0x100be41
mov edx, dword [0x104a3a0]
mov esi, dword [0x104a3a4]
mov eax, edx
mov ecx, esi
and eax, 5
and ecx, edi
cmp eax, edx
jne 0x100be41
cmp ecx, esi
jne 0x100be41
push 0x100bea8
push dword [0x104a134]
push dword [0x104a130]
call fcn.0100a01e
push 0x104a130
call fcn.01011a50
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x440], 0
je 0x100be64
push dword [ebp - 0x440]
call dword [0x104b7f0]
mov eax, dword [ebp - 0x434]
call fcn.01002fbc
ret 0x10
test al, al
je 0x100ec1f
jmp 0x100ec6d
test al, al
je 0x100ec82
jmp 0x100eca3
test dl, dl
je 0x100bdc2
jmp 0x100bde3
test dl, dl
jne 0x100be41
jmp 0x100bdf5
push 0x470
mov eax, 0x10405eb
call fcn.01003649
xor esi, esi
push esi
push esi
push 1
push esi
mov dword [ebp - 0x434], esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0xffffffffffffffff
call sub.IMM32.dll_ImmDisableIME
mov dword [ebp - 0x440], esi
mov dword [ebp - 4], esi
call fcn.0100e139
test eax, eax
jne 0x101c68e
push esi
mov byte [ebp - 4], 1
call fcn.0100e795
call fcn.0100e1cb
mov dword [ebp - 4], esi
push 0x104a130
push 0x104a388
push 0x100c7e5
xor ebx, ebx
push 0x100eefc
inc ebx
call fcn.0100c82f
xor edi, edi
cmp dword [0x104a3ac], edi
je 0x100eca3
mov al, byte [0x104a3b0]
cmp al, 4
jb 0x100be72
mov eax, dword [0x104a398]
mov ecx, dword [0x104a39c]
mov edx, 0x80010000
and eax, 5
and ecx, edx
or eax, ecx
je 0x100ec6d
mov esi, dword [0x104a3a0]
mov ecx, dword [0x104a3a4]
mov eax, esi
and eax, 5
and ecx, edx
cmp eax, esi
jne 0x100ec6d
cmp ecx, dword [0x104a3a4]
jne 0x100ec6d
push 0x100ef10
push dword [0x104a134]
push dword [0x104a130]
call fcn.0100a01e
cmp dword [0x104a3ac], edi
je 0x100eca3
mov al, byte [0x104a3b0]
cmp al, 4
jb 0x100be7f
mov eax, dword [0x104a398]
mov esi, dword [0x104a39c]
mov ecx, 0x200
mov edx, 0x80000000
and eax, ecx
and esi, edx
or eax, esi
jne 0x101c7af
push 0x100ef58
push 0xffffffffffffffff
call fcn.0100d066
mov ecx, 0x104a120
call fcn.0100f0f1
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 3
mov dword [ebp - 0x428], edi
call fcn.0100eb5d
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 4
call fcn.0100eaf8
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 5
call fcn.0100cdee
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 6
call fcn.01010b60
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
push 0x801c
push edi
mov byte [ebp - 4], 7
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, edi
jl 0x101c7f7
lea eax, [ebp - 0x21c]
push eax
push 0x1009cbc
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp eax, edi
je 0x101c7f7
lea ecx, [ebp - 0x478]
call fcn.0100f8e8
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x438]
push eax
push ebx
mov esi, 0xc0100000
push ebx
lea ecx, [ebp - 0x428]
mov byte [ebp - 0x420], 0
mov dword [ebp - 0x43c], esi
call fcn.0100ef71
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x438]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x428]
mov byte [ebp - 0x420], 0
mov dword [ebp - 0x43c], esi
call fcn.0100ef71
push edi
push dword [ebp - 0x428]
lea ecx, [ebp - 0x478]
push ebx
call fcn.0100cdc5
and dword [ebp - 0x424], 0
lea eax, [ebp - 0x478]
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x450], 0xc
mov dword [ebp - 0x44c], eax
lea edi, [ebp - 0x450]
mov esi, 0x104a0b0
cmp dword [ebp - 0x424], 0xf
jae 0x100ee4b
push 0x100ef34
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
mov ecx, esi
call fcn.01002cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x104a0b4], 0
mov ebx, eax
je 0x101c899
test ebx, ebx
jne 0x101c899
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 6
call fcn.0100eae5
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 5
call fcn.0100eae5
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 4
call fcn.0100ea8c
push dword [ebp - 0x428]
mov byte [ebp - 4], 3
call dword [0x104b7f0]
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [0x104a074], eax
lea eax, [ebp - 0x444]
push eax
mov byte [ebp - 4], 9
call fcn.0100d7f9
mov edi, eax
mov dword [ebp - 0x440], edi
test edi, edi
je 0x101c913
cmp dword [ebp - 0x444], 2
jne 0x101c913
mov esi, ebx
cmp esi, dword [ebp - 0x444]
jge 0x100bd4c
mov eax, dword [edi + esi*4]
movzx ecx, word [eax]
cmp cx, 0x2f
jne 0x101c8ea
add eax, 2
push 0x100ef20
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x101c913
inc esi
jmp 0x100eec3
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x42c]
push eax
push 9
push esi
push 0x101c990
push 0x80000002
call edi
cmp eax, esi
jne 0x100ebd6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x41c]
push ecx
mov esi, 0xff
mov dword [ebp - 0x430], eax
push eax
jmp 0x101c786
push 0x101c984
push esi
lea eax, [ebp - 0x41c]
push eax
call fcn.0100f84f
lea eax, [ebp - 0x428]
push eax
push 1
push 0
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x42c]
call edi
test eax, eax
jne 0x101c766
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x43c]
push eax
push 0
push 0x101c968
push dword [ebp - 0x428]
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x43c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101c75a
lea eax, [ebp - 0x214]
push eax
push 0x10a1
call fcn.0103ceaf
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x430]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x430]
push dword [ebp - 0x42c]
mov dword [ebp - 0x424], esi
call ebx
test eax, eax
je 0x101c6dd
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x100ebd6
mov esi, dword [0x104a3a0]
mov eax, esi
and eax, ecx
mov ecx, dword [0x104a3a4]
and ecx, edx
cmp eax, esi
jne 0x100eca3
cmp ecx, dword [0x104a3a4]
jne 0x100eca3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x101c948
push dword [0x104a134]
push dword [0x104a130]
call fcn.010379eb
jmp 0x100eca3
mov dword [ebp - 0x434], ebx
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 6
call fcn.0100eae5
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 5
call fcn.0100eae5
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 4
call fcn.0100ea8c
push dword [ebp - 0x428]
mov byte [ebp - 4], 3
call dword [0x104b7f0]
mov byte [ebp - 4], 0
jmp 0x100bda0
mov esi, dword [0x104a3a0]
mov eax, esi
and eax, edi
mov edi, dword [0x104a3a4]
mov ecx, edi
and ecx, ebx
cmp eax, esi
jne 0x100bde3
cmp ecx, edi
jne 0x100bde3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x101c958
push dword [0x104a134]
push dword [0x104a130]
call fcn.010379eb
mov dl, byte [0x104a3b0]
jmp 0x100bde3
push 0
mov ecx, esi
call fcn.01002cc0
cmp ebx, 0xb7
je 0x101c8b9
mov dword [ebp - 0x434], 1
jmp 0x101c7fd
cmp dword [ebp - 0x424], 0xe
jne 0x101c8d1
mov dword [ebp - 0x434], 2
jmp 0x101c7fd
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x424]
xor ebx, ebx
inc ebx
jmp 0x100ee0c
cmp cx, 0x2d
je 0x100eedf
jmp 0x101c913
cmp dword [ebp - 0x424], edi
mov dword [ebp - 0x434], eax
jl 0x101c83a
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x101c83a
mov dword [ebp - 0x434], ebx
jmp 0x101c83a