Function at 0x1001652c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.10039d10
push 0xffffffffffffffff
push 0x1005717c
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x100c]
xor esi, esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], esi
push 0x1005e8ca
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.1001060c
push 0x1005e9e0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
call fcn.1003b936
add esp, 0xc
test eax, eax
je 0x100165d2
cmp dword [ebp - 0x18], esi
je 0x100165d2
push dword [ebp - 0x18]
call fcn.10035fb0
mov ecx, edi
mov dword [esp], str.2.0
call fcn.10001309
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x10016716
jmp 0x10016711
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push 0x1005ea0c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100166f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], 0x800
call edi
cmp eax, esi
jne 0x100166f0
mov ebx, dword [ebp - 0x10]
lea eax, [ebp]
push str.1.9.0
push eax
call fcn.10035fb0
pop ecx
pop ecx
test eax, eax
js 0x100166c8
push ecx
mov ecx, dword [ebp + 0x1010]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp + 0x1010]
mov dword [ebp - 0x30], esp
cmp eax, esi
je 0x1001665b
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
push ecx
lea eax, [ebp]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 2
call fcn.10001309
mov byte [ebp - 4], 1
call fcn.10035fb0
pop ecx
pop ecx
cmp eax, esi
je 0x100166c8
cmp ebx, esi
je 0x10016685
mov ecx, dword [ebx]
jmp 0x10016687
xor ecx, ecx
lea eax, [ebp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100166b0
cmp dx, si
je 0x100166ac
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100166b0
add eax, 4
add ecx, 4
cmp dx, si
jne 0x1001668a
xor eax, eax
jmp 0x100166b5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jle 0x100166c8
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.100014b2
mov ebx, dword [ebp - 0x10]
inc dword [ebp - 0x1c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x800
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x10016621
jmp 0x100166f3
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x24]
mov dword [edi], ebx
cmp ebx, esi
je 0x10016716
lea eax, [ebx + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
mov ecx, ebx
call fcn.10001441
mov ecx, dword [ebp + 0x1010]
cmp ecx, esi
je 0x10016725
call fcn.10001441
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.10039bc2
add ebp, 0x1004
leave
ret