Function at 0x455850
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522db6
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x460], ecx
mov ecx, 0x585c48
call fcn.00401340
push eax
push 0x410
mov ecx, dword [ebp - 0x460]
add ecx, 4
call fcn.00459050
push 0
push 0x3f0
lea eax, [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x460]
add ecx, 4
call fcn.004590b0
mov ecx, eax
call fcn.00458f70
push 0
push 0x3ee
lea ecx, [ebp - 0x440]
push ecx
mov ecx, dword [ebp - 0x460]
add ecx, 4
call fcn.004590b0
mov ecx, eax
call fcn.00458f70
push 0x64
push 0
push 0x3ee
lea edx, [ebp - 0x448]
push edx
mov ecx, dword [ebp - 0x460]
add ecx, 4
call fcn.004590b0
mov ecx, eax
call fcn.0045cf10
push eax
lea ecx, [ebp - 0x444]
call fcn.0046d170
mov ecx, eax
call fcn.00458a90
push 0x20
push 0x3ec
mov eax, dword [ebp - 0x460]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.SHLWAPI.dll_SHAutoComplete]
lea ecx, [ebp - 0x21d]
call fcn.00458b70
mov dword [ebp - 4], 0
push 0
push 0
push 0x104
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x21d]
call fcn.00472340
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 1
jne 0x455a8f
mov byte [ebp - 0x42d], 1
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x206
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.004ba280
add esp, 0xc
mov edx, dword [ebp - 0x460]
cmp dword [edx + 0x58], 0
je 0x4559da
push 0x104
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x460]
call fcn.00458040
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jne 0x4559da
mov byte [ebp - 0x42d], 0
movzx ecx, byte [ebp - 0x42d]
test ecx, ecx
je 0x4559f8
push 0
push 0x26
lea edx, [ebp - 0x42c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x434]
call fcn.00434060
mov byte [ebp - 4], 1
push 0x15
mov ecx, 0x585ca8
call fcn.004756c0
push eax
push 0x52f1a0
lea eax, [ebp - 0x434]
push eax
call fcn.0043fd80
add esp, 0xc
lea ecx, [ebp - 0x434]
call fcn.00429580
push eax
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x42c]
push edx
push 0x3ec
mov ecx, dword [ebp - 0x460]
add ecx, 4
call fcn.00459050
push 1
push 0x3ed
lea eax, [ebp - 0x44c]
push eax
mov ecx, dword [ebp - 0x460]
add ecx, 4
call fcn.004590b0
mov ecx, eax
call fcn.00458fe0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x434]
call fcn.00426800
jmp 0x455aed
lea ecx, [ebp - 0x21c]
push ecx
push 0x3ec
mov ecx, dword [ebp - 0x460]
add ecx, 4
call fcn.00459050
push 0x3ec
lea edx, [ebp - 0x450]
push edx
mov ecx, dword [ebp - 0x460]
add ecx, 4
call fcn.004590b0
mov ecx, eax
call fcn.00459000
push 0
push 0x3ec
lea eax, [ebp - 0x454]
push eax
mov ecx, dword [ebp - 0x460]
add ecx, 4
call fcn.004590b0
mov ecx, eax
call fcn.00458fe0
mov ecx, dword [ebp - 0x460]
xor edx, edx
cmp dword [ecx + 0x58], 1
sete dl
mov byte [0x585b8e], dl
mov ecx, dword [ebp - 0x460]
call fcn.00458500
push ecx
mov ecx, esp
mov dword [ebp - 0x458], esp
push 0xca
call fcn.00458f50
mov ecx, dword [ebp - 0x460]
add ecx, 0x60
call fcn.00458920
mov dword [ebp - 0x45c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0046c590
mov eax, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret 0x10