Function at 0x1012e5b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10179f4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0x18], 0x7fff
xor ecx, ecx
mov eax, 0x7fff
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100b9926
add esp, 4
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x1012e87d
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xe8], ecx
mov edx, dword [ebp - 0xe0]
push edx
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0xe8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
ja 0x1012e72e
lea edx, [ebp - 0xf1]
mov dword [ebp - 0xf0], edx
push 0
push 0
lea ecx, [ebp - 0x80]
call fcn.10002cf0
mov dword [ebp - 0x168], str.Cannot_get_temporary_directory_long_path_name
mov eax, dword [ebp - 0x168]
add eax, 1
mov dword [ebp - 0x16c], eax
mov ecx, dword [ebp - 0x168]
mov dl, byte [ecx]
mov byte [ebp - 0x16d], dl
add dword [ebp - 0x168], 1
cmp byte [ebp - 0x16d], 0
jne 0x1012e6ba
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
push ecx
push str.Cannot_get_temporary_directory_long_path_name
lea ecx, [ebp - 0x80]
call fcn.10003590
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x64]
call fcn.100fcbd0
push 0x101aa74c
lea eax, [ebp - 0x64]
push eax
call fcn.100bcb39
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.10002cf0
lea ecx, [ebp - 0xfd]
mov dword [ebp - 0xfc], ecx
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.10002cf0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x104], edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
call fcn.100e6380
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x108], edx
mov eax, dword [ebp - 0x108]
sub eax, 1
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
cmp ecx, dword [ebp - 0x20]
jbe 0x1012e78e
call fcn.100bcb20
cmp dword [ebp - 0x1c], 0x10
jb 0x1012e79f
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x178], edx
jmp 0x1012e7a8
lea eax, [ebp - 0x30]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
add ecx, dword [ebp - 0x10c]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x1012e819
mov dword [ebp - 0x17c], 0x10189b38
mov eax, dword [ebp - 0x17c]
add eax, 1
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x17c]
mov dl, byte [ecx]
mov byte [ebp - 0x181], dl
add dword [ebp - 0x17c], 1
cmp byte [ebp - 0x181], 0
jne 0x1012e7d5
mov eax, dword [ebp - 0x17c]
sub eax, dword [ebp - 0x180]
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
push ecx
push 0x10189b38
lea ecx, [ebp - 0x34]
call fcn.10008ee0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.10002cf0
mov edx, dword [0x1018c500]
push edx
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
call fcn.100034b0
mov ecx, dword [ebp - 0xd0]
or ecx, 1
mov dword [ebp - 0xd0], ecx
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.10002cf0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
push eax
call fcn.100bcb83
add esp, 4
mov eax, dword [ebp + 8]
jmp 0x1012e950
lea ecx, [ebp - 0x139]
mov dword [ebp - 0x138], ecx
push 0
push 0
lea ecx, [ebp - 0xcc]
call fcn.10002cf0
mov dword [ebp - 0x18c], str.Cannot_get_temporary_directory_path
mov edx, dword [ebp - 0x18c]
add edx, 1
mov dword [ebp - 0x190], edx
mov eax, dword [ebp - 0x18c]
mov cl, byte [eax]
mov byte [ebp - 0x191], cl
add dword [ebp - 0x18c], 1
cmp byte [ebp - 0x191], 0
jne 0x1012e8b1
mov edx, dword [ebp - 0x18c]
sub edx, dword [ebp - 0x190]
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x198]
push eax
push str.Cannot_get_temporary_directory_path
lea ecx, [ebp - 0xcc]
call fcn.10003590
mov byte [ebp - 4], 4
push 0
lea ecx, [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0xb0]
call fcn.100fcbd0
push 0x101aa74c
lea edx, [ebp - 0xb0]
push edx
call fcn.100bcb39
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0xcc]
call fcn.10002cf0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.100bcb83
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret