Function at 0x100e341
Capabilities:
Create directory
Delete file
Delete registry value
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x102a0ec]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x418]
push eax
push 3
xor esi, esi
push esi
push 0x10017a8
push 0x80000002
mov dword [ebp - 0x418], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100e808
push ebx
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
mov ebx, 0x10027e0
push ebx
push dword [ebp - 0x418]
xor edi, edi
mov dword [ebp - 0x420], 0x208
mov dword [ebp - 0x41c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100e3f4
cmp dword [ebp - 0x41c], 1
jne 0x100e3f4
lea eax, [ebp - 0x414]
push 0x1001780
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
mov edi, eax
neg edi
push ebx
push dword [ebp - 0x418]
sbb edi, edi
inc edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x100e806
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100e806
push 0x10027c4
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.0100d4ff
lea eax, [ebp - 0x414]
push eax
call fcn.01016f8a
test eax, eax
je 0x100e806
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.010190e9
test eax, eax
je 0x100e806
lea eax, [ebp - 0x414]
push eax
call fcn.01016cfc
push 0x10013e0
lea eax, [ebp - 0x414]
push eax
mov ebx, 0x10027b8
push ebx
dec edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0100d4d1
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call fcn.01016f8a
test eax, eax
je 0x100e629
push 1
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e0eb
test eax, eax
je 0x100e629
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push esi
push esi
push esi
mov eax, 0x10013e0
push eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0101a757
test eax, eax
jl 0x100e629
push esi
push esi
push esi
push esi
mov eax, 0x10027a4
push eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0101a757
push esi
push esi
push esi
push esi
mov eax, 0x1002790
push eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0101a757
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
push 0x10027a4
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d4ff
push esi
lea eax, [ebp - 0x418]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x10026e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100e5ab
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push 0x100277c
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10013e0
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0100d4d1
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1002768
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0100d4d1
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1002790
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0100d4d1
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x10013f4
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0100d4d1
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call fcn.01016f8a
test eax, eax
je 0x100e7b7
push 1
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e0eb
test eax, eax
je 0x100e7b7
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push esi
push esi
push esi
mov eax, 0x10013f4
push eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0101a757
test eax, eax
jl 0x100e7b7
push esi
push esi
push esi
push esi
mov eax, 0x1002754
push eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0101a757
push esi
push esi
push esi
push esi
mov eax, 0x1002740
push eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0101a757
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
push 0x1002740
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d4ff
push esi
lea eax, [ebp - 0x418]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x10026e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100e763
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push 0x100277c
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10013f4
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0100d4d1
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1002740
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0100d4d1
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
call fcn.01016cfc
push 0x1002684
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.0100d4ff
lea eax, [ebp - 0x414]
push eax
call fcn.01016f8a
test eax, eax
je 0x100e806
call fcn.0100df74
test eax, eax
je 0x100e806
push 0xffff
push 1
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.010189dd
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101672d
leave
ret