Function at 0x10018969
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14c], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x128], 0xffffffff
cmp dword [ebp + 0x10], 0
jle 0x100189b2
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.1001d4f0
add esp, 0xc
cmp dword [ebp + 0x10], 0
jg 0x100189cc
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x90007
xor eax, eax
jmp 0x10018efa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x10112938
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0xffffffff
jne 0x10018a12
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x90005
xor eax, eax
jmp 0x10018efa
mov dword [ebp - 0x11c], 0xffffffff
push 0
lea eax, [ebp - 0x138]
push eax
push 0x100
lea eax, [ebp - 0x11c]
push eax
push 0x100
lea eax, [ebp - 0x11c]
push eax
push 0x9c402484
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x140], 0
je 0x10018a89
cmp dword [ebp - 0x11c], 0xffffffff
je 0x10018a89
cmp dword [ebp - 0x138], 4
jae 0x10018a99
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x90006
xor eax, eax
jmp 0x10018efa
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x130], 0
jmp 0x10018ab7
inc dword [ebp - 0x130]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x130], eax
jge 0x10018b2b
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0x114], ecx
jne 0x10018ae1
jmp 0x10018ab1
mov eax, dword [ebp - 0x14c]
add eax, 8
cmp eax, dword [ebp - 0xc]
jle 0x10018b03
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x90007
xor eax, eax
jmp 0x10018efa
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x130]
mov eax, dword [ebp + eax*4 - 0x114]
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ebp + 0xc]
mov dword [ecx + edx], eax
add dword [ebp - 0x14c], 8
jmp 0x10018ab1
cmp dword [ebp + 8], 0
jne 0x10018b46
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
jmp 0x10018efa
mov dword [ebp - 0x144], 0x10000
mov eax, dword [ebp - 0x144]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10018b7c
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x90003
xor eax, eax
jmp 0x10018efa
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0
push 0x10112948
push 0x80000004
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jne 0x10018c18
cmp dword [ebp - 0x158], 0
jbe 0x10018c18
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x50
jne 0x10018c18
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0x45
jne 0x10018c18
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x52
jne 0x10018c18
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, 0x46
jne 0x10018c18
jmp 0x10018c8b
cmp dword [ebp - 0x150], 0xea
jne 0x10018c6c
push 0x42
mov eax, dword [ebp - 0x144]
add eax, 0x8000
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10018c5d
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x90003
xor eax, eax
jmp 0x10018efa
add dword [ebp - 0x144], 0x8000
jmp 0x10018b7c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x10006
xor eax, eax
jmp 0x10018efa
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x10018cb2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x10009
xor eax, eax
jmp 0x10018efa
push 0x312
mov eax, dword [ebp - 4]
push eax
call fcn.1001946b
add esp, 8
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x10018cf0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x10009
xor eax, eax
jmp 0x10018efa
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x124]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x124]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x130], 0
jmp 0x10018d44
inc dword [ebp - 0x130]
mov eax, dword [ebp - 0x154]
push eax
call fcn.10019410
add esp, 4
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x130]
cmp dword [eax + 0x20], ecx
jbe 0x10018d85
mov eax, dword [ebp - 0x154]
cmp dword [eax + 4], 0x310
jne 0x10018d80
mov eax, dword [ebp - 0x154]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x128], eax
jmp 0x10018d85
jmp 0x10018d29
cmp dword [ebp - 0x128], 0xffffffff
jne 0x10018dac
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x1000a
xor eax, eax
jmp 0x10018efa
mov dword [ebp - 0x134], 0
jmp 0x10018dc1
inc dword [ebp - 0x134]
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x134], eax
jge 0x10018edf
mov dword [ebp - 0x120], 0x1011294c
mov dword [ebp - 0x130], 0
jmp 0x10018e04
inc dword [ebp - 0x130]
mov eax, dword [ebp - 0x148]
push eax
call fcn.10019440
add esp, 4
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x130]
cmp dword [eax + 0x28], ecx
jle 0x10018e67
mov eax, dword [ebp - 0x148]
mov eax, dword [eax]
add eax, dword [ebp - 0x148]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x128]
mov ebx, dword [ebp - 8]
mov edx, dword [edx + ebx]
cmp dword [ecx + eax*8], edx
jne 0x10018e62
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x148]
mov dword [ebp - 0x120], eax
jmp 0x10018e67
jmp 0x10018de9
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x120]
push eax
call fcn.1001d4d0
add esp, 4
lea eax, [eax*2 + 2]
sub ebx, eax
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x14c], eax
jle 0x10018eae
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x90007
xor eax, eax
jmp 0x10018efa
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp + 0xc]
mov dword [edx + ecx*8 + 4], eax
mov eax, dword [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.1001d4a0
add esp, 8
jmp 0x10018dbb
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
jmp 0x10018efa
pop edi
pop esi
pop ebx
leave
ret 0x10