Function at 0x10090c80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161d68
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101b900c]
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 0x10090e0e
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.10093360
mov ecx, eax
call fcn.10093420
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x10090d58
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10090d4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10090eff
push edx
push ecx
call fcn.1010a295
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 0x10090e0e
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 0x10090e0e
cmp dword [ebp - 0x18], 0
je 0x10090e0e
test ebx, ebx
je 0x10090e0e
cmp dword [ebp - 0x34], 0
je 0x10090e0e
test eax, eax
je 0x10090e0e
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 0x10090e0e
push dword [ebp - 0x38]
push 4
push dword [ebp - 0x28]
call dword [ebp - 0x18]
test eax, eax
je 0x10090e2e
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10090e0e
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.10109ef1
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0
je 0x10090eee
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 0x10090e04
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 0x10090e04
push 0x20a
call fcn.1010a31b
xor esi, esi
add esp, 4
mov edi, eax
cmp dword [ebp - 0x14], esi
jbe 0x10090ee5
mov ebx, dword [ebp - 0x3c]
push 0x105
push edi
push esi
push dword [ebp - 0x28]
call dword [ebp - 0x40]
test eax, eax
jne 0x10090ed5
push 1
push dword [ebp - 0x38]
mov ecx, ebx
push edi
push dword [ebp - 0x28]
call fcn.10090c80
jmp 0x10090edc
cmp eax, 0x103
je 0x10090ee2
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x10090eb2
mov ebx, dword [ebp - 0x44]
push edi
call fcn.1010a316
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10090ef8
push eax
call ebx
mov al, 1
jmp 0x10090e10
call fcn.10129e39
int3