Function at 0x10008140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000cc18
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10014018]
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 + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
xor ebx, ebx
mov esi, 1
mov dword [ebp - 4], esi
xor edx, edx
push ebx
mov eax, 0x1000e3a0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.10001ce0
mov byte [ebp - 4], 2
mov byte [ebp - 0x2d], 1
cmp byte [ebp + 0x4c], bl
je 0x10008240
mov ecx, dword [ebp + 0x30]
mov eax, 8
cmp dword [ebp + 0x44], eax
jae 0x100081c3
lea ecx, [ebp + 0x30]
cmp dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x14]
jae 0x100081ce
lea eax, [ebp + 0x14]
mov edx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x34]
push eax
push edi
call fcn.10006c70
add esp, 0xc
cmp al, 1
jne 0x10008240
cmp dword [ebp - 0x18], 8
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x100081f8
mov eax, dword [ebp - 0x2c]
push eax
call esi
add esp, 4
xor ecx, ecx
mov edi, 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp + 0x28], edi
jb 0x1000821b
mov edx, dword [ebp + 0x14]
push edx
call esi
add esp, 4
xor eax, eax
mov dword [ebp + 0x28], 7
mov dword [ebp + 0x24], ebx
mov word [ebp + 0x14], ax
cmp dword [ebp + 0x44], edi
jb 0x10008239
mov ecx, dword [ebp + 0x30]
push ecx
call esi
add esp, 4
mov al, 1
jmp 0x100083af
mov dword [ebp - 0x40], 0x20019
cmp dword [0x100147cc], ebx
jne 0x100082fb
mov ebx, 0x1000e328
mov dword [0x100147cc], esi
call section..text
mov esi, eax
test esi, esi
je 0x10008282
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x100082e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
mov eax, dword [ebp + 0x14]
mov esi, 8
cmp dword [ebp + 0x28], esi
jae 0x10008294
lea eax, [ebp + 0x14]
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
push edx
push ecx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008318
mov eax, dword [ebp + 0x30]
cmp dword [ebp + 0x44], esi
jae 0x100082b8
lea eax, [ebp + 0x30]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x3c]
push edi
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100082d4
mov byte [ebp - 0x2d], bl
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000831b
push 0x100147d0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
push esi
test eax, eax
je 0x1000827c
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
cmp dword [0x100147d0], ebx
setne al
cmp al, bl
je 0x10008284
mov dword [ebp - 0x40], 0x20119
jmp 0x10008284
mov byte [ebp - 0x2d], bl
cmp byte [ebp + 0x4c], bl
je 0x10008357
cmp byte [ebp - 0x2d], 1
jne 0x10008357
cmp edi, ebx
je 0x10008357
mov edx, dword [ebp + 0x30]
cmp dword [ebp + 0x44], esi
jae 0x10008335
lea edx, [ebp + 0x30]
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 0x28], esi
jae 0x10008340
lea eax, [ebp + 0x14]
mov ecx, dword [ebp - 0x38]
push eax
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x34]
push eax
mov eax, dword [ecx]
push eax
mov ecx, edi
call fcn.10006ee0
add esp, 0xc
cmp dword [ebp - 0x18], esi
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x1000836b
mov ecx, dword [ebp - 0x2c]
push ecx
call esi
add esp, 4
xor edx, edx
mov edi, 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp + 0x28], edi
jb 0x1000838e
mov eax, dword [ebp + 0x14]
push eax
call esi
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x28], 7
mov dword [ebp + 0x24], ebx
mov word [ebp + 0x14], cx
cmp dword [ebp + 0x44], edi
jb 0x100083ac
mov edx, dword [ebp + 0x30]
push edx
call esi
add esp, 4
mov al, byte [ebp - 0x2d]
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.1000b730
mov esp, ebp
pop ebp
ret 0x48