Function at 0x100a6be0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x640]
sub esp, 0x640
push 0xffffffffffffffff
push 0x100fc32d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10142008]
xor eax, ebp
mov dword [ebp + 0x63c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x648]
mov ecx, 0x1014614a
mov ebx, dword [ebp + 0x64c]
call fcn.100e3445
mov dword [ebp - 4], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
mov dword [ebp - 4], 4
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 5
mov eax, dword [0x101430f8]
mov dword [ebp + 0x18], 0x101430f8
test eax, eax
je 0x100a6c84
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 6
mov ecx, dword [0x10143118]
test ecx, ecx
je 0x100a6cd3
cmp dword [0x1014311c], 8
mov eax, 0x10143108
push ecx
cmovae eax, dword [0x10143108]
lea ecx, [ebp]
push eax
call fcn.10003530
mov byte [ebp - 4], 7
mov eax, dword [0x101430f8]
test eax, eax
je 0x100a6cc3
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0x18], 0
mov byte [ebp - 4], 4
jmp 0x100a6dab
push 0x20c
lea eax, [ebp + 0x430]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x430]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x100a6e35
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x63a], ax
lea eax, [ebp + 0x1c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x1c]
push 0x208
push eax
lea eax, [ebp + 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x100a6d70
test eax, eax
je 0x100a6d70
add eax, eax
cmp eax, 0x412
jae 0x100a6e9a
xor ecx, ecx
mov word [ebp + eax + 0x1c], cx
lea ecx, [ebp + 0x1c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a6d60
lea eax, [ebp + 0x1c]
jmp 0x100a6d91
lea ecx, [ebp + 0x430]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a6d80
lea eax, [ebp + 0x430]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp]
call fcn.10003530
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.10002760
push ebx
push edi
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.100a6b70
test al, al
je 0x100a6dc3
mov bl, 1
jmp 0x100a6e56
push 0x20c
lea eax, [ebp + 0x430]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x430]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x100a6e54
xor eax, eax
lea edx, [ebp + 0x430]
mov word [ebp + 0x63a], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100a6e05
sub edx, ecx
lea eax, [ebp + 0x430]
sar edx, 1
lea ecx, [ebp]
push edx
push eax
call fcn.10003530
push ebx
push edi
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.100a6b70
mov bl, al
jmp 0x100a6e56
mov byte [ebp - 4], 8
mov eax, dword [0x101430f8]
test eax, eax
je 0x100a6e49
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0x18], 0
mov byte [ebp - 4], 4
xor bl, bl
mov dword [ebp - 4], 0x15
lea ecx, [ebp]
call fcn.10003460
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x63c]
xor ecx, ebp
call fcn.100e0d24
lea esp, [ebp + 0x640]
pop ebp
ret 8
call fcn.100e1736
int3