Function at 0x409910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], 0
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 + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esp + 0x438], ebx
jne 0x409a4a
lea eax, [esp + 0x11c]
test eax, eax
je 0x4099e2
mov edi, str.SoftwareMicrosoftMicrosoft_SQL_Server80Tools
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
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 0x4099e2
mov edi, str.Help
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
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 + 0x18]
mov dword [esp + 0x14], 0x104
test eax, eax
mov dword [esp + 0x10], ebx
je 0x409a4a
lea ecx, [esp + 0x10]
lea edx, [esp + 0x11c]
push ecx
push 0x20019
push ebx
push edx
push 0x80000002
mov byte [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409a4a
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
push ebx
push str.HelpPath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x409a6f
mov edi, dword [esp + 0x430]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
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
jmp 0x409ac6
mov edi, 0x41840c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
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
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x430]
or ecx, 0xffffffff
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
lea eax, [esp + 0x220]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x104
push eax
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
push ecx
push 1
push ebx
call esi
mov ebp, dword [esp + 0x434]
mov ebx, dword [esp + 0x42c]
push ebp
lea edx, [esp + 0x224]
push 0xf
push edx
push ebx
call fcn.0040be87
test eax, eax
jne 0x409b49
mov ecx, 0x82
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x430]
lea eax, [esp + 0x220]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 1
push 0
call esi
push ebp
lea edx, [esp + 0x224]
push 0xf
push edx
push ebx
call fcn.0040be87
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret