Function at 0x466970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x466979
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x466d47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00405080
lea eax, [ebp - 4]
mov edx, edi
call fcn.004050c4
cmp dword [ebp - 4], 0
je 0x4669ea
mov eax, 1
mov edx, dword [ebp - 4]
dec eax
test edx, edx
je 0x4669cb
cmp eax, dword [edx - 4]
jb 0x4669d0
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x5c
jne 0x4669ea
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004055ac
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040550c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x466d12
xor eax, eax
push ebp
push 0x466d0b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.0040550c
mov esi, eax
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x466cf4
mov edx, dword [ebp - 0x1c]
test edx, edx
sar edx, 0
mov eax, ebx
call fcn.00405794
cmp dword [ebx], 0
je 0x466aa8
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx]
call fcn.0040550c
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebx]
call fcn.00405308
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x466a8a
cmp eax, dword [edx - 4]
jb 0x466a8f
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0
jne 0x466aa8
mov eax, dword [ebx]
call fcn.00405308
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405794
cmp dword [ebx], 0
je 0x466cf4
mov eax, 1
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x466ac2
cmp eax, dword [edx - 4]
jb 0x466ac7
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x40
jne 0x466cf4
lea eax, [ebp - 0x10]
mov edx, 0x2800
call fcn.00405bfc
mov eax, dword [ebp - 0x10]
call fcn.00405a28
mov edx, eax
add edx, edx
mov eax, 1
mov ecx, dword [ebp - 0x10]
dec eax
test ecx, ecx
je 0x466afe
cmp eax, dword [ecx - 4]
jb 0x466b03
call fcn.00403edc
inc eax
lea eax, [ecx + eax*2 - 2]
xor ecx, ecx
call fcn.004038b8
cmp dword [0x661538], 0
je 0x466ba4
lea eax, [ebp - 0xc]
mov edx, dword [ebx]
call fcn.00405a08
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405a28
test eax, eax
jns 0x466b39
call fcn.00403edc
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405a18
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405a18
push eax
call dword [0x661538]
call fcn.004086e4
test eax, eax
je 0x466b6e
mov eax, dword [ebp - 0x10]
call fcn.00405a18
mov edx, eax
mov eax, ebx
call fcn.00405254
jmp 0x466b9a
mov edx, dword [ebx]
mov eax, 0x466d60
call fcn.00405650
test eax, eax
jle 0x466b9a
push ebx
mov edx, dword [ebx]
mov eax, 0x466d60
call fcn.00405650
mov edx, eax
inc edx
mov eax, dword [ebx]
mov ecx, 0x7fffffff
call fcn.0040556c
call fcn.00404a30
jmp 0x466d12
mov edx, dword [ebx]
mov eax, 0x466d6c
call fcn.00405650
mov esi, eax
test esi, esi
je 0x466bde
mov eax, dword [ebx]
call fcn.00405308
dec eax
cmp esi, eax
jge 0x466bde
lea eax, [esi + 1]
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x466bd1
cmp eax, dword [edx - 4]
jb 0x466bd6
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x2d
je 0x466be8
call fcn.00404a30
jmp 0x466d12
lea eax, [ebp - 8]
push eax
mov ecx, esi
sub ecx, 2
mov eax, dword [ebx]
mov edx, 2
call fcn.0040556c
lea eax, [ebp - 0x28]
push eax
lea edx, [esi + 2]
mov eax, dword [ebx]
mov ecx, 0x7fffffff
call fcn.0040556c
mov eax, dword [ebp - 0x28]
or edx, 0xffffffff
call fcn.00428718
mov esi, eax
test esi, esi
jge 0x466c2b
call fcn.00404a30
jmp 0x466d12
lea ecx, [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00465cd0
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00427f34
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00428f04
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00427f34
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.004050c4
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x466c85
call fcn.00404a30
jmp 0x466d12
xor eax, eax
push ebp
push 0x466ced
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00405a28
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405a18
push eax
push esi
mov eax, dword [ebp - 0x24]
push eax
call sub.user32.dll_LoadStringW
mov eax, dword [ebp - 0x10]
call fcn.00405a18
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004059c0
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00405adc
je 0x466cd7
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.004052d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466cf4
lea eax, [ebp - 0x24]
call fcn.0040f788
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466d12
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466d4e
lea eax, [ebp - 0x38]
mov edx, 5
call fcn.00405050
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040586c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405050
ret