Function at 0x403af0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404193
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
mov dword [ebp - 0x28], 0x64
push ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x14], 0xff
cmp dword [ebp + 8], 0
push esi
push edi
je 0x404148
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x14c]
push edx
mov ecx, dword [ebp + 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403b7f
cmp dword [ebp - 0x10], 1
jne 0x403b7f
lea edi, [ebp - 0x14c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
add ebx, 0x32
push ecx
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push edx
mov byte [ebx], 0
mov dword [ebp - 0x14], 0xff
push 0
push str.command
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403bde
cmp dword [ebp - 0x10], 1
jne 0x403bde
lea edi, [ebp - 0x14c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
add ebx, 0x235
push ecx
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push edx
mov byte [ebx], 0
mov dword [ebp - 0x14], 0xff
push 0
push str.description
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403c40
cmp dword [ebp - 0x10], 1
jne 0x403c40
lea edi, [ebp - 0x14c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
add ebx, 0x4a1
push ecx
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push edx
mov byte [ebx], 0
mov dword [ebp - 0x14], 0x104
push 0
push str.cabextensions
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403ca2
cmp dword [ebp - 0x10], 1
jne 0x403ca2
lea edi, [ebp - 0x14c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
add eax, 0x299
push ecx
lea edx, [ebp - 0x14c]
mov dword [ebp - 0x1c], eax
push edx
mov byte [eax], 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0x104
push eax
push 0
push str.cabcommand
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403d07
cmp dword [ebp - 0x10], 1
jne 0x403d07
lea edi, [ebp - 0x14c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
add eax, 0x39d
push ecx
lea edx, [ebp - 0x14c]
mov dword [ebp - 0x1c], eax
push edx
mov byte [eax], 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0x104
push eax
push 0
push str.cabparameters
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403d6c
cmp dword [ebp - 0x10], 1
jne 0x403d6c
lea edi, [ebp - 0x14c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
add eax, 0x131
push ecx
lea edx, [ebp - 0x14c]
mov dword [ebp - 0x1c], eax
push edx
mov byte [eax], 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0x104
push eax
push 0
push str.parameters
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403dd1
cmp dword [ebp - 0x10], 1
jne 0x403dd1
lea edi, [ebp - 0x14c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x24]
call sub.MFC40.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call sub.MFC40.DLL_CString::CString
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC40.DLL_CString::CString_1
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp dword [eax - 8], 0
je 0x403ff0
push 0x7c
lea ecx, [ebp - 0x18]
call sub.MFC40.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x403e23
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
push eax
call fcn.0041559a
jmp 0x403e50
push 0x7c
lea ecx, [ebp - 0x18]
call sub.MFC40.DLL_CString::Find
push eax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
call sub.MFC40.DLL_CString::Left
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0041559a
mov byte [ebp - 4], 2
call fcn.0040409c
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], 0
je 0x403f7c
push str.cabcommand
lea ecx, [ebp - 0x40]
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x20]
push eax
push ecx
call sub.MFC40.DLL_operator
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0041559a
mov byte [ebp - 4], 4
call fcn.00404084
mov byte [ebp - 4], 2
call fcn.0040407c
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x14c]
push eax
lea edx, [ebp - 0x10]
push ecx
mov eax, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0x104
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403eeb
cmp dword [ebp - 0x10], 1
jne 0x403eeb
lea eax, [ebp - 0x14c]
mov ecx, dword [ebp - 0x20]
push eax
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x5ac
call sub.MFC40.DLL_CMapStringToString::operator
mov ecx, eax
call fcn.00415798
push str.cabparameters
lea ecx, [ebp - 0x48]
mov ebx, 6
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], bl
push eax
push ecx
call sub.MFC40.DLL_operator
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.0041559a
mov byte [ebp - 4], bl
call fcn.00404074
mov byte [ebp - 4], 2
call fcn.0040406c
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x14c]
push eax
lea edx, [ebp - 0x10]
push ecx
mov eax, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0x104
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403f7c
cmp dword [ebp - 0x10], 1
jne 0x403f7c
lea eax, [ebp - 0x14c]
mov ecx, dword [ebp - 0x20]
push eax
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x5c8
call sub.MFC40.DLL_CMapStringToString::operator
mov ecx, eax
call fcn.00415798
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x2c]
mov eax, dword [eax - 8]
sub eax, dword [ecx - 8]
lea ecx, [ebp - 0x18]
push eax
push edx
call sub.MFC40.DLL_CString::Right
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.0041559a
mov byte [ebp - 4], 2
call fcn.00404094
push 0x7c
lea ecx, [ebp - 0x18]
call sub.MFC40.DLL_CString::Find
test eax, eax
jne 0x403fe3
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC40.DLL_CString::Right
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.0041559a
mov byte [ebp - 4], 2
call fcn.0040408c
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], 0
jne 0x403e06
mov eax, dword [ebp + 8]
mov esi, 1
push 0
lea ecx, [ebp - 0x28]
mov dword [eax + 0x5e8], 0
push 0
lea eax, [ebp - 0x1b4]
push 0
mov edx, dword [ebp + 0xc]
push 0
push ecx
push eax
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40412a
push 0x5ec
call sub.MSVCRT40.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebp - 0x2c], eax
add esp, 4
mov byte [ebp - 4], 0xa
mov edi, eax
test edi, edi
je 0x4040a4
push 0xa
lea ecx, [edi + 0x5ac]
mov ebx, edi
mov dword [ebp - 0x1c], edi
call sub.MFC40.DLL_CMapStringToString::CMapStringToString
push 0xa
lea ecx, [edi + 0x5c8]
mov byte [ebp - 4], 0xb
call sub.MFC40.DLL_CMapStringToString::CMapStringToString
mov byte [ebp - 4], 0xa
jmp 0x4040a6
xor ebx, ebx
mov byte [ebp - 4], 2
test ebx, ebx
je 0x4040fa
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x1b4]
push eax
mov edx, dword [ebp + 0xc]
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4040fa
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5e8]
mov dword [ebx + 0x5e4], ecx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x5e8], ebx
push edx
push ebx
call fcn.00403af0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
push 0
inc esi
push 0
push 0
lea eax, [ebp - 0x28]
push 0
lea edx, [ebp - 0x1b4]
mov dword [ebp - 0x28], 0x64
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x404029
mov byte [ebp - 4], 1
call fcn.00404183
mov byte [ebp - 4], 0
call fcn.0040418b
mov dword [ebp - 4], 0xffffffff
call fcn.0040419d
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8