Function at 0x403910
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 0x403fb3
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 0x403f68
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 0x40399f
cmp dword [ebp - 0x10], 1
jne 0x40399f
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 0x4039fe
cmp dword [ebp - 0x10], 1
jne 0x4039fe
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 0x403a60
cmp dword [ebp - 0x10], 1
jne 0x403a60
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 0x403ac2
cmp dword [ebp - 0x10], 1
jne 0x403ac2
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 0x403b27
cmp dword [ebp - 0x10], 1
jne 0x403b27
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 0x403b8c
cmp dword [ebp - 0x10], 1
jne 0x403b8c
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 0x403bf1
cmp dword [ebp - 0x10], 1
jne 0x403bf1
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_1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call sub.MFC40.DLL_CString::CString_1
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC40.DLL_CString::CString
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp dword [eax - 8], 0
je 0x403e10
push 0x7c
lea ecx, [ebp - 0x18]
call sub.MFC40.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x403c43
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
push eax
call sub.MFC40.DLL_CString::operator_1
jmp 0x403c70
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 sub.MFC40.DLL_CString::operator_1
mov byte [ebp - 4], 2
call fcn.00403ebc
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], 0
je 0x403d9c
push str.cabcommand
lea ecx, [ebp - 0x40]
call sub.MFC40.DLL_CString::CString
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 sub.MFC40.DLL_CString::operator_1
mov byte [ebp - 4], 4
call fcn.00403ea4
mov byte [ebp - 4], 2
call fcn.00403e9c
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 0x403d0b
cmp dword [ebp - 0x10], 1
jne 0x403d0b
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 sub.MFC40.DLL_CString::operator
push str.cabparameters
lea ecx, [ebp - 0x48]
mov ebx, 6
call sub.MFC40.DLL_CString::CString
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 sub.MFC40.DLL_CString::operator_1
mov byte [ebp - 4], bl
call fcn.00403e94
mov byte [ebp - 4], 2
call fcn.00403e8c
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 0x403d9c
cmp dword [ebp - 0x10], 1
jne 0x403d9c
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 sub.MFC40.DLL_CString::operator
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 sub.MFC40.DLL_CString::operator_1
mov byte [ebp - 4], 2
call fcn.00403eb4
push 0x7c
lea ecx, [ebp - 0x18]
call sub.MFC40.DLL_CString::Find
test eax, eax
jne 0x403e03
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 sub.MFC40.DLL_CString::operator_1
mov byte [ebp - 4], 2
call fcn.00403eac
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], 0
jne 0x403c26
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 0x403f4a
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 0x403ec4
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 0x403ec6
xor ebx, ebx
mov byte [ebp - 4], 2
test ebx, ebx
je 0x403f1a
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 0x403f1a
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.00403910
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 0x403e49
mov byte [ebp - 4], 1
call fcn.00403fa3
mov byte [ebp - 4], 0
call fcn.00403fab
mov dword [ebp - 4], 0xffffffff
call fcn.00403fbd
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8