Function at 0x45fac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x5af710]
xor eax, ebp
mov dword [esp + 0x410], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
mov dword [esp + 8], eax
push esi
push edi
mov dword [esp + 0xc], ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x7f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x218], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str._filePath
push edx
stosb byte es:[edi], al
call fcn.0053c3a0
mov esi, eax
push str.__filePath_
push esi
call fcn.0053c3a0
mov ecx, dword [esp + 0x1c]
add esp, 0x10
test esi, esi
mov ebx, eax
mov dword [ecx + 0xe0], ebx
je 0x45fd8f
test ebx, ebx
je 0x45fd8f
mov eax, dword [ebp + 0xc]
cmp esi, eax
ja 0x45fd8f
cmp ebx, eax
ja 0x45fd8f
push 0x5759c8
push esi
call fcn.0053c3a0
mov edi, eax
add esp, 8
test edi, edi
je 0x45fd8f
lea eax, [edi + 1]
push 0x5759c8
push eax
mov dword [esp + 0x1c], eax
call fcn.0053c3a0
add esp, 8
test eax, eax
je 0x45fd8f
mov edx, dword [esp + 0x14]
sub eax, edi
dec eax
mov edi, eax
push edi
push edx
lea eax, [esp + 0x220]
push eax
call fcn.0053d930
add esp, 0xc
push ebx
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
mov byte [esp + edi + 0x224], 0
call fcn.0045ed60
test eax, eax
jl 0x45fd8f
lea edx, [esp + 0x18]
push str._CSIDL_SYSTEM_
push edx
call fcn.005470ba
add esp, 8
test eax, eax
jne 0x45fc00
push 0x200
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x45fd2c
lea ecx, [esp + 0x18]
push str._CSIDL_WINDOWS_
push ecx
call fcn.005470ba
add esp, 8
test eax, eax
jne 0x45fc2b
push 0x200
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x45fd2c
lea eax, [esp + 0x18]
push str._windir_
push eax
call fcn.005470ba
add esp, 8
test eax, eax
jne 0x45fc56
push 0x200
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x45fd2c
lea edx, [esp + 0x18]
push str._CSIDL_PROGRAM_FILES_COMMON_
push edx
call fcn.005470ba
add esp, 8
test eax, eax
jne 0x45fcb9
push 0x200
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x18]
push 0x5c
push ecx
call fcn.0053dc90
add esp, 8
test eax, eax
je 0x45fd2c
lea edi, [esp + 0x18]
mov byte [eax + 1], 0
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45fca0
mov ecx, 6
mov esi, str.PROGRAM_FILESCommon_files
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x45fd2c
lea edx, [esp + 0x18]
push str._CSIDL_PROGRAM_FILES_
push edx
call fcn.005470ba
add esp, 8
test eax, eax
jne 0x45fd2c
push 0x200
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x18]
push 0x5c
push ecx
call fcn.0053dc90
add esp, 8
test eax, eax
je 0x45fd2c
lea edi, [esp + 0x18]
mov byte [eax + 1], 0
dec edi
jmp 0x45fd00
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45fd00
mov edx, dword [str.PROGRAM_FILES]
mov eax, dword [0x57469c]
mov ecx, dword [0x5746a0]
mov dword [edi], edx
mov dx, word [0x5746a4]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov word [edi + 0xc], dx
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edx, ecx
push 0x576c10
push edx
call fcn.0053bafc
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x45fd64
push 0x200
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0053d930
add esp, 0xc
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0053e126
add esp, 8
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, ebp
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 0xc