Function at 0x1004e200
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079466
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
jne 0x1004e270
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xbad_alloc_void_]
mov dword [ebp - 0x28], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
mov dword [eax], ecx
push esi
mov byte [ebp - 4], 1
call fcn.1004e870
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, edi
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x60], 0
call fcn.1004ea10
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x1004e2c2
xor eax, eax
jmp 0x1004e2c4
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0xffffffffffffffff
mov edi, dword [eax + ecx*4]
lea ecx, [ebp - 0x5c]
mov eax, dword [edi]
mov dword [ebp - 0x60], eax
xor eax, eax
push eax
mov word [ebp - 0x5c], ax
lea eax, [edi + 4]
push eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
call fcn.10001f80
mov byte [ebp - 4], 2
mov al, byte [edi + 0x1c]
mov byte [ebp - 0x44], al
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x40], ax
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
call fcn.10001f80
cmp dword [ebp - 0x18], 0
je 0x1004e38a
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
dec ecx
and ecx, dword [ebp - 0x1c]
mov edi, dword [eax + ecx*4]
cmp dword [edi + 0x34], 8
jb 0x1004e347
push dword [edi + 0x20]
call esi
add esp, 4
xor eax, eax
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], 0
mov word [edi + 0x20], ax
cmp dword [edi + 0x18], 8
jb 0x1004e369
push dword [edi + 4]
call esi
add esp, 4
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], 0
mov word [edi + 4], ax
dec dword [ebp - 0x18]
jne 0x1004e387
mov dword [ebp - 0x1c], eax
jmp 0x1004e38a
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0x2b4], 0
call fcn.1005cd10
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x2b4]
test ecx, ecx
je 0x1004e4bc
test eax, eax
js 0x1004e4b1
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x9c], 0
call fcn.1005c530
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x1004e5fb
mov eax, dword [ecx]
lea edx, [ebp - 0x9c]
push edx
call dword [eax + 8]
cmp eax, 2
je 0x1004e54e
cmp eax, 1
je 0x1004e41b
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x28]
call fcn.1004e870
mov byte [ebp - 4], 4
cmp dword [ebp - 0x68], 8
jb 0x1004e42d
push dword [ebp - 0x7c]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x84], 8
mov word [ebp - 0x7c], ax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 7
jb 0x1004e451
push dword [ebp - 0x98]
call esi
add esp, 4
mov eax, dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x2b4]
dec eax
mov dword [ebp - 0x2b0], eax
test ecx, ecx
je 0x1004e4a3
test eax, eax
js 0x1004e4a3
lea edx, [ebp - 0xa4]
push edx
push 0
push 0
push 0
lea edx, [ebp - 0x64]
push edx
lea edx, [ebp - 0x2ac]
push edx
push eax
push ecx
mov dword [ebp - 0x64], 0x103
call ebx
mov ecx, dword [ebp - 0x2b4]
test eax, eax
mov eax, dword [ebp - 0x2b0]
je 0x1004e3b3
xor edx, edx
mov word [ebp - 0x2ac], dx
jmp 0x1004e3b3
test ecx, ecx
je 0x1004e4bc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 8
jb 0x1004e4ce
push dword [ebp - 0x40]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x1004e4f0
push dword [ebp - 0x5c]
call esi
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x1004e2a0
lea ecx, [ebp - 0x28]
call fcn.1004e920
push dword [ebp - 0x28]
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x1c]
add esp, 4
mov dword [ebp - 0x28], 0
test ecx, ecx
je 0x1004e530
mov edx, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp - 0x68], 8
jb 0x1004e55c
push dword [ebp - 0x7c]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x84], 8
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], ax
jb 0x1004e584
push dword [ebp - 0x98]
call esi
add esp, 4
xor eax, eax
mov word [ebp - 0x98], ax
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x88], 0
test eax, eax
je 0x1004e5b2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2c], 8
jb 0x1004e5c0
push dword [ebp - 0x40]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x1004e5e2
push dword [ebp - 0x5c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
jmp 0x1004e4fa
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xbad_function_call_void_]
int3