Function at 0x4172d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cefaa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00490070
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x417629
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x118]
call fcn.004a6fb9
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.00402de0
sub eax, 1
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x118]
call fcn.0049f7ba
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x144]
push edx
lea ecx, [ebp - 0x118]
call fcn.004a7084
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.004a6f4b
lea ecx, [ebp - 0x11c]
call fcn.00402dc0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.00445b71
add esp, 8
test eax, eax
jne 0x4173f6
mov dword [ebp - 0x12c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.004a6f4b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.004a6f4b
mov eax, dword [ebp - 0x12c]
jmp 0x41762b
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x118]
call fcn.004a7084
push 0x5c
lea ecx, [ebp - 0x11c]
call fcn.0049f832
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x124]
call fcn.00402dc0
mov byte [ebp - 4], 3
push 0x80ab
lea ecx, [ebp - 0x124]
call fcn.004a7fee
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x120]
add ecx, 1
push ecx
lea edx, [ebp - 0x130]
push edx
lea ecx, [ebp - 0x11c]
call fcn.0049f7ba
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x134]
push edx
call fcn.004a717a
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.004a7084
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x134]
call fcn.004a6f4b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x130]
call fcn.004a6f4b
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x124]
call fcn.004a7084
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x114]
call fcn.004a6fb9
mov byte [ebp - 4], 6
push 0x5c
lea ecx, [ebp - 0x114]
call fcn.0049f832
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
je 0x4175ea
mov ecx, dword [ebp - 0x120]
push ecx
lea edx, [ebp - 0x138]
push edx
lea ecx, [ebp - 0x114]
call fcn.0049f7ba
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x114]
call fcn.004a7084
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x138]
call fcn.004a6f4b
lea ecx, [ebp - 0x118]
call fcn.00430bb0
push eax
lea ecx, [ebp - 0x114]
call fcn.0049f854
cmp eax, 0xffffffff
jne 0x417599
lea ecx, [ebp - 0x124]
call fcn.00430bb0
push eax
lea ecx, [ebp - 0x114]
call fcn.0049f854
cmp eax, 0xffffffff
je 0x4175ea
mov dword [ebp - 0x13c], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.004a6f4b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.004a6f4b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.004a6f4b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.004a6f4b
mov eax, dword [ebp - 0x13c]
jmp 0x41762b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.004a6f4b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.004a6f4b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.004a6f4b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.004a6f4b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret