Function at 0x10091ea0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10164cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101bd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x1009202e
push 0xc
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x5c]
push str.Advapi32.dll
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
call fcn.10003600
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push eax
call fcn.10094580
mov ecx, eax
call fcn.10094640
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x10091f78
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10091f6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009211f
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
test ebx, ebx
je 0x1009202e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegOpenKeyExW
push ebx
call esi
push str.RegSetKeySecurity
push ebx
mov dword [ebp - 0x30], eax
call esi
push str.RegCloseKey
push ebx
mov dword [ebp - 0x18], eax
call esi
push str.RegQueryInfoKeyW
push dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 0x44], ebx
call esi
push str.RegEnumKeyW
push dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
call esi
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x1009202e
cmp dword [ebp - 0x18], 0
je 0x1009202e
test ebx, ebx
je 0x1009202e
cmp dword [ebp - 0x34], 0
je 0x1009202e
test eax, eax
je 0x1009202e
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [edi + 0x20]
or eax, 0x40000
mov dword [ebp - 0x28], 0
push eax
push 0
push esi
push dword [ebp - 0x2c]
call ecx
test eax, eax
jne 0x1009202e
push dword [ebp - 0x38]
push 4
push dword [ebp - 0x28]
call dword [ebp - 0x18]
test eax, eax
je 0x1009204e
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1009202e
push eax
call ebx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010cbf1
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0
je 0x1009210e
push dword [ebp - 0x28]
call ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
mov eax, dword [edi + 0x20]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp - 0x2c]
call dword [ebp - 0x30]
test eax, eax
jne 0x10092024
push eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push dword [ebp - 0x28]
call dword [ebp - 0x34]
test eax, eax
jne 0x10092024
push 0x20a
call fcn.1010d01c
xor esi, esi
add esp, 4
mov edi, eax
cmp dword [ebp - 0x14], esi
jbe 0x10092105
mov ebx, dword [ebp - 0x3c]
push 0x105
push edi
push esi
push dword [ebp - 0x28]
call dword [ebp - 0x40]
test eax, eax
jne 0x100920f5
push 1
push dword [ebp - 0x38]
mov ecx, ebx
push edi
push dword [ebp - 0x28]
call fcn.10091ea0
jmp 0x100920fc
cmp eax, 0x103
je 0x10092102
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x100920d2
mov ebx, dword [ebp - 0x44]
push edi
call fcn.1010d017
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10092118
push eax
call ebx
mov al, 1
jmp 0x10092030
call fcn.1012cb39
int3