Function at 0x100161cc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x10068948
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x28]
push eax
call fcn.1002d7bc
pop ecx
lea ecx, [ebx + 0x14]
push eax
mov dword [ebp - 0x3c], ecx
call fcn.100015ab
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1001622c
call fcn.100016dc
lea eax, [ebp - 0x28]
push eax
call fcn.1002da5a
pop ecx
lea ecx, [ebx + 0x18]
push eax
mov dword [ebp - 0x2c], ecx
call fcn.100015ab
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1001624e
call fcn.100016dc
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
push 0x100794d0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 9
pop ebx
test eax, eax
jne 0x1001646b
mov ebx, eax
mov dword [ebp - 0x10], 0x104
mov edi, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], edi
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
push ecx
lea ecx, [ebp + 0x208]
push ecx
push eax
jmp 0x1001643f
xor eax, eax
mov ecx, eax
mov edx, eax
cmp dword [ebp - 0x10], eax
jbe 0x10016424
cmp word [ebp + edx*2 + 0x208], 0x2e
jne 0x100162bd
inc ecx
cmp ecx, 1
jg 0x100162cc
inc edx
cmp edx, dword [ebp - 0x10]
jb 0x100162ac
cmp ecx, 1
jle 0x10016424
lea eax, [ebp + 0x208]
push 0x10079528
push eax
call fcn.1004d20a
pop ecx
pop ecx
test eax, eax
js 0x10016422
lea eax, [ebp + 0x208]
push eax
call fcn.100389a5
pop ecx
test al, al
je 0x10016422
push ecx
lea eax, [ebp + 0x208]
mov ecx, esp
push eax
call fcn.1000154d
lea eax, [ebp - 0x24]
push eax
call fcn.100383fd
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.100015ab
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10016332
call fcn.100016dc
xor esi, esi
mov dword [ebp - 0x24], esi
jmp 0x10016334
xor esi, esi
push ecx
lea eax, [ebp + 0x208]
mov ecx, esp
push eax
call fcn.1000154d
lea eax, [ebp - 0x14]
push eax
call fcn.10038e7b
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
call fcn.10016c5a
mov edi, dword [ebp - 0x20]
test eax, eax
js 0x1001640a
push ecx
mov ecx, dword [ebp - 0x2c]
mov eax, esp
mov dword [ebp - 0x38], esp
mov ecx, dword [ecx]
mov dword [eax], ecx
test ecx, ecx
je 0x10016377
lock inc dword [ecx + 8]
push ecx
mov ecx, dword [ebp - 0x3c]
mov eax, esp
mov dword [ebp - 0x48], esp
mov ecx, dword [ecx]
mov dword [eax], ecx
test ecx, ecx
je 0x1001638c
lock inc dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100163a2
lock inc dword [eax + 8]
push ecx
mov dword [ebp - 0x50], esp
mov eax, esp
mov dword [eax], edi
test edi, edi
je 0x100163b2
lock inc dword [edi + 8]
push ecx
lea eax, [ebp + 0x208]
mov byte [ebp - 4], 5
mov ecx, esp
push eax
call fcn.1000154d
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10015fb9
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx]
push ecx
push 0x100a3fac
push ebx
call dword [eax]
mov ecx, dword [ebp - 0x34]
push 9
pop eax
mov word [ebp - 0x60], ax
add ecx, 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push dword [ecx + 4]
lea eax, [ebp - 0x44]
push eax
call fcn.100168c7
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov byte [ebp - 4], al
test ecx, ecx
je 0x10016424
call fcn.100016dc
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x10016424
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
lea eax, [ebp + 0x208]
inc ebx
push eax
mov dword [ebp - 0x18], ebx
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1001629d
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10016468
mov ecx, edi
call fcn.100016dc
push 9
pop ebx
push 0x104
lea eax, [ebp]
push eax
push dword [0x100c12a4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100166bf
xor esi, esi
mov dword [ebp - 0x24], esi
lea eax, [ebp]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp - 0x34]
call fcn.1000154d
mov eax, dword [eax]
test eax, eax
je 0x100164aa
mov eax, dword [eax]
jmp 0x100164ac
mov eax, esi
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov ecx, dword [ebp - 0x34]
mov edi, eax
test ecx, ecx
je 0x100164c5
call fcn.100016dc
test edi, edi
js 0x100166ae
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
push edx
push 0x1009e020
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 7
call dword [ecx + 0x18]
test eax, eax
js 0x1001669d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10016501
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x1006deac
push eax
mov byte [ebp - 4], bl
call dword [ecx]
test eax, eax
js 0x10016525
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001b8e
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
js 0x10016678
mov eax, dword [ebp - 0x2c]
push 0xc
pop ebx
movzx esi, word [eax + 0x2c]
mov dword [0x100bc050], esi
test esi, esi
jne 0x10016557
xor eax, eax
mov dword [0x100bc04c], eax
jmp 0x100165b4
xor ecx, ecx
mov dword [ebp - 0x44], esi
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.1003b394
pop ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x100165a0
push 0x10001c98
push 0x10001c45
push esi
lea edi, [eax + 4]
mov dword [eax], esi
push ebx
push edi
call fcn.1003b20b
xor eax, eax
jmp 0x100165a4
xor eax, eax
mov edi, eax
mov esi, dword [0x100bc050]
mov byte [ebp - 4], 9
mov dword [0x100bc04c], edi
mov edi, eax
test esi, esi
jle 0x1001665c
mov ebx, eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push edx
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x1001664c
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
push ecx
push ecx
push ecx
mov edx, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xb
push dword [ecx]
push eax
call dword [edx + 0x30]
test eax, eax
js 0x10016631
mov ecx, dword [0x100bc04c]
xor esi, esi
mov eax, dword [ebp - 0x14]
push eax
mov dword [ebp - 0x14], esi
lea ecx, [ebx + ecx]
call fcn.10001e1b
mov eax, dword [0x100bc04c]
push dword [ebx + eax]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [0x100bc04c]
mov dword [ebx + ecx + 4], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov eax, dword [0x100bc04c]
mov dword [ebx + eax + 8], ecx
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push 9
pop eax
push dword [ebp - 0x14]
mov byte [ebp - 4], al
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc edi
add ebx, 0xc
cmp edi, dword [0x100bc050]
jl 0x100165c0
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [0x100bc044], ecx
jmp 0x1001667b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x1001668f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 7
test eax, eax
je 0x1001669d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 6
test eax, eax
je 0x100166ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100166bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1003b105
add ebp, 0x414
leave
ret