Function at 0x1058993
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x240], edi
cmp eax, edi
je 0x1058a28
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10589e3
sub eax, edx
sar eax, 1
mov dword [ebp - 0x240], eax
lea eax, [eax + eax + 2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x224], eax
cmp eax, edi
jne 0x1058a28
mov eax, 0x8007000e
push eax
push 0x88b0138
mov dword [ebp - 0x23c], eax
call fcn.010893e6
jmp 0x1058dd6
push esi
mov esi, 0x105
push esi
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x1058b53
cmp dword [ebp - 0x224], 0
je 0x1058a98
mov eax, dword [ebp - 0x240]
push eax
lea ecx, [ebp - 0x220]
push ecx
inc eax
push eax
push dword [ebp - 0x224]
call fcn.0105514b
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x240]
push eax
push dword [ebp - 0x258]
xor ecx, ecx
mov word [eax + edx*2], cx
call fcn.0108c78f
test eax, eax
jne 0x1058b3f
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x1058ac7
push 0x1004208
call fcn.01099014
mov dword [esp], 0x2e3
call fcn.01088aa0
push eax
call fcn.01099014
mov dword [esp], 0x1004208
jmp 0x1058ad7
push 5
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x1058add
push 0x1004208
call fcn.01099014
pop ecx
lea eax, [ebp - 0x220]
push eax
push 0x1001d28
call fcn.01099014
mov eax, dword [0x10cfb34]
inc dword [ebp - 0x22c]
pop ecx
pop ecx
test eax, eax
je 0x1058b3f
mov dword [ebp - 0x248], eax
cmp eax, 3
jae 0x1058b10
dec eax
mov dword [0x10cfb34], eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x244]
push ebx
call fcn.010583a0
mov dword [ebp - 0x23c], eax
test eax, eax
jne 0x1058dca
mov eax, dword [ebp - 0x248]
mov dword [0x10cfb34], eax
inc dword [ebp - 0x228]
push esi
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x228]
push ebx
mov dword [ebp - 0x238], esi
call edi
test eax, eax
je 0x1058a4e
cmp eax, 0x103
je 0x1058b76
push eax
push 0x8960138
call fcn.010893e6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor eax, eax
mov dword [ebp - 0x248], 8
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x234]
push ecx
push eax
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x250]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x228]
mov dword [ebp - 0x238], esi
push dword [ebp - 0x254]
call ebx
cmp eax, edi
je 0x1058c84
cmp eax, 0xea
jne 0x1058d95
mov eax, dword [ebp - 0x234]
add eax, 6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x24c], edi
test edi, edi
je 0x1058daf
lea eax, [ebp - 0x14]
cmp eax, dword [ebp - 0x230]
je 0x1058c31
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x234]
push eax
push edi
lea eax, [ebp - 0x250]
push eax
push 0
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x228]
mov dword [ebp - 0x230], edi
push dword [ebp - 0x254]
mov dword [ebp - 0x238], esi
call ebx
mov dword [ebp - 0x23c], eax
test eax, eax
jne 0x1058dc2
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x1058c9c
mov edx, dword [ebp - 0x234]
xor eax, eax
lea edi, [ecx + edx]
stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [ebp - 0x224], 0
je 0x1058ce2
mov edi, dword [ebp - 0x240]
push edi
lea eax, [ebp - 0x220]
push eax
lea eax, [edi + 1]
push eax
push dword [ebp - 0x224]
call fcn.0105514b
mov eax, dword [ebp - 0x224]
push eax
push dword [ebp - 0x258]
xor ecx, ecx
mov word [eax + edi*2], cx
call fcn.0108c78f
test eax, eax
jne 0x1058d8a
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x1058d12
mov edi, 0x1004208
push edi
call fcn.01099014
mov dword [esp], 0x2e4
call fcn.01088aa0
push eax
call fcn.01099014
push edi
call fcn.01099014
pop ecx
jmp 0x1058d30
cmp dword [ebp - 0x244], 0
jne 0x1058d26
push 5
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x1058d31
push 0x1004208
call fcn.01099014
pop ecx
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1058d3a
lea ecx, [ebp - 0x244]
push ecx
push dword [ebp - 0x24c]
sub eax, edx
push dword [ebp - 0x234]
sar eax, 1
push 0x19
pop ecx
push ecx
pop edx
sub edx, eax
cmp ecx, eax
sbb eax, eax
not eax
and eax, edx
push eax
push 1
push 1
push 0
push dword [ebp - 0x250]
lea eax, [ebp - 0x220]
push eax
push eax
call fcn.010578f4
inc dword [ebp - 0x22c]
inc dword [ebp - 0x228]
jmp 0x1058b9a
cmp eax, 0x103
je 0x1058da7
push eax
push 0x8ce0138
call fcn.010893e6
mov dword [ebp - 0x23c], edi
jmp 0x1058dd5
mov eax, 0x8007000e
push eax
mov dword [ebp - 0x23c], eax
push 0x8d70138
jmp 0x1058dd0
push eax
push 0x8e10138
jmp 0x1058dd0
push eax
push 0x8b80138
call fcn.010893e6
pop esi
cmp dword [ebp - 0x230], 0
pop edi
pop ebx
je 0x1058df8
lea eax, [ebp - 0x14]
cmp eax, dword [ebp - 0x230]
je 0x1058df8
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x224], 0
je 0x1058e0d
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x23c]
call fcn.0108ed8e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01074bd5
leave
ret 0x10