Function at 0x4e57a1c0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x4e5aa2ac
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.4e572b90
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 0x50]
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_GetTempPathW]
mov dword [ebp + 0x64], eax
cmp dword [ebp + 0x64], 0
jbe 0x4e57a3b9
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 0x4e57a28f
push str.Cannot_get_temporary_directory_long_path_name
lea ecx, [ebp - 0x3c]
call fcn.4e514340
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x68]
call fcn.4e54f470
push 0x4e5d2f54
lea edx, [ebp - 0x68]
push edx
call fcn.4e58a47b
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.4e5144a0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
push 0
push 0
lea ecx, [ebp + 4]
call fcn.4e5144a0
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.4e564ee0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x2c], ecx
cmp dword [ebp + 0x18], 0x10
jb 0x4e57a2e3
mov edx, dword [ebp]
mov dword [ebp + 0x68], edx
mov eax, dword [ebp + 4]
mov dword [ebp + 0x68], eax
jmp 0x4e57a2e9
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 0x4e57a34e
movsx ecx, byte [0x4e5b3000]
test ecx, ecx
jne 0x4e57a30c
mov dword [ebp + 0x60], 0
jmp 0x4e57a33d
mov dword [ebp + 0x6c], 0x4e5b3000
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 0x4e57a31c
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 0x4e5b3000
lea ecx, [ebp + 4]
call fcn.4e51e260
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.4e5144a0
lea ecx, [ebp + 4]
push ecx
mov ecx, dword [ebp + 0x7c]
call fcn.4e51e120
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.4e5144a0
mov dword [ebp - 4], 0xffffffff
movzx eax, byte [ebp + 0x58]
test eax, eax
je 0x4e57a3b4
mov ecx, dword [ebp + 0x54]
mov dword [ebp + 0x44], ecx
mov edx, dword [ebp + 0x44]
push edx
call fcn.4e589184
add esp, 4
mov eax, dword [ebp + 0x7c]
jmp 0x4e57a41d
push str.Cannot_get_temporary_directory_path
lea ecx, [ebp - 0x24]
call fcn.4e514340
mov byte [ebp - 4], 3
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x94]
call fcn.4e54f470
push 0x4e5d2f54
lea ecx, [ebp - 0x94]
push ecx
call fcn.4e58a47b
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.4e5144a0
mov dword [ebp - 4], 0xffffffff
movzx edx, byte [ebp + 0x58]
test edx, edx
je 0x4e57a41d
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x3c], eax
mov ecx, dword [ebp + 0x3c]
push ecx
call fcn.4e589184
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x74
mov esp, ebp
pop ebp
ret