Function at 0x5448d4
Capabilities:
Check if file exists
Get common file path
Get disk information
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a350c
mov eax, dword fs:[0]
push eax
mov eax, 0x20ac
call fcn.0056e5a0
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x2044]
xor ebx, ebx
mov dword [edi + 8], ebx
mov dword [edi], ebx
call fcn.004173bc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2098]
call fcn.004173bc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x207c]
call fcn.004173bc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2060]
call fcn.004173bc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2010]
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [0x7960fc], ebx
jle 0x54497f
lea eax, [ebp - 0x2010]
push eax
push str._GetModuleFileName___s
push 0x77b084
call fcn.0042e634
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x2018], ebx
mov dword [ebp - 0x2014], ebx
mov dword [ebp - 0x2014], 7
mov dword [ebp - 0x2018], ebx
mov word [ebp - 0x2028], ax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2028]
push eax
lea eax, [ebp - 0x2010]
push eax
call fcn.004564d4
cmp dword [ebp - 0x2014], 8
lea ecx, [ebp - 0x2060]
push ecx
lea ecx, [ebp - 0x207c]
push ecx
lea ecx, [ebp - 0x2098]
push ecx
lea ecx, [ebp - 0x2044]
lea eax, [ebp - 0x2028]
cmovae eax, dword [ebp - 0x2028]
push ecx
push eax
call fcn.00565361
add esp, 0x1c
lea eax, [ebp - 0x2078]
cmp dword [ebp - 0x2064], 8
lea esi, [edi + 0x15c]
mov ecx, esi
cmovae eax, dword [ebp - 0x2078]
push eax
call fcn.004179fb
cmp dword [ebp - 0x2048], 8
lea eax, [ebp - 0x205c]
mov ecx, esi
cmovae eax, dword [ebp - 0x205c]
push eax
call fcn.00419c79
cmp dword [ebp - 0x202c], 8
lea eax, [ebp - 0x2040]
lea esi, [edi + 0x178]
cmovae eax, dword [ebp - 0x2040]
mov ecx, esi
push eax
call fcn.004179fb
cmp dword [ebp - 0x2080], 8
lea eax, [ebp - 0x2094]
mov ecx, esi
cmovae eax, dword [ebp - 0x2094]
push eax
call fcn.00419c79
cmp dword [ebp - 0x202c], 8
lea eax, [ebp - 0x2040]
lea ecx, [edi + 0x194]
cmovae eax, dword [ebp - 0x2040]
push eax
call fcn.004179fb
push 0x6fc6d4
mov ecx, esi
call fcn.0042dea6
lea eax, [ebp - 0x2010]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x544cfd
lea ecx, [ebp - 0x2010]
push ecx
lea ecx, [edi + 0x1b0]
call fcn.004179fb
mov eax, dword [edi + 0x1c4]
lea esi, [edi + 0x1b4]
dec eax
mov ecx, esi
push eax
mov dword [ebp - 0x20b8], eax
call fcn.00404220
cmp dword [esi + 0x14], 8
jb 0x544aeb
mov esi, dword [esi]
mov eax, dword [ebp - 0x20b8]
push 0x5c
pop ecx
cmp word [esi + eax*2], cx
lea esi, [edi + 0x1b0]
je 0x544b08
push ecx
mov ecx, esi
call fcn.0043b162
push 0x6fc6d8
mov ecx, esi
call fcn.00419c79
lea ecx, [edi + 0x1cc]
push esi
call fcn.004248f3
push str.Config.xml
lea ecx, [edi + 0x1cc]
call fcn.00419c79
lea ecx, [ebp - 0x20b4]
call fcn.004173bc
mov byte [ebp - 4], 5
lea esi, [edi + 0x17c]
cmp dword [esi + 0x14], 8
jb 0x544b4f
mov eax, dword [esi]
jmp 0x544b51
mov eax, esi
push eax
lea eax, [ebp - 0x20b4]
push 0x6fc7b0
push eax
call fcn.0041ccda
add esp, 0xc
lea eax, [ebp - 0x20b0]
cmp dword [ebp - 0x209c], 8
cmovae eax, dword [ebp - 0x20b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x544bc0
mov dword [edi], 1
cmp dword [esi + 0x14], 8
jb 0x544b95
mov eax, dword [esi]
jmp 0x544b97
mov eax, esi
push eax
lea ecx, [edi + 0x1b0]
call fcn.004179fb
cmp dword [esi + 0x14], 8
jb 0x544bab
mov esi, dword [esi]
push esi
lea eax, [edi + 0x1cc]
push str._sConfig.xml
push eax
call fcn.0041ccda
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20b4]
call fcn.0041786a
cmp dword [0x7962a4], 8
mov esi, 0x796290
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov eax, esi
cmovae eax, dword [0x796290]
push eax
call edi
cmp eax, 3
jne 0x544bfe
mov dword [0x79610c], 1
jmp 0x544c23
cmp dword [0x7962a4], 8
cmovae esi, dword [0x796290]
push esi
call edi
mov ecx, dword [0x79610c]
xor edx, edx
cmp eax, 2
cmove ecx, edx
mov dword [0x79610c], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2028]
push ebx
push 1
call fcn.00401d60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2060]
call fcn.0041786a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x207c]
call fcn.0041786a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2098]
call fcn.0041786a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2044]
call fcn.0041786a
cmp dword [0x7960fc], 0
jle 0x544cf8
cmp dword [0x796288], 8
mov eax, 0x796274
mov ebx, 0x77b084
cmovae eax, dword [0x796274]
push eax
push str.Application_Path_:__s
push ebx
call fcn.0042e634
cmp dword [0x79626c], 8
mov eax, 0x796258
cmovae eax, dword [0x796258]
push eax
push str.Application_File_Name_:__s
push ebx
call fcn.0042e634
cmp dword [0x79610c], 0
mov ecx, str.Removable
mov eax, str.Fixed_Disk
cmove eax, ecx
push eax
push str.Medium_:__s
push ebx
call fcn.0042e634
add esp, 0x24
mov ecx, ebx
push str.Is_32bit
call fcn.0042e683
push str.Initialize_Context_successfully_
push ebx
call fcn.0042e634
pop ecx
pop ecx
xor ebx, ebx
inc ebx
jmp 0x544d66
cmp dword [0x7960fc], 0
jle 0x544d19
push eax
push str._SHGetFolderPath__Function_Failed___Error_code__0x_XL
push 0x77b084
call fcn.0042e634
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2028]
push ebx
push 1
call fcn.00401d60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2060]
call fcn.0041786a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x207c]
call fcn.0041786a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2098]
call fcn.0041786a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2044]
call fcn.0041786a
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret