Function at 0x108596d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 0x14]
push edi
xor edi, edi
cmp ecx, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
je 0x1085990
mov dword [ecx], edi
mov eax, dword [ebp + 0x20]
cmp eax, edi
je 0x1085999
mov dword [eax], edi
mov eax, dword [ebp + 0x24]
cmp eax, edi
je 0x10859a2
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
cmp eax, edi
push ebx
push esi
je 0x1085e85
cmp dword [ebp + 0x10], edi
je 0x1085e85
cmp ecx, edi
je 0x1085e85
cmp dword [ebp + 0x18], edi
je 0x1085e85
cmp dword [ebp + 0x1c], edi
je 0x1085e85
cmp dword [ebp + 8], edi
mov dword [ebp - 0x18], 0x101a9b4
jne 0x10859e5
mov dword [ebp - 0x18], 0x101a9ac
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10859e8
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [ebp - 0x18]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
cmp si, di
jne 0x10859fe
sub eax, edx
sar eax, 1
lea esi, [eax + ecx + 0x3a]
lea eax, [esi + esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x1c], ebx
jne 0x1085a39
mov edi, 0x8007000e
push edi
push 0xbc01a4
call fcn.0107ae44
jmp 0x1085ea4
push 0x101aba8
push esi
push ebx
call fcn.01028f74
push dword [ebp + 0xc]
push esi
push ebx
call fcn.0102920e
push 0x1008080
push esi
push ebx
call fcn.0102920e
push dword [ebp - 0x18]
push esi
push ebx
call fcn.0102920e
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x1085a95
push 2
push edi
push 0xcb01a4
push ebx
call fcn.0107adc0
jmp 0x1085ea4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
lea ecx, [ebp - 8]
push ecx
push eax
mov ebx, 0x101a9ec
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call esi
mov edi, eax
test edi, edi
je 0x1085ac6
push edi
push 0xd501a4
jmp 0x1085a2f
cmp dword [ebp - 8], 1
je 0x1085adc
mov edi, 0x80070057
push edi
push 0xda01a4
jmp 0x1085a2f
mov eax, dword [ebp - 4]
add eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x1085b02
mov edi, 0x8007000e
push edi
push 0xe301a4
jmp 0x1085e90
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [ebp - 0xc]
call esi
mov edi, eax
test edi, edi
je 0x1085b24
push edi
push 0xec01a4
jmp 0x1085e90
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
push 4
pop ebx
shr eax, 1
and word [ecx + eax*2], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push 0x101a9d0
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
mov edi, eax
test edi, edi
je 0x1085b5f
push edi
push 0xf801a4
jmp 0x1085e90
cmp dword [ebp - 8], ebx
je 0x1085b74
mov edi, 0x80070057
push edi
push 0xfd01a4
jmp 0x1085e90
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x1085c04
cmp dword [ebp + 8], 0
mov dword [ebp - 4], ebx
mov eax, 0x101aa1c
jne 0x1085b93
mov eax, 0x101aa00
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x18]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [ebp - 0xc]
call esi
mov edi, eax
test edi, edi
je 0x1085bef
cmp dword [ebp + 8], 0
je 0x1085be0
push 2
push edi
push 0x11201a4
push 0x101aa1c
call fcn.0107adc0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 8]
push eax
push 0
push 0x101aa00
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
mov edi, eax
test edi, edi
je 0x1085bef
push edi
push 0x11c01a4
jmp 0x1085e90
cmp dword [ebp - 8], ebx
je 0x1085c04
mov edi, 0x80070057
push edi
push 0x12101a4
jmp 0x1085e90
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push eax
push 0
push 0x101aa44
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
mov edi, eax
test edi, edi
je 0x1085c2f
push edi
push 0x12d01a4
jmp 0x1085e90
cmp dword [ebp - 8], ebx
je 0x1085c44
mov edi, 0x80070057
push edi
push 0x13201a4
jmp 0x1085e90
cmp dword [ebp + 0x20], 0
je 0x1085c8a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 8]
push eax
push 0
push 0x101aa60
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
mov edi, eax
test edi, edi
je 0x1085c75
push edi
push 0x13e01a4
jmp 0x1085e90
cmp dword [ebp - 8], ebx
je 0x1085c8a
mov edi, 0x80070057
push edi
push 0x14301a4
jmp 0x1085e90
xor edi, edi
cmp dword [ebp + 0x24], edi
je 0x1085cce
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
lea eax, [ebp - 8]
push eax
push edi
push 0x101aa70
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
cmp eax, edi
jne 0x1085cc3
cmp dword [ebp - 8], ebx
je 0x1085cce
mov edi, 0x80070057
push edi
push 0x15501a4
jmp 0x1085e90
push eax
push 0x15a01a4
call fcn.0107ae44
cmp dword [ebp + 0x30], edi
je 0x1085d20
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x101ab14
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
cmp eax, edi
je 0x1085cfe
push eax
push 0x16901a4
call fcn.0107ae44
jmp 0x1085d20
cmp dword [ebp - 8], ebx
je 0x1085d13
mov edi, 0x80070057
push edi
push 0x17001a4
jmp 0x1085e90
mov ecx, dword [ebp + 0x30]
xor eax, eax
cmp dword [ebp - 0x20], edi
setne al
mov dword [ecx], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
mov ebx, 0x101aa94
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
jne 0x1085daa
cmp dword [ebp - 8], 1
je 0x1085d52
mov edi, 0x80070057
push edi
push 0x18301a4
jmp 0x1085e90
mov eax, dword [ebp - 4]
add eax, 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x1085d77
mov edi, 0x8007000e
push edi
push 0x18c01a4
jmp 0x1085e90
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [ebp - 0xc]
call esi
mov edi, eax
test edi, edi
je 0x1085d9b
push edi
push 0x19501a4
jmp 0x1085e90
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
shr eax, 1
and word [ecx + eax*2], 0
jmp 0x1085db6
push eax
push 0x19b01a4
push ebx
call fcn.0107ae7f
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
mov ebx, 0x101aae4
mov edi, 0x101aac0
mov eax, ebx
jne 0x1085dce
mov eax, edi
lea ecx, [ebp - 4]
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x1085e53
cmp dword [ebp - 8], 1
je 0x1085dfa
mov edi, 0x80070057
push edi
push 0x1ad01a4
jmp 0x1085e90
mov eax, dword [ebp - 4]
add eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x1085e1d
mov edi, 0x8007000e
push edi
push 0x1b601a4
jmp 0x1085e90
cmp dword [ebp + 8], 0
mov eax, ebx
jne 0x1085e27
mov eax, edi
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push dword [ebp - 0xc]
call esi
mov edi, eax
test edi, edi
je 0x1085e49
push edi
push 0x1c101a4
jmp 0x1085e90
mov eax, dword [ebp - 4]
shr eax, 1
and word [ebx + eax*2], 0
mov eax, dword [ebp + 0x28]
xor edi, edi
cmp eax, edi
je 0x1085e68
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x1085e68
mov dword [eax], ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x2c]
cmp eax, edi
je 0x1085e7b
mov ecx, dword [ebp - 0x14]
cmp ecx, edi
je 0x1085e7b
mov dword [eax], ecx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x1085ea4
mov edi, 0x80004003
push edi
push 0xaf01a4
call fcn.0107ae44
cmp dword [ebp - 0x18], 0
je 0x1085ea4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x1085eb4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], esi
je 0x1085ec2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x10], esi
je 0x1085ed0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], esi
pop esi
pop ebx
je 0x1085ee0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.010a47cf
pop edi
leave
ret 0x2c