Function at 0x1005f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x1005fd
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x100cb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
call fcn.00029ddc
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00013d6c
lea eax, [ebp - 0x24]
call fcn.00028ac4
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 0x100cd0
call fcn.00013ff4
cmp byte [ebx], 0
jne 0x10095c
mov eax, edi
mov edx, dword [0xf5394]
call fcn.00015964
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00027578
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
mov ecx, 0x100cf0
call fcn.00013ff4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.0001416c
push eax
push 0x80000003
call sub.advapi32.dll_RegOpenKeyExA_1
mov esi, eax
test esi, esi
je 0x1006da
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x100d10
call fcn.00013ff4
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.000f59c4
cmp dword [ebp - 0x10], 0
je 0x100948
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0001416c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
test esi, esi
je 0x100738
lea edx, [ebp - 0x38]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x100d28
call fcn.00013ff4
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.000f59c4
cmp dword [ebp - 0x1c], 0
jbe 0x100948
cmp dword [ebp - 0x1c], 0x2800
ja 0x100948
mov eax, dword [ebp - 0x1c]
push eax
mov eax, edi
mov ecx, 1
mov edx, dword [0xf5394]
call fcn.00015958
add esp, 4
mov eax, dword [edi]
mov edx, dword [ebp - 0x1c]
call fcn.00018100
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [edi]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0001416c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
test esi, esi
je 0x1007c2
lea edx, [ebp - 0x40]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x100d40
call fcn.00013ff4
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.000f59c4
xor esi, esi
jmp 0x1007ee
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00014630
add eax, eax
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00014620
mov edx, eax
mov eax, dword [edi]
add eax, esi
pop ecx
call fcn.00027350
mov byte [ebx], al
inc esi
cmp byte [ebx], 0
jne 0x10081d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00014630
add eax, eax
add eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x100819
cmp eax, dword [esp]
pop edx
pop eax
ja 0x1007c6
jmp 0x10081d
pop edx
pop eax
jg 0x1007c6
cmp dword [ebp - 0x10], 0
je 0x10082c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00027578
push dword [ebp - 0x44]
push 0x100d58
lea eax, [ebp - 0x48]
call fcn.000252c4
push dword [ebp - 0x48]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00014068
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.0001416c
push eax
push 0x80000003
call sub.advapi32.dll_RegOpenKeyExA_1
mov esi, eax
test esi, esi
je 0x1008b3
lea edx, [ebp - 0x50]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, 0x100d6c
call fcn.00013ff4
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.000f59c4
cmp dword [ebp - 0x10], 0
je 0x100948
lea eax, [ebp - 0x18]
mov edx, 0x20
call fcn.000271f0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x1f
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0001416c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
test esi, esi
je 0x100924
lea edx, [ebp - 0x58]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x100d84
call fcn.00013ff4
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.000f59c4
cmp dword [ebp - 0xc], 1
jne 0x10093b
cmp dword [ebp - 0x1c], 1
jbe 0x10093b
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
call fcn.00013ee0
lea eax, [ebp - 0x18]
mov edx, 0x20
call fcn.00027218
cmp dword [ebp - 0x10], 0
je 0x100957
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
cmp byte [ebx], 0
jne 0x100c78
mov eax, edi
mov edx, dword [0xf5394]
call fcn.00015964
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00027578
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x14]
mov ecx, 0x100d9c
call fcn.00013ff4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.0001416c
push eax
push 0x80000003
call sub.advapi32.dll_RegOpenKeyExA_1
mov esi, eax
test esi, esi
je 0x1009e4
lea edx, [ebp - 0x64]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 0x100db8
call fcn.00013ff4
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.000f59c4
cmp dword [ebp - 0x10], 0
je 0x100c64
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0001416c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
test esi, esi
je 0x100a42
lea edx, [ebp - 0x6c]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x100dd0
call fcn.00013ff4
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.000f59c4
cmp dword [ebp - 0x1c], 0
jbe 0x100c64
cmp dword [ebp - 0x1c], 0x2800
ja 0x100c64
mov eax, dword [ebp - 0x1c]
push eax
mov eax, edi
mov ecx, 1
mov edx, dword [0xf5394]
call fcn.00015958
add esp, 4
mov eax, dword [edi]
mov edx, dword [ebp - 0x1c]
call fcn.00018100
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [edi]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0001416c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
test esi, esi
je 0x100acc
lea edx, [ebp - 0x74]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 0x100de8
call fcn.00013ff4
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.000f59c4
xor esi, esi
jmp 0x100af8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00014630
add eax, eax
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00014620
mov edx, eax
mov eax, dword [edi]
add eax, esi
pop ecx
call fcn.00027350
mov byte [ebx], al
inc esi
cmp byte [ebx], 0
jne 0x100b27
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00014630
add eax, eax
add eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x100b23
cmp eax, dword [esp]
pop edx
pop eax
ja 0x100ad0
jmp 0x100b27
pop edx
pop eax
jg 0x100ad0
cmp dword [ebp - 0x10], 0
je 0x100b36
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00027578
push dword [ebp - 0x78]
push 0x100d58
lea eax, [ebp - 0x7c]
call fcn.000252c4
push dword [ebp - 0x7c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00014068
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.0001416c
push eax
push 0x80000003
call sub.advapi32.dll_RegOpenKeyExA_1
mov esi, eax
test esi, esi
je 0x100bc3
lea edx, [ebp - 0x84]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 0x100e00
call fcn.00013ff4
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.000f59c4
cmp dword [ebp - 0x10], 0
je 0x100c64
lea eax, [ebp - 0x18]
mov edx, 0x20
call fcn.000271f0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x1f
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0001416c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov esi, eax
test esi, esi
je 0x100c40
lea edx, [ebp - 0x8c]
mov eax, esi
call fcn.00027478
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 0x100e18
call fcn.00013ff4
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.000f59c4
cmp dword [ebp - 0xc], 1
jne 0x100c57
cmp dword [ebp - 0x1c], 1
jbe 0x100c57
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
call fcn.00013ee0
lea eax, [ebp - 0x18]
mov edx, 0x20
call fcn.00027218
cmp dword [ebp - 0x10], 0
je 0x100c73
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
cmp byte [ebx], 0
jne 0x100c8a
mov eax, edi
mov edx, dword [0xf5394]
call fcn.00015964
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100cbf
lea eax, [ebp - 0x8c]
mov edx, 0x1c
call fcn.00013d3c
lea eax, [ebp - 0x14]
call fcn.00013d18
lea eax, [ebp - 8]
call fcn.00013d18
ret