Function at 0x4e579080
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x4e5a6ed6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov dword [ebp + 0x5c], 0
push 0x7fff
lea ecx, [ebp + 0x4c]
call fcn.4e5717b0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 0x54]
mov dword [ebp + 0x20], ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp + 0x64], eax
cmp dword [ebp + 0x64], 0
jbe 0x4e579279
mov ecx, dword [ebp + 0x50]
mov dword [ebp + 0x40], ecx
mov edx, dword [ebp + 0x54]
mov dword [ebp + 0x30], edx
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x38], eax
mov ecx, dword [ebp + 0x40]
push ecx
mov edx, dword [ebp + 0x30]
push edx
mov eax, dword [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov dword [ebp + 0x64], eax
cmp dword [ebp + 0x64], 0
ja 0x4e57914f
push str.Cannot_get_system_directory_long_path_name
lea ecx, [ebp - 0x3c]
call fcn.4e513ee0
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x68]
call fcn.4e54e1b0
push 0x4e5cf96c
lea edx, [ebp - 0x68]
push edx
call fcn.4e58707b
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.4e514040
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
push 0
push 0
lea ecx, [ebp + 4]
call fcn.4e514040
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x28], eax
mov ecx, dword [ebp + 0x28]
mov dword [ebp + 0x48], ecx
lea edx, [ebp + 4]
push edx
mov eax, dword [ebp + 0x48]
push eax
call fcn.4e563af0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x2c], ecx
cmp dword [ebp + 0x18], 0x10
jb 0x4e5791a3
mov edx, dword [ebp]
mov dword [ebp + 0x68], edx
mov eax, dword [ebp + 4]
mov dword [ebp + 0x68], eax
jmp 0x4e5791a9
lea ecx, [ebp + 4]
mov dword [ebp + 0x68], ecx
mov edx, dword [ebp + 0x68]
add edx, dword [ebp + 0x2c]
movsx eax, byte [edx - 1]
cmp eax, 0x5c
je 0x4e57920e
movsx ecx, byte [0x4e5affb8]
test ecx, ecx
jne 0x4e5791cc
mov dword [ebp + 0x60], 0
jmp 0x4e5791fd
mov dword [ebp + 0x6c], 0x4e5affb8
mov edx, dword [ebp + 0x6c]
add edx, 1
mov dword [ebp + 0x24], edx
mov eax, dword [ebp + 0x6c]
mov cl, byte [eax]
mov byte [ebp + 0x73], cl
add dword [ebp + 0x6c], 1
cmp byte [ebp + 0x73], 0
jne 0x4e5791dc
mov edx, dword [ebp + 0x6c]
sub edx, dword [ebp + 0x24]
mov dword [ebp + 0x34], edx
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x60], eax
mov ecx, dword [ebp + 0x60]
push ecx
push 0x4e5affb8
lea ecx, [ebp + 4]
call fcn.4e51dbc0
mov edx, dword [ebp + 0x7c]
mov dword [edx + 0x10], 0
mov eax, dword [ebp + 0x7c]
mov dword [eax + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 0x7c]
call fcn.4e514040
lea ecx, [ebp + 4]
push ecx
mov ecx, dword [ebp + 0x7c]
call fcn.4e51da80
mov edx, dword [ebp + 0x5c]
or edx, 1
mov dword [ebp + 0x5c], edx
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp + 4]
call fcn.4e514040
mov dword [ebp - 4], 0xffffffff
movzx eax, byte [ebp + 0x58]
test eax, eax
je 0x4e579274
mov ecx, dword [ebp + 0x54]
mov dword [ebp + 0x44], ecx
mov edx, dword [ebp + 0x44]
push edx
call fcn.4e585fe1
add esp, 4
mov eax, dword [ebp + 0x7c]
jmp 0x4e5792dd
push str.Cannot_get_temporary_directory_path
lea ecx, [ebp - 0x24]
call fcn.4e513ee0
mov byte [ebp - 4], 3
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x94]
call fcn.4e54e1b0
push 0x4e5cf96c
lea ecx, [ebp - 0x94]
push ecx
call fcn.4e58707b
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.4e514040
mov dword [ebp - 4], 0xffffffff
movzx edx, byte [ebp + 0x58]
test edx, edx
je 0x4e5792dd
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x3c], eax
mov ecx, dword [ebp + 0x3c]
push ecx
call fcn.4e585fe1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x74
mov esp, ebp
pop ebp
ret