Function at 0x10108cf0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10187678
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10200854]
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 0x10108e38
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.10004820
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push eax
call fcn.10109d20
mov ecx, eax
call fcn.10109de0
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.100047b0
test ebx, ebx
je 0x10108e38
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 0x101bf3a4
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 0x10108e38
cmp dword [ebp - 0x18], 0
je 0x10108e38
test ebx, ebx
je 0x10108e38
cmp dword [ebp - 0x34], 0
je 0x10108e38
test eax, eax
je 0x10108e38
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 0x10108e38
push dword [ebp - 0x38]
push 4
push dword [ebp - 0x28]
call dword [ebp - 0x18]
test eax, eax
je 0x10108e58
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10108e38
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.101611d3
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0
je 0x10108f1c
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 0x10108e2e
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 0x10108e2e
push 0x20a
call fcn.101616a1
xor esi, esi
add esp, 4
mov edi, eax
cmp dword [ebp - 0x14], esi
jbe 0x10108f13
mov ebx, dword [ebp - 0x3c]
nop dword [eax]
push 0x105
push edi
push esi
push dword [ebp - 0x28]
call dword [ebp - 0x40]
test eax, eax
jne 0x10108f03
push 1
push dword [ebp - 0x38]
mov ecx, ebx
push edi
push dword [ebp - 0x28]
call fcn.10108cf0
jmp 0x10108f0a
cmp eax, 0x103
je 0x10108f10
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x10108ee0
mov ebx, dword [ebp - 0x44]
push edi
call fcn.1016168e
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10108f26
push eax
call ebx
mov al, 1
jmp 0x10108e3a