Function at 0x1004cd20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079250
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x18], 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 ebx
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x234], 0
call fcn.1005cd10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x234]
nop
test ecx, ecx
je 0x1004cfba
test eax, eax
js 0x1004cfaf
call fcn.100700a0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x284]
push eax
mov ecx, ebx
call fcn.1005c530
mov ebx, eax
push 0x54
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x1004ce49
mov eax, dword [ebx]
mov dword [esi], eax
lea ecx, [esi + 4]
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebx + 4]
push eax
mov dword [ebp - 0x24c], esi
call fcn.10001f80
mov byte [ebp - 4], 4
mov al, byte [ebx + 0x1c]
mov byte [esi + 0x1c], al
lea ecx, [esi + 0x20]
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebx + 0x20]
push eax
call fcn.10001f80
xor eax, eax
mov dword [esi + 0x4c], 7
mov dword [esi + 0x48], 0
mov word [esi + 0x38], ax
mov byte [esi + 0x50], al
jmp 0x1004ce4b
xor esi, esi
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
cmp ecx, eax
jae 0x1004ce92
mov ecx, dword [edi]
lea edx, [ebp - 0x23c]
cmp ecx, edx
ja 0x1004ce92
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [edi + 8]
jne 0x1004ce82
push ecx
mov ecx, edi
call fcn.10008fc0
mov ecx, dword [edi + 4]
mov eax, dword [edi]
test ecx, ecx
je 0x1004cea8
mov eax, dword [eax + esi*4]
mov dword [ecx], eax
jmp 0x1004cea8
cmp eax, dword [edi + 8]
jne 0x1004ce9f
push ecx
mov ecx, edi
call fcn.10008fc0
mov eax, dword [edi + 4]
test eax, eax
je 0x1004cea8
mov dword [eax], esi
add dword [edi + 4], 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x250], 8
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x1004ceca
push dword [ebp - 0x264]
call ebx
add esp, 4
xor eax, eax
cmp dword [ebp - 0x26c], 8
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x254], 0
mov word [ebp - 0x264], ax
jb 0x1004cefb
push dword [ebp - 0x280]
call ebx
add esp, 4
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x234]
dec eax
mov dword [ebp - 0x230], eax
test ecx, ecx
je 0x1004cf55
test eax, eax
js 0x1004cf55
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x22c]
push edx
push eax
push ecx
mov dword [ebp - 0x1c], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp - 0x234]
test eax, eax
mov eax, dword [ebp - 0x230]
jne 0x1004cf55
mov ebx, dword [ebp - 0x240]
jmp 0x1004cd90
mov ebx, dword [ebp - 0x240]
xor edx, edx
mov word [ebp - 0x22c], dx
jmp 0x1004cd90
test ecx, ecx
je 0x1004cfba
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 4