Function at 0x401210
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x244c
call fcn.004096f0
mov dword [esp], ecx
push ebx
mov dword [esp + 0x10], 0x4411fc
mov dword [esp + 0x14], 0x4411f8
mov dword [esp + 0x18], 0x4411f4
mov dword [esp + 0x1c], 0x4411f0
mov dword [esp + 0x20], 0x4411ec
mov dword [esp + 0x24], 0x4411e8
mov dword [esp + 0x28], 0x4411e4
push esi
push edi
push ebp
push 0x1000
lea eax, [esp + 0x460]
lea ecx, [esp + 0x1460]
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x40], 0x4411e0
call fcn.00432499
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40129a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x244c
ret
lea eax, [esp + 0x45c]
push 0x1000
lea ecx, [esp + 0x1460]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x4012c4
lea eax, [esp + 0x145c]
mov dword [esp + 0x14], eax
mov edi, str.__dde
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, dword [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea ebx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx]
lea eax, [esp + 0x3c]
push esi
push 0x4411d4
push eax
call fcn.00409680
lea eax, [esp + 0x24]
lea ecx, [esp + 0x68]
mov dword [esp + 0x24], 0x400
lea edx, [esp + 0x48]
add esp, 0xc
push eax
push ecx
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x40135b
lea eax, [esp + 0x5c]
push esi
push str._sfile
push eax
call fcn.00409680
lea eax, [esp + 0x68]
lea ecx, [esp + 0x48]
add esp, 0xc
push eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004011e0
mov edi, str._shellView_Dependencies_
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x5c]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x5c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, str.command
sub eax, eax
lea ebp, [ecx - 1]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + ebp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x5c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edi, str.ddeexec
push ecx
push edx
mov ecx, dword [esp + 0x18]
call fcn.004011e0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + ebp + 0x5c]
push str._open___1___
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004011e0
lea ecx, [esp + 0x3c]
cmp ebx, ecx
jb 0x4012fa
mov ecx, dword [esp + 0x10]
push str.128_4_FFFFFFFF_50450000
push str.FileTypeA324EA60_2156_11D0_826F_00A0C9044E610
call fcn.004011e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push str.CLSIDA324EA60_2156_11D0_826F_00A0C9044E61_shellView_Dependenciescommand
call fcn.004011e0
mov ecx, dword [esp + 0x10]
push str._open___1___
push str.CLSIDA324EA60_2156_11D0_826F_00A0C9044E61_shellView_Dependenciesddeexec
call fcn.004011e0
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x244c
ret