Function at 0x467230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x467239
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 0x467607
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 0x4672aa
mov eax, 1
mov edx, dword [ebp - 4]
dec eax
test edx, edx
je 0x46728b
cmp eax, dword [edx - 4]
jb 0x467290
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x5c
jne 0x4672aa
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 0x4675d2
xor eax, eax
push ebp
push 0x4675cb
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 0x4675b4
mov edx, dword [ebp - 0x1c]
test edx, edx
sar edx, 0
mov eax, ebx
call fcn.00405794
cmp dword [ebx], 0
je 0x467368
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 0x46734a
cmp eax, dword [edx - 4]
jb 0x46734f
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0
jne 0x467368
mov eax, dword [ebx]
call fcn.00405308
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405794
cmp dword [ebx], 0
je 0x4675b4
mov eax, 1
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x467382
cmp eax, dword [edx - 4]
jb 0x467387
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x40
jne 0x4675b4
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 0x4673be
cmp eax, dword [ecx - 4]
jb 0x4673c3
call fcn.00403edc
inc eax
lea eax, [ecx + eax*2 - 2]
xor ecx, ecx
call fcn.004038b8
cmp dword [0x687538], 0
je 0x467464
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 0x4673f9
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 [0x687538]
call fcn.004087f0
test eax, eax
je 0x46742e
mov eax, dword [ebp - 0x10]
call fcn.00405a18
mov edx, eax
mov eax, ebx
call fcn.00405254
jmp 0x46745a
mov edx, dword [ebx]
mov eax, 0x467620
call fcn.00405650
test eax, eax
jle 0x46745a
push ebx
mov edx, dword [ebx]
mov eax, 0x467620
call fcn.00405650
mov edx, eax
inc edx
mov eax, dword [ebx]
mov ecx, 0x7fffffff
call fcn.0040556c
call fcn.00404a30
jmp 0x4675d2
mov edx, dword [ebx]
mov eax, 0x46762c
call fcn.00405650
mov esi, eax
test esi, esi
je 0x46749e
mov eax, dword [ebx]
call fcn.00405308
dec eax
cmp esi, eax
jge 0x46749e
lea eax, [esi + 1]
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x467491
cmp eax, dword [edx - 4]
jb 0x467496
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x2d
je 0x4674a8
call fcn.00404a30
jmp 0x4675d2
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 0x4674eb
call fcn.00404a30
jmp 0x4675d2
lea ecx, [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00466590
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 0x467545
call fcn.00404a30
jmp 0x4675d2
xor eax, eax
push ebp
push 0x4675ad
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 0x467597
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 0x4675b4
lea eax, [ebp - 0x24]
call fcn.0040f894
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4675d2
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 0x46760e
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