Function at 0x1009f5c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101895f0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x101dd594]
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 eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10073ae0
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x1009f647
push str.IsWow64Process
push 0x1019c850
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1009f63a
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0xf013f
jne 0x1009f64e
mov dword [ebp - 0x14], 0xf003f
push ebx
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], 0
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.1001d450
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.1009f3b0
add esp, 0x10
or ebx, 0xffffffff
test eax, eax
je 0x1009f785
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009f785
cmp dword [ebp - 0x38], eax
jbe 0x1009f785
mov eax, dword [ebp - 0x34]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10128827
mov ecx, dword [ebp - 0x34]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
lea ecx, [ecx*2 + 2]
push ecx
push 0
push ebx
call fcn.10150460
xor esi, esi
add esp, 0x10
cmp dword [ebp - 0x38], esi
je 0x1009f779
mov eax, dword [ebp - 0x34]
push 0
push 0
push 0
inc eax
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1009f76f
push ebx
lea ecx, [ebp - 0x14]
call fcn.10016670
mov ebx, dword [edi + 4]
mov byte [ebp - 4], 1
cmp dword [edi + 8], ebx
je 0x1009f741
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.1001d450
add eax, 0x10
add esp, 4
mov dword [ebx], eax
add dword [edi + 4], 4
jmp 0x1009f74d
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push ebx
call fcn.1001bef0
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009f76c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x3c]
inc esi
cmp esi, dword [ebp - 0x38]
jne 0x1009f6f0
push ebx
call fcn.101282d1
add esp, 4
or ebx, 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1009f793
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1009f7b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.10128191
mov esp, ebp
pop ebp
ret