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

Disassembly:
mov eax, 0x101cbbe
call fcn.01018068
sub esp, 0x224
mov eax, dword [0x1020128]
and dword [ebp - 0x220], 0
push ebx
push esi
push edi
push 4
pop ebx
mov dword [ebp - 0x10], eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x230], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1001504
lea eax, [ebp - 0x21c]
push eax
call esi
push 0x1002c04
lea eax, [ebp - 0x21c]
push eax
call esi
lea eax, [ebp - 0x21c]
push 0x1002bfc
push eax
call dword [sym.imp.msvcrt.dll__wfopen]
mov edi, eax
push 0x1003f00
push edi
call fcn.01011235
mov eax, dword [ebp + 8]
add esp, 0x10
sub eax, 0
je 0x1015a9d
dec eax
je 0x1015a86
dec eax
je 0x1015985
push dword [ebp + 8]
push 0x1003ec4
push edi
call fcn.01011235
mov ebx, 0x8000ffff
jmp 0x1015cd1
push 0x1003e88
push edi
call fcn.01011235
pop ecx
pop ecx
push 0x1001a40
mov esi, 0x80000002
push esi
call fcn.01016f72
push eax
push 0x1003e48
push edi
call fcn.01011235
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0xf003f
push 0
push 0x1001dd0
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1015a0c
push ebx
lea eax, [ebp - 0x228]
push eax
push ebx
push 0
push 0x1003e18
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10159fe
push eax
push 0x1003dd0
push edi
call fcn.01011235
add esp, 0xc
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1015a1b
push eax
push 0x1003d78
push edi
call fcn.01011235
add esp, 0xc
mov esi, 0x10202fc
push 1
mov ecx, esi
call fcn.0100e48f
push eax
push 0x1003d28
push edi
call fcn.01011235
add esp, 0xc
mov ecx, esi
call fcn.0100e6b3
push eax
push 0x1003ce0
push edi
call fcn.01011235
add esp, 0xc
push edi
mov ecx, 0x1020398
call fcn.010157b7
mov ebx, eax
push ebx
push 0x1003c98
push edi
call fcn.01011235
add esp, 0xc
call fcn.01019ab2
test eax, eax
jne 0x1015cd4
call fcn.0101881e
call fcn.01019327
jmp 0x1015cd4
push 0x1003c60
push edi
call fcn.01011235
pop ecx
pop ecx
mov ebx, 0x80070057
jmp 0x1015cd4
push 0x1003c28
push edi
call fcn.01011235
pop ecx
pop ecx
lea eax, [ebp - 0x220]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push 0x1001dd0
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1015be6
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push 0x1003e18
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1015bae
cmp dword [ebp - 0x22c], 4
jne 0x1015bae
push 0x1003bb0
push edi
call fcn.01011235
pop ecx
pop ecx
push 0x1001a40
push esi
call fcn.01016f72
push eax
push 0x1003e48
push edi
call fcn.01011235
add esp, 0xc
call fcn.0101ba6e
mov esi, eax
test esi, esi
jne 0x1015b7e
call fcn.0101b803
mov esi, eax
test esi, esi
je 0x1015b77
push esi
push 0x1003b48
push edi
call fcn.01011235
push 0x1003b0c
push edi
call fcn.01011235
add esp, 0x14
test esi, esi
jle 0x1015b75
and esi, 0xffff
or esi, 0x80070000
mov ebx, esi
call fcn.0101ba3f
jmp 0x1015bbd
push esi
push 0x1003aa8
push edi
call fcn.01011235
push 0x1003b0c
push edi
call fcn.01011235
add esp, 0x14
test esi, esi
jg 0x1015ba0
mov ebx, esi
jmp 0x1015bbd
and esi, 0xffff
or esi, 0x80070000
jmp 0x1015b9c
push eax
push 0x1003a30
push edi
call fcn.01011235
add esp, 0xc
test ebx, ebx
jl 0x1015bd2
push 0x1003e18
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jl 0x1015cd4
mov esi, 0x10202fc
push 0
mov ecx, esi
call fcn.0100e76f
xor ebx, ebx
cmp eax, ebx
jl 0x1015c9a
mov dword [ebp - 0x224], ebx
lea eax, [ebp - 0x224]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0100bec2
cmp eax, ebx
jge 0x1015c2a
push eax
push 0x10039c0
push edi
call fcn.01011235
add esp, 0xc
jmp 0x1015c49
push dword [ebp - 0x224]
push 0x1003978
push edi
call fcn.01011235
add esp, 0xc
push dword [ebp - 0x224]
call fcn.010112a2
push ebx
mov ecx, esi
call fcn.0100e2be
push edi
call fcn.01011ea7
push 0x1003940
push edi
call fcn.01011235
pop ecx
pop ecx
push 1
push 1
push edi
mov ecx, 0x1020398
call fcn.010155c6
mov ebx, eax
test ebx, ebx
jge 0x1015c88
push ebx
push 0x10038e0
push edi
call fcn.01011235
add esp, 0xc
push dword [ebp - 0x224]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1015cb5
push eax
push 0x1003878
push edi
call fcn.01011235
add esp, 0xc
mov ecx, esi
call fcn.0100e6b3
mov ebx, 0x80004005
test ebx, ebx
jl 0x1015cd4
push edi
call fcn.01011bb9
mov ebx, eax
test ebx, ebx
jge 0x1015cd4
push ebx
push 0x1003820
push edi
call fcn.01011235
add esp, 0xc
push ebx
push 0x10037c8
push edi
call fcn.01011235
add esp, 0xc
test edi, edi
je 0x1015cf7
push edi
call dword [sym.imp.msvcrt.dll_fflush]
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop ebx
call fcn.01017bb1
leave
ret 4