Function at 0x10041530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100659b8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x100862c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x64], ecx
mov ecx, 0xf
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
cmp eax, esi
mov byte [ebp - 4], 1
je 0x10041820
cmp byte [eax], 0x5b
jne 0x10041820
push eax
mov byte [ebp - 4], 2
call fcn.1004ebe7
add esp, 4
mov ebx, eax
xor edi, edi
cmp edi, 5
jae 0x10041658
mov ecx, dword [edi*8 + 0x10085ffc]
cmp ecx, esi
je 0x100415ed
mov eax, SysReAllocString
xor edx, edx
mov esi, eax
test eax, eax
je 0x100415e2
cmp byte [ecx], 0
je 0x100415f7
add ecx, 1
sub eax, 1
jmp 0x100415d1
mov edx, 0x80070057
xor esi, esi
test edx, edx
jge 0x100415ff
mov esi, 0xd
jmp 0x100417d0
test edx, edx
jl 0x100415e7
sub esi, eax
jmp 0x100415e9
mov ecx, dword [edi*8 + 0x10085ffc]
lea eax, [esi - 1]
push eax
push ecx
push ebx
call fcn.1004fb78
add esp, 0xc
test eax, eax
jne 0x10041664
mov edx, dword [edi*8 + 0x10086000]
add ebx, esi
cmp byte [ebx], 0x5c
mov dword [ebp - 0x58], edx
jne 0x10041634
push ebx
call fcn.1004ebe7
add esp, 4
mov ebx, eax
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10041640
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.100035d5
cmp edi, 5
jne 0x1004166e
mov esi, 0xd
jmp 0x100417d0
add edi, 1
xor esi, esi
jmp 0x100415b4
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x10041680
call fcn.1004bc27
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x10041690
lea eax, [ebp - 0x2c]
cmp byte [eax + esi], 0x5d
je 0x100416a0
mov esi, 0xd
jmp 0x100417d5
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x100416b4
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.10002f3c
jmp 0x100416c1
sub eax, ecx
push 0
push eax
lea ecx, [ebp - 0x30]
call fcn.10040c20
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x50], 0x5c
call fcn.1003f7e0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
lea eax, [ecx - 1]
cmp esi, eax
jne 0x100416f9
cmp eax, ecx
ja 0x100416f2
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.10002f3c
jmp 0x10041752
push 0
sub eax, ecx
push eax
jmp 0x1004174a
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x30]
call fcn.100414f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.1000349e
cmp dword [ebp - 0x68], edi
mov byte [ebp - 4], 2
jb 0x10041731
mov eax, dword [ebp - 0x7c]
push eax
call fcn.1004aa4f
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp esi, eax
ja 0x10041745
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x30]
call fcn.10002f3c
jmp 0x10041752
push 0
sub esi, eax
push esi
lea ecx, [ebp - 0x30]
call fcn.10040c20
cmp dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
je 0x10041782
cmp dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x2c]
jae 0x10041769
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x54]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x100417d5
cmp dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x48]
jae 0x1004178d
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
push ecx
push edx
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x5c]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x100417d5
mov eax, dword [ebp - 0x5c]
cmp eax, 1
je 0x100417d5
cmp eax, 2
je 0x100417d5
mov esi, 0x65e
jmp 0x100417d5
mov edi, 0x10
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x100417e8
cmp dword [ebp - 0x58], eax
je 0x100417e8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], edi
jb 0x100417f9
mov eax, dword [ebp - 0x48]
push eax
call fcn.1004aa4f
add esp, 4
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
jb 0x1004181c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1004aa4f
add esp, 4
mov eax, esi
jmp 0x10041825
mov eax, 0xd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004ada8
mov esp, ebp
pop ebp
ret 8