Function at 0x10008a90
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b67d
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x230], eax
mov edi, dword [0x10095a04]
mov esi, ecx
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], 2
cmp dword [edi - 8], eax
je 0x10008b50
cmp dword [edi - 0xc], eax
lea ebx, [edi - 0xc]
jl 0x10008b27
lea eax, [edi - 0xc]
cmp eax, dword [0x10095a00]
je 0x10008b50
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008b19
push ebx
call fcn.10066c8a
add esp, 4
mov ecx, dword [0x10095a04]
mov dword [ebp - 0x220], ecx
jmp 0x10008b4a
push 0x100824b4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x100824b4
mov ebx, eax
lea esi, [ebp - 0x220]
call fcn.10004f10
mov esi, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x220]
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x10008c1f
cmp dword [edi - 0xc], 0
lea ebx, [edi - 0xc]
mov dword [ebp - 0x230], ebx
jl 0x10008b87
push ebx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x10008ba9
mov eax, dword [0x10095a04]
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov ebx, eax
call fcn.10004f10
mov esi, dword [ebp - 0x22c]
mov ebx, dword [ebp - 0x230]
add edi, 0xfffffff4
cmp edi, dword [0x10095a00]
je 0x10008bc8
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008bc8
push ebx
call fcn.10066c8a
add esp, 4
mov edi, dword [ebp - 0x228]
lea ecx, [edi - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10008bf0
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008bf0
push edi
call fcn.10066c8a
add esp, 4
mov edi, dword [ebp - 0x21c]
lea edx, [edi - 0xc]
cmp edx, dword [0x10095a00]
je 0x10008c18
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008c18
push edi
call fcn.10066c8a
add esp, 4
mov eax, esi
jmp 0x100090a7
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x218]
push eax
call edi
lea ecx, [ebp - 0x218]
push ecx
mov ebx, eax
lea esi, [ebp - 0x21c]
call fcn.10004f10
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x10008c5c
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10008c5c
call fcn.10003150
push 0x1008289c
call edi
test eax, eax
je 0x10008c77
push 0x1008289c
lea ecx, [ebp - 0x21c]
call fcn.100031e0
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x224]
push eax
mov ecx, str.chrome.exe
call fcn.10003340
mov edi, eax
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 3
call fcn.10003400
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x224]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10008cd5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008cd5
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff4
push eax
call fcn.10066c8a
add esp, 4
lea ebx, [ebp - 0x218]
lea esi, [ebp - 0x224]
call fcn.10004670
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x224]
mov eax, dword [esi - 8]
test eax, eax
jle 0x10008d10
cmp word [esi + eax*2 - 2], 0x5c
je 0x10008d10
lea esi, [ebp - 0x224]
call fcn.10003150
mov esi, dword [ebp - 0x224]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.GoogleChromeUser_DataDefault
call edi
test eax, eax
je 0x10008d37
push str.GoogleChromeUser_DataDefault
lea ecx, [ebp - 0x224]
call fcn.100031e0
mov esi, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x228]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10008d67
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008fef
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x10008e0f
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x220]
call fcn.10003b10
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, dword [0x10095a00]
je 0x10008db9
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10008db9
push esi
call fcn.10066c8a
add esp, 4
mov esi, dword [ebp - 0x220]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x10095a00]
je 0x10008ddd
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10008ddd
push esi
call fcn.10066c8a
add esp, 4
lea edx, [ebx - 0xc]
cmp edx, dword [0x10095a00]
je 0x10008dfb
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x10008dfb
push esi
call fcn.10066c8a
add esp, 4
mov esi, dword [ebp - 0x21c]
lea eax, [esi - 0xc]
cmp eax, dword [0x10095a00]
jmp 0x1000908c
lea ecx, [ebp - 0x218]
push ecx
call edi
lea edx, [ebp - 0x218]
push edx
mov ebx, eax
lea esi, [ebp - 0x21c]
call fcn.10004f10
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x10008e46
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10008e46
call fcn.10003150
push 0x1008289c
call edi
test eax, eax
je 0x10008e61
push 0x1008289c
lea ecx, [ebp - 0x21c]
call fcn.100031e0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x230]
push ecx
mov ecx, str.chrome.exe
call fcn.10003340
mov edi, eax
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.10003400
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x230]
lea edx, [eax - 0xc]
cmp edx, dword [0x10095a00]
je 0x10008ebf
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008ebf
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff4
push eax
call fcn.10066c8a
add esp, 4
mov ebx, dword [ebp - 0x228]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10008eef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008fef
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x2a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x10008f4e
mov edi, dword [ebp - 0x22c]
lea ecx, [ebp - 0x220]
mov eax, edi
call fcn.10003b10
lea esi, [ebp - 0x224]
call fcn.10006fb0
lea esi, [ebp - 0x220]
call fcn.10006fb0
lea esi, [ebp - 0x228]
call fcn.10006fb0
lea esi, [ebp - 0x21c]
call fcn.10006fb0
mov eax, edi
jmp 0x100090a7
lea edi, [ebp - 0x218]
lea eax, [ebp - 0x21c]
call fcn.10004f90
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x10008f7f
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10008f7f
lea esi, [ebp - 0x21c]
call fcn.10003150
push 0x1008289c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10008f9e
push 0x1008289c
lea ecx, [ebp - 0x21c]
call fcn.100031e0
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x230]
push edx
mov ecx, str.chrome.exe
call fcn.10003340
mov edi, eax
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 6
call fcn.10003400
lea esi, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.10006fb0
lea eax, [ebp - 0x228]
call fcn.10003270
test eax, eax
je 0x10008f08
mov ebx, dword [ebp - 0x228]
lea edi, [ebp - 0x21c]
lea eax, [ebp - 0x220]
call fcn.10003400
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x220]
call fcn.10003b10
mov eax, dword [ebp - 0x224]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x10095a00]
je 0x1000903b
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x1000903b
push esi
call fcn.10066c8a
add esp, 4
mov eax, dword [ebp - 0x220]
lea edx, [eax - 0xc]
cmp edx, dword [0x10095a00]
je 0x1000905f
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x1000905f
push esi
call fcn.10066c8a
add esp, 4
lea eax, [ebx - 0xc]
cmp eax, dword [0x10095a00]
je 0x1000907d
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x1000907d
push esi
call fcn.10066c8a
add esp, 4
mov esi, dword [ebp - 0x21c]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x10095a00]
je 0x100090a1
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x100090a1
push esi
call fcn.10066c8a
add esp, 4
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret