Function at 0x1059084
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 [0x10d0640]
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 0x1059119
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10590d4
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 0x1059119
mov eax, 0x8007000e
push eax
push 0x88b0138
mov dword [ebp - 0x23c], eax
call fcn.0108c503
jmp 0x10594c7
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 0x1059244
cmp dword [ebp - 0x224], 0
je 0x1059189
mov eax, dword [ebp - 0x240]
push eax
lea ecx, [ebp - 0x220]
push ecx
inc eax
push eax
push dword [ebp - 0x224]
call fcn.0105583c
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.0108f8de
test eax, eax
jne 0x1059230
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x10591b8
push 0x10042f8
call fcn.0109c1c3
mov dword [esp], 0x2e3
call fcn.0108bbbd
push eax
call fcn.0109c1c3
mov dword [esp], 0x10042f8
jmp 0x10591c8
push 5
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x10591ce
push 0x10042f8
call fcn.0109c1c3
pop ecx
lea eax, [ebp - 0x220]
push eax
push 0x1001d58
call fcn.0109c1c3
mov eax, dword [0x10d2be4]
inc dword [ebp - 0x22c]
pop ecx
pop ecx
test eax, eax
je 0x1059230
mov dword [ebp - 0x248], eax
cmp eax, 3
jae 0x1059201
dec eax
mov dword [0x10d2be4], eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x244]
push ebx
call fcn.01058a91
mov dword [ebp - 0x23c], eax
test eax, eax
jne 0x10594bb
mov eax, dword [ebp - 0x248]
mov dword [0x10d2be4], 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 0x105913f
cmp eax, 0x103
je 0x1059267
push eax
push 0x8960138
call fcn.0108c503
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 0x1059375
cmp eax, 0xea
jne 0x1059486
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 0x10594a0
lea eax, [ebp - 0x14]
cmp eax, dword [ebp - 0x230]
je 0x1059322
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 0x10594b3
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x105938d
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 0x10593d3
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.0105583c
mov eax, dword [ebp - 0x224]
push eax
push dword [ebp - 0x258]
xor ecx, ecx
mov word [eax + edi*2], cx
call fcn.0108f8de
test eax, eax
jne 0x105947b
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x1059403
mov edi, 0x10042f8
push edi
call fcn.0109c1c3
mov dword [esp], 0x2e4
call fcn.0108bbbd
push eax
call fcn.0109c1c3
push edi
call fcn.0109c1c3
pop ecx
jmp 0x1059421
cmp dword [ebp - 0x244], 0
jne 0x1059417
push 5
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x1059422
push 0x10042f8
call fcn.0109c1c3
pop ecx
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x105942b
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.01057fe5
inc dword [ebp - 0x22c]
inc dword [ebp - 0x228]
jmp 0x105928b
cmp eax, 0x103
je 0x1059498
push eax
push 0x8ce0138
call fcn.0108c503
mov dword [ebp - 0x23c], edi
jmp 0x10594c6
mov eax, 0x8007000e
push eax
mov dword [ebp - 0x23c], eax
push 0x8d70138
jmp 0x10594c1
push eax
push 0x8e10138
jmp 0x10594c1
push eax
push 0x8b80138
call fcn.0108c503
pop esi
cmp dword [ebp - 0x230], 0
pop edi
pop ebx
je 0x10594e9
lea eax, [ebp - 0x14]
cmp eax, dword [ebp - 0x230]
je 0x10594e9
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x224], 0
je 0x10594fe
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x23c]
call fcn.01091ee9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01077d0b
leave
ret 0x10