Function at 0x453340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba96c
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4ea160]
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, ecx
lea esi, [edi + 4]
mov ecx, esi
call fcn.00450c50
mov ecx, dword [ebp + 8]
lea ebx, [ecx - 0x7777]
cmp ebx, 9
ja 0x4534ec
lea ecx, [ebp - 0x124]
mov dword [ebp - method.FCPathName.virtual_0], vtable.FCPathName.0
mov dword [ebp - method.FCString.virtual_0], vtable.FCString.0
call fcn.00451b70
push 0
push 0x200
lea ecx, [ebp - 0x124]
call fcn.00450e40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.004537a0
mov dword [ebp - 4], 1
cmp ebx, 5
ja case.0x4533df.2
jmp dword [ebx*4 + 0x4535fc]
push 0x106
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x118]
mov ecx, esi
push eax
push 0x100
call fcn.00450e40
jmp 0x4534c4
push 0x106
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x128]
call fcn.00453660
push dword [ebp + 0xc]
lea ecx, [ebp - 0x128]
push esi
call fcn.00453200
jmp 0x4534c4
push 0x106
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x128]
call fcn.00453660
cmp byte [ebp + 0xc], 0
je 0x45347e
lea ecx, [ebp - 0x128]
call fcn.00445940
mov eax, dword [ebp - 0x120]
mov ecx, esi
push dword [eax + 0x14]
push 0x100
call fcn.00450e40
jmp 0x4534c4
push 0x106
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x45345b
lea eax, [ebp - 0x118]
push eax
push 0x106
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x45345b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.FCPathName.virtual_0], vtable.FCPathName.0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.00450480
jmp case.0x4534fc.10
cmp ecx, 0x3d
ja case.0x4534fc.10
movzx eax, byte [ecx + 0x45361c]
jmp dword [eax*4 + 0x453614]
lea eax, [ebp - 0x12c]
push eax
push ecx
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne case.0x4534fc.10
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x12c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4535a5
lea ecx, [ebp - 0x124]
mov dword [ebp - method.FCString.virtual_0], vtable.FCString.0
call fcn.00451b70
push 0
push 0x100
lea ecx, [ebp - 0x124]
call fcn.00450e40
mov dword [ebp - 4], 3
lea eax, [ebp - 0x118]
push eax
push 0x100
lea ecx, [ebp - 0x124]
call fcn.00450e40
mov eax, dword [ebp - 0x120]
mov ecx, edi
mov edx, dword [edi]
push dword [eax + 0x14]
call dword [edx + 0xc]
cmp byte [ebp + 0xc], 0
je 0x453593
mov ecx, edi
call fcn.00445940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.00450480
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne case.0x4534fc.10
mov ecx, dword [ebp - 0x130]
test ecx, ecx
je case.0x4534fc.10
mov edx, dword [ebp - 0x12c]
test edx, edx
je 0x4535d7
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x130]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
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.0044f18f
mov esp, ebp
pop ebp
ret 8