Function at 0x10006570
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100b4e18
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebp
push esi
push edi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x174]
push 0xfe
lea eax, [esp + 0x65]
push 0
mov dword [esp + 0x1c], 0
push eax
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x6c], 0
call fcn.1007f650
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0xf01ff
mov dword [esp + 0x24], 0xff
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10006621
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x60]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10006626
mov ecx, 0xd
mov esi, str.Local_SettingsApplication_DataMicrosoftMessenger
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
movsb byte es:[edi], byte [esi]
call fcn.10014970
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x170], 1
call fcn.10014e70
lea ecx, [esp + 0x24]
xor edi, edi
call fcn.10013db0
test eax, eax
jle 0x100066eb
lea esp, [esp]
push edi
lea ecx, [esp + 0x28]
call fcn.10013dc0
cmp dword [eax + 8], 0
je 0x100066dd
push edi
lea ecx, [esp + 0x28]
call fcn.10013dc0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1c]
call fcn.10006410
mov esi, dword [esp + 0x18]
push esi
mov byte [esp + 0x170], 2
call fcn.10002000
add esp, 4
test eax, eax
jne 0x10006782
lea ecx, [esi - 0xc]
mov byte [esp + 0x16c], 1
cmp ecx, dword [0x100d3010]
je 0x100066dd
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100066dd
push esi
call fcn.1007f6d5
add esp, 4
lea ecx, [esp + 0x24]
inc edi
call fcn.10013db0
cmp edi, eax
jl 0x10006670
mov eax, dword [0x100d3014]
push 0x100bac30
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x10006740
lea ecx, [esi + esi + 0xe]
push ecx
call fcn.1007f6ca
add esp, 4
test eax, eax
je 0x10006740
mov dword [eax], 1
xor edx, edx
mov word [eax + esi*2 + 0xc], dx
lea ecx, [esi + esi]
push ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
push 0x100bac30
push eax
mov dword [ebp], eax
call fcn.1007f6e0
add esp, 0xc
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x16c], 0
call fcn.100145d0
mov eax, ebp
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.1007fec9
add esp, 0x160
ret
cmp dword [esi - 0xc], 0
lea edi, [esi - 0xc]
jl 0x10006797
push edi
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x100067a8
mov edx, dword [0x100d3014]
push esi
mov ecx, ebp
mov dword [ebp], edx
call fcn.10001960
add esi, 0xfffffff4
mov dword [esp + 0x14], 1
cmp esi, dword [0x100d3010]
je 0x10006748
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10006748
push edi
call fcn.1007f6d5
add esp, 4
jmp 0x10006748