Function at 0x467158
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x467161
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 0x46752f
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 0x4671d2
mov eax, 1
mov edx, dword [ebp - 4]
dec eax
test edx, edx
je 0x4671b3
cmp eax, dword [edx - 4]
jb 0x4671b8
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x5c
jne 0x4671d2
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 0x4674fa
xor eax, eax
push ebp
push 0x4674f3
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 0x4674dc
mov edx, dword [ebp - 0x1c]
test edx, edx
sar edx, 0
mov eax, ebx
call fcn.00405794
cmp dword [ebx], 0
je 0x467290
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 0x467272
cmp eax, dword [edx - 4]
jb 0x467277
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0
jne 0x467290
mov eax, dword [ebx]
call fcn.00405308
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405794
cmp dword [ebx], 0
je 0x4674dc
mov eax, 1
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x4672aa
cmp eax, dword [edx - 4]
jb 0x4672af
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x40
jne 0x4674dc
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 0x4672e6
cmp eax, dword [ecx - 4]
jb 0x4672eb
call fcn.00403edc
inc eax
lea eax, [ecx + eax*2 - 2]
xor ecx, ecx
call fcn.004038b8
cmp dword [0x670538], 0
je 0x46738c
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 0x467321
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 [0x670538]
call fcn.00408768
test eax, eax
je 0x467356
mov eax, dword [ebp - 0x10]
call fcn.00405a18
mov edx, eax
mov eax, ebx
call fcn.00405254
jmp 0x467382
mov edx, dword [ebx]
mov eax, 0x467548
call fcn.00405650
test eax, eax
jle 0x467382
push ebx
mov edx, dword [ebx]
mov eax, 0x467548
call fcn.00405650
mov edx, eax
inc edx
mov eax, dword [ebx]
mov ecx, 0x7fffffff
call fcn.0040556c
call fcn.00404a30
jmp 0x4674fa
mov edx, dword [ebx]
mov eax, 0x467554
call fcn.00405650
mov esi, eax
test esi, esi
je 0x4673c6
mov eax, dword [ebx]
call fcn.00405308
dec eax
cmp esi, eax
jge 0x4673c6
lea eax, [esi + 1]
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x4673b9
cmp eax, dword [edx - 4]
jb 0x4673be
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x2d
je 0x4673d0
call fcn.00404a30
jmp 0x4674fa
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.004287a4
mov esi, eax
test esi, esi
jge 0x467413
call fcn.00404a30
jmp 0x4674fa
lea ecx, [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004664b8
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00427fc0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.004290ac
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00427fc0
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 0x46746d
call fcn.00404a30
jmp 0x4674fa
xor eax, eax
push ebp
push 0x4674d5
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 0x4674bf
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 0x4674dc
lea eax, [ebp - 0x24]
call fcn.0040f80c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4674fa
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 0x467536
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