Function at 0x467208
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x467211
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 0x4675df
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 0x467282
mov eax, 1
mov edx, dword [ebp - 4]
dec eax
test edx, edx
je 0x467263
cmp eax, dword [edx - 4]
jb 0x467268
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x5c
jne 0x467282
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 0x4675aa
xor eax, eax
push ebp
push 0x4675a3
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 0x46758c
mov edx, dword [ebp - 0x1c]
test edx, edx
sar edx, 0
mov eax, ebx
call fcn.00405794
cmp dword [ebx], 0
je 0x467340
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 0x467322
cmp eax, dword [edx - 4]
jb 0x467327
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0
jne 0x467340
mov eax, dword [ebx]
call fcn.00405308
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405794
cmp dword [ebx], 0
je 0x46758c
mov eax, 1
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x46735a
cmp eax, dword [edx - 4]
jb 0x46735f
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x40
jne 0x46758c
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 0x467396
cmp eax, dword [ecx - 4]
jb 0x46739b
call fcn.00403edc
inc eax
lea eax, [ecx + eax*2 - 2]
xor ecx, ecx
call fcn.004038b8
cmp dword [0x680538], 0
je 0x46743c
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 0x4673d1
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 [0x680538]
call fcn.004087f0
test eax, eax
je 0x467406
mov eax, dword [ebp - 0x10]
call fcn.00405a18
mov edx, eax
mov eax, ebx
call fcn.00405254
jmp 0x467432
mov edx, dword [ebx]
mov eax, 0x4675f8
call fcn.00405650
test eax, eax
jle 0x467432
push ebx
mov edx, dword [ebx]
mov eax, 0x4675f8
call fcn.00405650
mov edx, eax
inc edx
mov eax, dword [ebx]
mov ecx, 0x7fffffff
call fcn.0040556c
call fcn.00404a30
jmp 0x4675aa
mov edx, dword [ebx]
mov eax, 0x467604
call fcn.00405650
mov esi, eax
test esi, esi
je 0x467476
mov eax, dword [ebx]
call fcn.00405308
dec eax
cmp esi, eax
jge 0x467476
lea eax, [esi + 1]
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x467469
cmp eax, dword [edx - 4]
jb 0x46746e
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x2d
je 0x467480
call fcn.00404a30
jmp 0x4675aa
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.0042882c
mov esi, eax
test esi, esi
jge 0x4674c3
call fcn.00404a30
jmp 0x4675aa
lea ecx, [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00466568
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00428048
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00429134
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00428048
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 0x46751d
call fcn.00404a30
jmp 0x4675aa
xor eax, eax
push ebp
push 0x467585
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 0x46756f
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 0x46758c
lea eax, [ebp - 0x24]
call fcn.0040f894
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4675aa
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 0x4675e6
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