Function at 0x404fa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
lea esi, [esp + 0x18]
call fcn.0040c270
push 1
mov ecx, 0x104
mov esi, 0x44920c
call fcn.0040c550
mov eax, dword [0x44920c]
push 1
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404ff7
mov ecx, dword [0x44920c]
test ecx, ecx
je 0x404ff7
mov eax, ecx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x404fe2
sub eax, ecx
sar eax, 1
dec eax
mov dword [0x449210], eax
mov eax, 0x44920c
call fcn.00408210
cmp dword [0x449210], 0
je 0x405014
mov ebx, 0x43157c
call fcn.0040c8b0
xor ecx, ecx
jmp 0x405020
movzx eax, word [ecx*2 + str.MeowUpMgr]
cmp ax, 0x5c
je 0x405034
cmp ax, 0x2f
jne 0x405037
inc ecx
jmp 0x405020
lea ebx, [ecx*2 + str.MeowUpMgr]
mov eax, 0x44920c
call fcn.0040c8b0
mov eax, dword [0x44920c]
call fcn.00407e00
test al, al
jne 0x4050f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x1c]
call fcn.00408620
add esp, 4
mov ebx, str.CreateFolder:
mov eax, 0x44921c
call fcn.0040c8b0
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x4050d8
mov eax, dword [0x449220]
lea ecx, [edi + eax]
cmp ecx, dword [0x449224]
jbe 0x4050a4
push 1
mov esi, 0x44921c
call fcn.0040c550
mov edx, dword [0x44921c]
mov eax, dword [0x449220]
lea ecx, [edi + edi]
push ecx
lea ecx, [edx + eax*2]
push ebx
push ecx
call fcn.00426530
mov eax, dword [0x449220]
mov ecx, dword [0x44921c]
add eax, edi
add esp, 0xc
xor edx, edx
mov dword [0x449220], eax
mov word [ecx + eax*2], dx
test ebx, ebx
je 0x4050eb
mov edx, dword [esp + 0x24]
push edx
mov esi, ebx
call fcn.00408b50
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x20
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 8
mov edi, esp
mov dword [esp + 0x1c], esp
push 0
mov dword [edi + 4], 0x6b
call esi
mov dword [edi], eax
mov eax, dword [0x44920c]
push str.Upgrade.exe
call fcn.00404980
add esp, 0xc
mov byte [esp + 0x10], al
test al, al
jne 0x405139
mov ebx, str.copy_Upgrade.exe_file_AutoInstallFolder_
mov eax, 0x44921c
call fcn.0040c8b0
sub esp, 8
mov edi, esp
mov dword [esp + 0x1c], esp
push 0
mov dword [edi + 4], 0x68
call esi
mov dword [edi], eax
mov eax, dword [0x44920c]
push str.UpdatePlayer.exe
call fcn.00404980
add esp, 0xc
mov byte [esp + 0x11], al
test al, al
jne 0x405178
mov ebx, str.copy_UPDATE_NAME_file_AutoInstallFolder_
mov eax, 0x44921c
call fcn.0040c8b0
sub esp, 8
mov edi, esp
mov dword [esp + 0x1c], esp
push 0
mov dword [edi + 4], 0x6a
call esi
mov dword [edi], eax
mov eax, dword [0x44920c]
push str.Uninstall.exe
call fcn.00404980
add esp, 0xc
mov byte [esp + 0x12], al
test al, al
jne 0x4051b7
mov ebx, str.copy_Uninstall.exe_file_failed_
mov eax, 0x44921c
call fcn.0040c8b0
sub esp, 8
mov edi, esp
mov dword [esp + 0x1c], esp
push 0
mov dword [edi + 4], 0x69
call esi
mov dword [edi], eax
mov eax, dword [0x44920c]
push str.Ubase.dll
call fcn.00404980
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x4051f6
mov ebx, str.copy_Ubase.dll_file_failed_
mov eax, 0x44921c
call fcn.0040c8b0
sub esp, 8
mov edi, esp
mov dword [esp + 0x1c], esp
push 0
mov dword [edi + 4], 0x7b
call esi
mov dword [edi], eax
mov eax, dword [0x44920c]
push str.MeowUpMgr.exe
call fcn.00404980
add esp, 0xc
mov byte [esp + 0xf], al
test al, al
jne 0x405239
mov ebx, str.copy_UPDATE_SCHEDULE_EXE_file_failed_
mov eax, 0x44921c
call fcn.0040c8b0
mov al, byte [esp + 0xf]
cmp byte [esp + 0x10], 0
je 0x40525d
cmp byte [esp + 0x11], 0
je 0x40525d
cmp byte [esp + 0x12], 0
je 0x40525d
cmp byte [esp + 0x13], 0
je 0x40525d
test al, al
je 0x40525d
mov bl, 1
jmp 0x40525f
xor bl, bl
mov esi, dword [esp + 0x18]
test esi, esi
je 0x405274
mov eax, dword [esp + 0x24]
push eax
call fcn.00408b50
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x20
ret