Function at 0x10008650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5578
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x100db00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x668]
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x668], 0x100dca88
mov dword [0x100dca88], 0
mov dword [0x100dca8c], 0
mov dword [0x100dca90], 0
mov dword [0x100dca94], 0
mov dword [0x100dca98], 0
mov dword [ebp - 0x66c], 0x100dcaa0
mov dword [0x100dcac4], 0
mov dword [ebp - 4], 1
xor eax, eax
mov dword [0x100dcad8], 0
mov dword [0x100dcadc], 7
mov word [0x100dcac8], ax
mov byte [ebp - 4], 2
call fcn.10008950
mov eax, dword [0x100dc660]
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x634], 0x100dc660
test eax, eax
je 0x10008729
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 3
mov edi, 0x100dcac8
mov ecx, dword [0x100db050]
test ecx, ecx
je 0x10008760
cmp edi, 0x100db040
je 0x1000882e
cmp dword [0x100db054], 8
mov eax, 0x100db040
cmovae eax, dword [0x100db040]
jmp 0x10008825
push 0x20c
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1000882e
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x630]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x10008806
test eax, eax
je 0x10008806
add eax, eax
cmp eax, 0x412
jae 0x10008946
xor ecx, ecx
mov word [ebp + eax - 0x630], cx
lea ecx, [ebp - 0x630]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100087f3
lea eax, [ebp - 0x630]
jmp 0x10008821
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008810
lea eax, [ebp - 0x21c]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.100039d0
mov byte [ebp - 4], 2
mov eax, dword [0x100dc660]
test eax, eax
je 0x10008842
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 7
xor eax, eax
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
lea ecx, [ebp - 0x64c]
push str.2345Pic
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 7
mov word [ebp - 0x64c], ax
call fcn.100039d0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x64c]
push eax
mov edx, edi
lea ecx, [ebp - 0x664]
call fcn.10010150
add esp, 4
mov esi, eax
mov byte [ebp - 4], 5
cmp esi, 0x100dcac8
je 0x100088e9
mov ecx, edi
call fcn.10003970
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x100dcac8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x100dcad8], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x664]
call fcn.10003970
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64c]
call fcn.10003970
mov ecx, 0x100dcac8
call fcn.1000e2e0
test al, al
jne 0x1000891f
mov ecx, 0x100dcac8
call fcn.1000e470
mov dword [ebp - 4], 0xffffffff
mov eax, 0x100dca88
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a26ec
mov esp, ebp
pop ebp
ret
call fcn.100a285c
int3