Function at 0x4547d0
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4d9e0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44c
push ebx
push ebp
mov ebp, dword [esp + 0x464]
push esi
push edi
xor esi, esi
push 0x206
lea eax, [esp + 0x252]
push esi
push eax
mov word [esp + 0x258], si
call fcn.004a4620
add esp, 0xc
lea ecx, [esp + 0x24c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp + 4]
lea edx, [esp + 0x20]
push edx
push 0x11
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [0x507fec]
mov eax, dword [edx + 0xc]
mov ecx, 0x507fec
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x464], esi
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x105
or eax, edx
jge 0x454882
mov ecx, 0x105
lea eax, [esp + 0x14]
call fcn.00403c30
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], esi
jge 0x454891
push 0x80070057
call fcn.00401020
mov dword [ecx - 0xc], esi
push 0x4ec8c0
mov ebx, 4
lea eax, [esp + 0x18]
mov word [ecx], si
call fcn.00403b90
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ebx, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
cmp dword [eax - 4], ebx
jle 0x4548d9
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403ed0
mov eax, dword [esp + 0x14]
xor edi, edi
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x4ec8cc
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
cmp esi, edi
je 0x454a41
push 0x206
lea eax, [esp + 0x4a]
push edi
push eax
mov word [esp + 0x50], di
call fcn.004a4620
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [0x507fec]
mov eax, dword [edx + 0xc]
mov ecx, 0x507fec
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x44]
lea esi, [esp + 0x1c]
mov byte [esp + 0x464], bl
call fcn.0048da50
mov byte [esp + 0x464], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004038e0
mov byte [esp + 0x464], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45499b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0048e9b0
push eax
mov ecx, str.install_dir_name
call fcn.0048e620
mov byte [esp + 0x464], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
call fcn.004038e0
mov byte [esp + 0x464], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4549f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x41c]
push esi
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esp + 0x18]
call fcn.004546a0
mov edx, dword [ebp + 4]
push 0
push eax
push 0x46c
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
mov byte [esp + 0x464], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454a41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [esp + 0x464], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x454a7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x458
ret 4