Function at 0x455900
Capabilities:
Get common file path
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4a955d
mov eax, dword fs:[0]
push eax
mov eax, 0x2054
call fcn.0048ed30
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x2050], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x2068]
mov dword fs:[0], eax
call fcn.00454190
mov eax, dword [0x4ce67c]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, 0x4ce67c
mov dword [esp + 0x18], esi
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2070], esi
mov eax, dword [0x4ce67c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ce67c
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x2c], ebp
lea eax, [esp + 0x18]
push eax
push 8
push esi
push str.SOFTWAREMicrosoftOffice
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x2084], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x455bc8
mov eax, dword [esp + 0x18]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x78]
push edx
push esi
push eax
mov dword [esp + 0x40], 0x1000
mov dword [esp + 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x455bbd
lea edi, [esp + 0x64]
call fcn.004541f0
mov esi, eax
mov dword [esp + 0x30], esi
cmp esi, 0xffffffff
je 0x455b84
cmp esi, 9
jne 0x455ab5
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push ecx
mov ecx, str.path
lea esi, [esp + 0x24]
xor edi, edi
call fcn.0046c8c0
push ecx
mov byte [esp + 0x2078], 2
mov edx, esp
mov dword [esp + 0x44], esp
push edx
mov ecx, str.SOFTWAREMicrosoftOffice9.0CommonInstallRoot
call fcn.0046c8c0
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [esp + 0x50]
push eax
mov ecx, edi
mov byte [esp + 0x2080], 1
call fcn.0046a960
push eax
mov byte [esp + 0x2074], 3
call fcn.0046a8b0
mov esi, eax
mov byte [esp + 0x2074], 1
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455a7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455a9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x455b23
push 9
push str.mso9.dll
lea ecx, [esp + 0x24]
push ecx
call fcn.00454250
jmp 0x455b23
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x104
or eax, ecx
jge 0x455adb
mov ecx, 0x104
lea eax, [esp + 0x2c]
call fcn.0046c770
mov ebp, dword [esp + 0x2c]
push 0
push 0x2b
push ebp
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.0048c35c
add esp, 8
test eax, eax
jl 0x455d13
cmp eax, dword [ebp - 8]
jg 0x455d13
push esi
xor edx, edx
push ebp
mov dword [ebp - 0xc], eax
push str._sMicrosoft_SharedOFFICE_dmso.dll
lea edi, [esp + 0x28]
mov word [ebp + eax*2], dx
call fcn.0046afd0
add esp, 0xc
mov ebx, dword [esp + 0x1c]
lea edi, [esp + 0x34]
mov esi, ebx
call fcn.00445a00
test eax, eax
je 0x455b84
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
shr eax, 0x10
cmp eax, esi
jne 0x455b84
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push 1
push 0
lea edx, [esp + 0x70]
push edx
push eax
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x455b84
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov ecx, esi
mov edx, edi
call fcn.00455590
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
inc eax
lea edx, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x40], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4559d3
xor esi, esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4d2040], esi
je 0x455e3d
lea edx, [esp + 0x18]
push edx
push 0x108
push esi
push str.SOFTWAREMicrosoftOffice
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x455e3d
mov dword [esp + 0x44], esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x78]
push ecx
mov byte [esp + 0x2088], 4
mov edx, dword [esp + 0x30]
push esi
push edx
mov dword [esp + 0x44], 0x1000
mov dword [esp + 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x455e21
lea edi, [esp + 0x64]
call fcn.004541f0
mov esi, eax
mov dword [esp + 0x30], esi
cmp esi, 0xffffffff
je 0x455dea
cmp esi, 9
jne 0x455d1d
push ecx
mov eax, esp
mov dword [esp + 0x40], esp
push eax
mov ecx, str.path
lea esi, [esp + 0x24]
xor edi, edi
call fcn.0046c8c0
push ecx
mov ecx, esp
mov byte [esp + 0x2078], 5
mov dword [esp + 0x48], esp
push ecx
mov ecx, str.SOFTWAREMicrosoftOffice9.0CommonInstallRoot
call fcn.0046c8c0
push reloc.OLEAUT32.dll_SysReAllocString
lea edx, [esp + 0x60]
push edx
mov ecx, edi
mov byte [esp + 0x2080], 4
call fcn.0046a960
push eax
mov byte [esp + 0x2074], 6
call fcn.0046a8b0
mov esi, eax
mov byte [esp + 0x2074], 4
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455cd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455cf8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x455d83
push 9
push str.mso9.dll
lea ecx, [esp + 0x24]
push ecx
call fcn.00454250
jmp 0x455d83
push 0x80070057
call fcn.004752e0
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x104
or eax, ecx
jge 0x455d43
mov ecx, 0x104
lea eax, [esp + 0x2c]
call fcn.0046c770
mov ebp, dword [esp + 0x2c]
push 0
push 0x2b
push ebp
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.0048c35c
add esp, 8
test eax, eax
jl 0x455d13
cmp eax, dword [ebp - 8]
jg 0x455d13
push esi
xor edx, edx
push ebp
mov dword [ebp - 0xc], eax
push str._sMicrosoft_SharedOFFICE_dmso.dll
lea edi, [esp + 0x28]
mov word [ebp + eax*2], dx
call fcn.0046afd0
add esp, 0xc
mov ebx, dword [esp + 0x1c]
lea edi, [esp + 0x34]
mov esi, ebx
call fcn.00445a00
test eax, eax
je 0x455dea
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
shr eax, 0x10
cmp eax, esi
jne 0x455dea
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push 1
push 0
lea edx, [esp + 0x70]
push edx
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x455dea
mov ecx, dword [0x4d2040]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov ecx, esi
mov edx, edi
call fcn.00455590
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
inc eax
lea edx, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x44], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x455c31
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [esp + 0x44]
mov byte [esp + 0x2070], 1
call fcn.00468530
lea eax, [ebp - 0x10]
mov byte [esp + 0x2070], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x455e61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x2070], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455e88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2068]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2050]
xor ecx, esp
call fcn.0048b133
add esp, 0x2060
ret