Function at 0x10106f80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10185738
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101fe854]
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 0x101070c8
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.10107fa0
mov ecx, eax
call fcn.10108060
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.100047b0
test ebx, ebx
je 0x101070c8
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 0x101bd36c
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 0x101070c8
cmp dword [ebp - 0x18], 0
je 0x101070c8
test ebx, ebx
je 0x101070c8
cmp dword [ebp - 0x34], 0
je 0x101070c8
test eax, eax
je 0x101070c8
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 0x101070c8
push dword [ebp - 0x38]
push 4
push dword [ebp - 0x28]
call dword [ebp - 0x18]
test eax, eax
je 0x101070e8
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x101070c8
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.1015f463
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0
je 0x101071ac
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 0x101070be
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 0x101070be
push 0x20a
call fcn.1015f931
xor esi, esi
add esp, 4
mov edi, eax
cmp dword [ebp - 0x14], esi
jbe 0x101071a3
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 0x10107193
push 1
push dword [ebp - 0x38]
mov ecx, ebx
push edi
push dword [ebp - 0x28]
call fcn.10106f80
jmp 0x1010719a
cmp eax, 0x103
je 0x101071a0
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x10107170
mov ebx, dword [ebp - 0x44]
push edi
call fcn.1015f91e
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x101071b6
push eax
call ebx
mov al, 1
jmp 0x101070ca