Function at 0x1059146
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 [0x10d0620]
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 0x10591db
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1059196
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 0x10591db
mov eax, 0x8007000e
push eax
push 0x88b0138
mov dword [ebp - 0x23c], eax
call fcn.0108c55a
jmp 0x1059589
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 0x1059306
cmp dword [ebp - 0x224], 0
je 0x105924b
mov eax, dword [ebp - 0x240]
push eax
lea ecx, [ebp - 0x220]
push ecx
inc eax
push eax
push dword [ebp - 0x224]
call fcn.010558fe
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.0108f903
test eax, eax
jne 0x10592f2
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x105927a
push 0x1004310
call fcn.0109c1a8
mov dword [esp], 0x2e3
call fcn.0108bc14
push eax
call fcn.0109c1a8
mov dword [esp], 0x1004310
jmp 0x105928a
push 5
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x1059290
push 0x1004310
call fcn.0109c1a8
pop ecx
lea eax, [ebp - 0x220]
push eax
push 0x1001d5c
call fcn.0109c1a8
mov eax, dword [0x10d2bc4]
inc dword [ebp - 0x22c]
pop ecx
pop ecx
test eax, eax
je 0x10592f2
mov dword [ebp - 0x248], eax
cmp eax, 3
jae 0x10592c3
dec eax
mov dword [0x10d2bc4], eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x244]
push ebx
call fcn.01058b53
mov dword [ebp - 0x23c], eax
test eax, eax
jne 0x105957d
mov eax, dword [ebp - 0x248]
mov dword [0x10d2bc4], 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 0x1059201
cmp eax, 0x103
je 0x1059329
push eax
push 0x8960138
call fcn.0108c55a
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 0x1059437
cmp eax, 0xea
jne 0x1059548
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 0x1059562
lea eax, [ebp - 0x14]
cmp eax, dword [ebp - 0x230]
je 0x10593e4
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 0x1059575
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x105944f
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 0x1059495
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.010558fe
mov eax, dword [ebp - 0x224]
push eax
push dword [ebp - 0x258]
xor ecx, ecx
mov word [eax + edi*2], cx
call fcn.0108f903
test eax, eax
jne 0x105953d
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x10594c5
mov edi, 0x1004310
push edi
call fcn.0109c1a8
mov dword [esp], 0x2e4
call fcn.0108bc14
push eax
call fcn.0109c1a8
push edi
call fcn.0109c1a8
pop ecx
jmp 0x10594e3
cmp dword [ebp - 0x244], 0
jne 0x10594d9
push 5
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x10594e4
push 0x1004310
call fcn.0109c1a8
pop ecx
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10594ed
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.010580a7
inc dword [ebp - 0x22c]
inc dword [ebp - 0x228]
jmp 0x105934d
cmp eax, 0x103
je 0x105955a
push eax
push 0x8ce0138
call fcn.0108c55a
mov dword [ebp - 0x23c], edi
jmp 0x1059588
mov eax, 0x8007000e
push eax
mov dword [ebp - 0x23c], eax
push 0x8d70138
jmp 0x1059583
push eax
push 0x8e10138
jmp 0x1059583
push eax
push 0x8b80138
call fcn.0108c55a
pop esi
cmp dword [ebp - 0x230], 0
pop edi
pop ebx
je 0x10595ab
lea eax, [ebp - 0x14]
cmp eax, dword [ebp - 0x230]
je 0x10595ab
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x224], 0
je 0x10595c0
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x23c]
call fcn.01091f0e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01077dc7
leave
ret 0x10