Function at 0x1004cfe0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100792b2
mov eax, dword fs:[0]
push eax
sub esp, 0x294
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 dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
push 1
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.MSVCP110.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_]
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov esi, dword [ecx + 0x14]
cmp esi, 8
jb 0x1004d066
mov edx, dword [ecx]
jmp 0x1004d068
mov edx, ecx
mov eax, dword [ecx + 0x10]
lea eax, [edx + eax*2]
cmp esi, 8
jb 0x1004d075
mov ecx, dword [ecx]
push dword [ebp - 0x25c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.1004ebc0
push ebx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x250], 0
call fcn.1005cd10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x250]
lea esp, [esp]
test ecx, ecx
je 0x1004d295
test eax, eax
js 0x1004d28a
call fcn.100700a0
cmp word [ebp - 0x248], 0
jne 0x1004d0d3
xor ecx, ecx
jmp 0x1004d0ef
lea ecx, [ebp - 0x248]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d0e0
sub ecx, edx
sar ecx, 1
lea eax, [ebp - 0x248]
push eax
push 0x10
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x248]
push eax
lea edx, [edx + ecx*2]
push 0
lea ecx, [ebp - 0x248]
call fcn.1004eca0
add esp, 0x10
test al, al
je 0x1004d229
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x29c]
push eax
mov ecx, ebx
call fcn.1005c530
mov ebx, eax
push 0x54
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x1004d171
push ebx
mov ecx, esi
call fcn.10009200
xor eax, eax
mov dword [esi + 0x4c], 7
mov dword [esi + 0x48], 0
mov word [esi + 0x38], ax
mov byte [esi + 0x50], al
jmp 0x1004d173
xor esi, esi
mov byte [ebp - 4], 4
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], esi
cmp ecx, eax
jae 0x1004d1ba
mov ecx, dword [edi]
lea edx, [ebp - 0x258]
cmp ecx, edx
ja 0x1004d1ba
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [edi + 8]
jne 0x1004d1aa
push ecx
mov ecx, edi
call fcn.10008fc0
mov ecx, dword [edi + 4]
mov eax, dword [edi]
test ecx, ecx
je 0x1004d1d0
mov eax, dword [eax + esi*4]
mov dword [ecx], eax
jmp 0x1004d1d0
cmp eax, dword [edi + 8]
jne 0x1004d1c7
push ecx
mov ecx, edi
call fcn.10008fc0
mov eax, dword [edi + 4]
test eax, eax
je 0x1004d1d0
mov dword [eax], esi
add dword [edi + 4], 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x268], 8
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x1004d1f2
push dword [ebp - 0x27c]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0x284], 8
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
jb 0x1004d223
push dword [ebp - 0x298]
call ebx
add esp, 4
mov ebx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x250]
dec eax
mov dword [ebp - 0x24c], eax
test ecx, ecx
je 0x1004d27c
test eax, eax
js 0x1004d27c
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x248]
push edx
push eax
push ecx
mov dword [ebp - 0x18], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x250]
test eax, eax
mov eax, dword [ebp - 0x24c]
je 0x1004d0b0
xor edx, edx
mov word [ebp - 0x248], dx
jmp 0x1004d0b0
test ecx, ecx
je 0x1004d295
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1004d2c3
dec dword [eax + 0x20]
jne 0x1004d2c3
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x1004d2c3
lea eax, [esi + 0xc]
mov ecx, esi
mov esi, dword [eax]
mov dword [eax], 0
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
jne 0x1004d2ac
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], 0
test ecx, ecx
je 0x1004d2e2
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1004d2e2
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov al, 1
jmp 0x1004d33d
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 8