Function at 0x46c4d0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x52a23c
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.0046d3b0
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 0x46c6c9
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 0x46c59f
push str.Cannot_get_temporary_directory_long_path_name
lea ecx, [ebp - 0x3c]
call fcn.00406b80
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00454570
push 0x572e5c
lea edx, [ebp - 0x68]
push edx
call fcn.004be2db
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00407040
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
push 0
push 0
lea ecx, [ebp + 4]
call fcn.00407040
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.00478380
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x2c], ecx
cmp dword [ebp + 0x18], 0x10
jb 0x46c5f3
mov edx, dword [ebp]
mov dword [ebp + 0x68], edx
mov eax, dword [ebp + 4]
mov dword [ebp + 0x68], eax
jmp 0x46c5f9
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 0x46c65e
movsx ecx, byte [0x5352bc]
test ecx, ecx
jne 0x46c61c
mov dword [ebp + 0x60], 0
jmp 0x46c64d
mov dword [ebp + 0x6c], 0x5352bc
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 0x46c62c
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 0x5352bc
lea ecx, [ebp + 4]
call fcn.00406e30
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.00407040
lea ecx, [ebp + 4]
push ecx
mov ecx, dword [ebp + 0x7c]
call fcn.00416490
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.00407040
mov dword [ebp - 4], 0xffffffff
movzx eax, byte [ebp + 0x58]
test eax, eax
je 0x46c6c4
mov ecx, dword [ebp + 0x54]
mov dword [ebp + 0x44], ecx
mov edx, dword [ebp + 0x44]
push edx
call fcn.004ba0bc
add esp, 4
mov eax, dword [ebp + 0x7c]
jmp 0x46c72d
push str.Cannot_get_temporary_directory_path
lea ecx, [ebp - 0x24]
call fcn.00406b80
mov byte [ebp - 4], 3
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x94]
call fcn.00454570
push 0x572e5c
lea ecx, [ebp - 0x94]
push ecx
call fcn.004be2db
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.00407040
mov dword [ebp - 4], 0xffffffff
movzx edx, byte [ebp + 0x58]
test edx, edx
je 0x46c72d
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x3c], eax
mov ecx, dword [ebp + 0x3c]
push ecx
call fcn.004ba0bc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x74
mov esp, ebp
pop ebp
ret