Function at 0x45f974
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2c
push 0
push 0
dec ecx
jne 0x45f97c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x45fddf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.0045e164
mov eax, dword [ebp - 4]
call fcn.0040a1d0
lea eax, [ebp - 0x160]
mov edx, dword [0x4b6388]
call fcn.00404dac
mov edx, dword [ebp - 0x160]
lea eax, [ebp - 4]
call fcn.00404e7c
mov eax, dword [ebp - 4]
call fcn.00409dcc
test al, al
je 0x45fd73
lea eax, [ebp - 0x159]
xor ecx, ecx
mov edx, 0x105
call fcn.0040362c
lea eax, [ebp - 0x159]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x159]
mov ecx, 0x105
call fcn.00404e24
mov eax, dword [ebp - 0x164]
lea edx, [ebp - 0x28]
call fcn.0045f580
mov eax, dword [ebp - 0x28]
call fcn.00404e74
mov edx, dword [ebp - 0x28]
cmp byte [edx + eax - 1], 0x5c
jne 0x45fa47
mov eax, dword [ebp - 0x28]
call fcn.00404e74
mov edx, eax
lea eax, [ebp - 0x28]
mov ecx, 1
call fcn.00405114
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.00404c4c
mov eax, dword [ebp - 0x2c]
call fcn.00404e74
mov edx, dword [ebp - 0x2c]
cmp byte [edx + eax - 1], 0x5c
je 0x45fa71
lea eax, [ebp - 0x2c]
mov edx, 0x45fdf8
call fcn.00404e7c
push dword [ebp - 0x2c]
push 0x45fe04
push esi
push 0x45fe14
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404f34
mov edx, 2
mov eax, dword [ebp - 0x2c]
call fcn.0045dfc4
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x28]
call fcn.0045f5c8
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
call fcn.0045f5c8
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.0045f60c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x28]
call fcn.00404c4c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x28]
call fcn.00404c4c
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x28]
call fcn.00404c4c
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x28]
call fcn.00404c4c
mov eax, dword [ebp - 0x10]
call fcn.00404e74
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax - 1], 0x5c
je 0x45fb0c
lea eax, [ebp - 0x10]
mov edx, 0x45fdf8
call fcn.00404e7c
push dword [ebp - 0x10]
push 0x45fe04
push esi
push 0x45fe24
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404f34
mov eax, dword [ebp - 0x14]
call fcn.00404e74
mov edx, dword [ebp - 0x14]
cmp byte [edx + eax - 1], 0x5c
je 0x45fb46
lea eax, [ebp - 0x14]
mov edx, 0x45fdf8
call fcn.00404e7c
push dword [ebp - 0x14]
push 0x45fe04
push esi
push 0x45fe38
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404f34
mov eax, dword [ebp - 0x34]
call fcn.00404e74
mov edx, dword [ebp - 0x34]
cmp byte [edx + eax - 1], 0x5c
je 0x45fb80
lea eax, [ebp - 0x34]
mov edx, 0x45fdf8
call fcn.00404e7c
push dword [ebp - 0x34]
push 0x45fe04
push esi
push 0x45fe48
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00404f34
mov eax, dword [ebp - 0x4c]
call fcn.00404e74
mov edx, dword [ebp - 0x4c]
cmp byte [edx + eax - 1], 0x5c
je 0x45fbba
lea eax, [ebp - 0x4c]
mov edx, 0x45fdf8
call fcn.00404e7c
push dword [ebp - 0x4c]
push 0x45fe04
push esi
push 0x45fe5c
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00404f34
mov edx, 2
mov eax, dword [ebp - 0x10]
call fcn.0045dfc4
mov edx, 2
mov eax, dword [ebp - 0x14]
call fcn.0045dfc4
mov edx, 2
mov eax, dword [ebp - 0x34]
call fcn.0045dfc4
mov edx, 2
mov eax, dword [ebp - 0x4c]
call fcn.0045dfc4
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0045f5c8
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0045f5c8
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
call fcn.0045f5c8
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
call fcn.0045f5c8
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.0045f5c8
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0045f5c8
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
call fcn.0045f5c8
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x48]
call fcn.0045f5c8
mov eax, dword [0x4b6388]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4b6384], eax
cmp dword [0x4b6384], 0
je 0x45fd73
push 0x45fe64
mov eax, dword [0x4b6384]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b637c], eax
push 0x45fe74
mov eax, dword [0x4b6384]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b6380], eax
mov eax, dword [ebp - 8]
call fcn.00404e74
test eax, eax
jle 0x45fccf
mov eax, dword [ebp - 0x20]
call fcn.00405480
push eax
mov eax, dword [ebp - 0x18]
call fcn.00405480
push eax
call dword [0x4b6380]
add esp, 8
mov eax, dword [ebp - 0xc]
call fcn.00404e74
test eax, eax
jle 0x45fcf6
mov eax, dword [ebp - 0x24]
call fcn.00405480
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405480
push eax
call dword [0x4b6380]
add esp, 8
mov eax, dword [ebp - 0x28]
call fcn.00404e74
test eax, eax
jle 0x45fd1d
mov eax, dword [ebp - 0x3c]
call fcn.00405480
push eax
mov eax, dword [ebp - 0x38]
call fcn.00405480
push eax
call dword [0x4b6380]
add esp, 8
mov eax, dword [ebp - 0x30]
call fcn.00404e74
test eax, eax
jle 0x45fd44
mov eax, dword [ebp - 0x44]
call fcn.00405480
push eax
mov eax, dword [ebp - 0x40]
call fcn.00405480
push eax
call dword [0x4b6380]
add esp, 8
mov eax, dword [ebp - 0x48]
call fcn.00404e74
test eax, eax
jle 0x45fd6b
mov eax, dword [ebp - 0x54]
call fcn.00405480
push eax
mov eax, dword [ebp - 0x50]
call fcn.00405480
push eax
call dword [0x4b6380]
add esp, 8
call dword [0x4b637c]
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fde6
lea eax, [ebp - 0x164]
mov edx, 2
call fcn.00404bd8
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00405314
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00404bd8
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.00405314
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00404bd8
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00405314
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404bd8
ret