Function at 0x4096d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x528
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
mov byte [esp + 0x128], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x22c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x22d]
mov word [esp + 0x330], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x332]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x24]
test eax, eax
je 0x4097a4
mov edi, str.SoftwareMicrosoftMicrosoft_SQL_Server80Tools
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
cmp ecx, str.Help
je 0x4097a4
mov edi, str.Help
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x128]
mov dword [esp + 0x14], 0x104
test eax, eax
mov dword [esp + 0x10], ebx
je 0x409815
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push 0x20019
push ebx
push edx
push 0x80000002
mov byte [esp + 0x13c], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409815
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x128]
push eax
push ecx
push ebx
push ebx
push str.HelpFile
push edx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call ebp
cmp esi, ebx
je 0x409822
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x528
ret
mov ecx, dword [esp + 0x540]
mov edx, dword [esp + 0x544]
lea eax, [esp + 0x22c]
mov dword [esp + 0x18], ecx
test eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], ebx
je 0x4098af
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push 0x20019
push ebx
push edx
push 0x80000002
mov byte [esp + 0x240], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4098af
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x22c]
push eax
push ecx
push ebx
push ebx
push str.HelpLCID
push edx
call edi
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call ebp
cmp esi, ebx
jne 0x4098af
lea ecx, [esp + 0x22c]
push ecx
call fcn.0040d13a
add esp, 4
jmp 0x4098b5
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
lea edx, [esp + 0x330]
mov dword [esp + 0x1c], eax
push 0x104
push edx
lea eax, [esp + 0x130]
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x53c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x334]
push 0xfe
push edx
push eax
call fcn.0040be87
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x528
ret