Function at 0x4018a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x38c
lea eax, [esp + 0x8c]
push ebx
push ebp
push esi
push edi
push 0x100
mov ebp, dword [esp + 0x3a4]
push eax
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push 0x225
mov byte [0x4091e0], 0
mov dword [0x408f54], ebp
push ebp
call ebx
lea ecx, [esp + 0x19c]
push ecx
mov eax, dword [esp + 0x3ac]
lea edx, [esp + 0xa0]
push edx
push eax
call fcn.00401040
add esp, 0xc
mov esi, eax
mov dword [esp + 0x10], esi
push ebp
call fcn.00403940
add esp, 4
cmp esi, 3
je 0x401ae4
push ebp
call fcn.00403940
mov edi, 0x4080d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa0]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
add esp, 4
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Jet3.5Engines
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x9c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
push 0x408f58
lea eax, [esp + 0xa0]
push eax
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4019cd
push 0x100
lea ecx, [esp + 0x2a0]
push ecx
mov edx, dword [0x408f54]
push 0x227
push edx
call ebx
push 0x408f5c
lea eax, [esp + 0x2a0]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4019ec
push 0x30
push 0x226
push 0x1ff
push 0
call fcn.00403350
mov esi, dword [esp + 0x20]
add esp, 0x10
jmp 0x401b27
lea ecx, [esp + 0x14]
push ecx
push 0x4091e0
lea edx, [esp + 0x20]
push edx
push 0
mov eax, dword [0x408f58]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.SystemDB
mov dword [esp + 0x28], 0x82
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x20]
push eax
push 0
mov ecx, dword [0x408f58]
push str.UtilityDB
mov dword [esp + 0x28], pe_nt_image_headers32
push ecx
call esi
push pe_nt_image_headers32
lea edx, [esp + 0x20]
push edx
call fcn.00403da0
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add esp, 8
dec ecx
lea eax, [esp + ecx + 0x1b]
cmp byte [eax], 0x5c
jne 0x401a6e
mov byte [eax], 0
mov edi, str.SYSTEM.MDW
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x4091e0]
mov ecx, ebx
and ecx, 3
test al, al
rep movsb byte es:[edi], byte [esi]
jne 0x401ac9
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x4091e0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x21c]
push ecx
push 0x4091e0
call fcn.004035b0
mov esi, dword [esp + 0x18]
add esp, 8
jmp 0x401ae8
mov eax, dword [esp + 0x18]
cmp esi, 3
ja case.default.0x401aed
jmp dword [esi*4 + 0x401b64]
mov edx, dword [esp + 0x3a4]
push ebp
push edx
call fcn.004012b0
add esp, 8
jmp 0x401b27
lea eax, [esp + 0x19c]
push eax
call fcn.004013e0
jmp 0x401b24
push eax
call fcn.00401510
jmp 0x401b24
push eax
call fcn.004015e0
add esp, 4
cmp esi, 3
je 0x401b35
push ebp
call fcn.004039a0
add esp, 4
mov eax, dword [0x408f58]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x401b47
push eax
call esi
mov eax, dword [0x408f5c]
test eax, eax
je 0x401b53
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
xor eax, eax
add esp, 0x38c
ret 0x10