Function at 0x102827b
Capabilities:
Get common file path

Disassembly:
push 0xfac
mov eax, 0x103f18d
call fcn.01002a3a
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
lea ecx, [ebp - 0x644]
mov dword [ebp - 0xf98], eax
xor ebx, ebx
xor edi, edi
call fcn.0100a0c7
mov dword [ebp - 4], ebx
mov dword [ebp - 0xfa0], 0x1002be4
mov dword [ebp - 0xf9c], ebx
lea eax, [ebp - 0xf9c]
push eax
push 8
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1028327
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100a7a1
push ebx
lea ecx, [ebp - 0xf94]
mov edi, eax
call fcn.01026f3f
push 0x7d0
lea eax, [ebp - 0xf94]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0102629d
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [esi + 0xc]
mov ecx, esi
push 0x1028a08
call dword [eax + 0x10]
lea ecx, [ebp - 0xf94]
mov byte [ebp - 4], 1
call fcn.010261ea
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp edi, ebx
mov dword [ebp - 0xf8c], 0x105
jl 0x10283fa
lea eax, [ebp - 0xf8c]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0xf9c]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x10283c2
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x644]
lea ecx, [ebp - 0x644]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x638]
cmp eax, ebx
jbe 0x10283fa
mov ecx, dword [ebp - 0x640]
movzx eax, word [ecx + eax*2 - 2]
push eax
call fcn.01003a20
test eax, eax
je 0x10283fa
mov eax, dword [ebp - 0x638]
dec eax
push eax
lea ecx, [ebp - 0x644]
call fcn.0100a108
jmp 0x10283fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100a7a1
push ebx
lea ecx, [ebp - 0xf94]
mov edi, eax
call fcn.01026f3f
push 0x7dc
lea eax, [ebp - 0xf94]
push eax
mov ecx, esi
call fcn.0102629d
lea ecx, [ebp - 0xf94]
call fcn.010261ea
push ebx
lea ecx, [ebp - 0xfa0]
mov dword [ebp - 0xfa0], 0x1002be4
call fcn.01002cc0
lea ecx, [ebp - 0x5b0]
call fcn.0100a0c7
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov byte [ebp - 4], 3
call sub.msvcrt.dll_memset
add esp, 0xc
cmp edi, ebx
mov dword [ebp - 0xf8c], 0x105
jl 0x10284ec
lea eax, [ebp - 0xf8c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x10284b4
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x5b0]
lea ecx, [ebp - 0x5b0]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x5a4]
cmp eax, ebx
jbe 0x10284ec
mov ecx, dword [ebp - 0x5ac]
movzx eax, word [ecx + eax*2 - 2]
push eax
call fcn.01003a20
test eax, eax
je 0x10284ec
mov eax, dword [ebp - 0x5a4]
dec eax
push eax
lea ecx, [ebp - 0x5b0]
call fcn.0100a108
jmp 0x10284ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100a7a1
push ebx
lea ecx, [ebp - 0xf94]
mov edi, eax
call fcn.01026f3f
push 0x7db
lea eax, [ebp - 0xf94]
push eax
mov ecx, esi
call fcn.0102629d
lea ecx, [ebp - 0xf94]
call fcn.010261ea
cmp dword [0x104a04c], 0x7d6
mov byte [ebp - 0xf85], bl
jl 0x10285b7
cmp edi, ebx
jl 0x10285b0
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 1
push ebx
push 0x401c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jl 0x10285b0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x51c]
call fcn.01009d0d
mov eax, dword [ebp - 0x51c]
push 0xffffffffffffffff
push dword [ebp - 0x510]
lea ecx, [ebp - 0x51c]
push 0x1028a00
mov byte [ebp - 4], 4
call dword [eax + 0xc]
push dword [ebp - 0xf98]
lea eax, [ebp - 0x51c]
push esi
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x5b0]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xf85]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.01028068
lea ecx, [ebp - 0x51c]
call fcn.010084de
xor edi, edi
jmp 0x1028972
cmp edi, ebx
mov dword [ebp - 0xfb8], 0x1a
mov dword [ebp - 0xfb4], 0x21
mov dword [ebp - 0xfb0], 0x13
mov dword [ebp - 0xfac], 0x1b
mov dword [ebp - 0xfa8], 9
mov dword [ebp - 0xfa4], 0x15
mov dword [ebp - 0xf8c], ebx
jl 0x1028972
cmp dword [ebp - 0xf8c], 6
jae 0x1028730
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xf8c]
mov eax, dword [ebp + eax*4 - 0xfb8]
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 1
push ebx
or eax, 0x4000
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jl 0x10286aa
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x51c]
call fcn.01009d0d
push dword [ebp - 0xf98]
mov byte [ebp - 4], 5
push esi
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x5b0]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xf85]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.01028068
lea ecx, [ebp - 0x51c]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.010084de
jmp 0x1028722
push ebx
lea ecx, [ebp - 0xf94]
call fcn.01026f3f
push 0x7df
lea eax, [ebp - 0xf94]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0102629d
push dword [esi + 8]
mov ecx, esi
call fcn.0100fcfc
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [ebp - 0xf9c], eax
mov eax, dword [ebp - 0xf8c]
push dword [ebp + eax*4 - 0xfb8]
mov eax, dword [ebp - 0xf9c]
push 0x101742c
sub ecx, edx
push ecx
lea eax, [eax + edx*2]
push eax
call fcn.0100a257
add esp, 0x10
push 0xffffffffffffffff
mov ecx, esi
call fcn.01010357
lea ecx, [ebp - 0xf94]
mov byte [ebp - 4], 3
call fcn.010261ea
inc dword [ebp - 0xf8c]
cmp edi, ebx
jge 0x1028601
cmp edi, ebx
jl 0x1028972
push 0x1009ca8
lea ecx, [ebp - 0x51c]
call fcn.01009d0d
push dword [ebp - 0x5a4]
mov eax, dword [ebp - 0x51c]
push dword [ebp - 0x510]
lea ecx, [ebp - 0x51c]
push dword [ebp - 0x5ac]
mov byte [ebp - 4], 7
call dword [eax + 0x10]
mov eax, dword [ebp - 0x51c]
push 0xffffffffffffffff
push dword [ebp - 0x510]
lea ecx, [ebp - 0x51c]
push 0x10289e4
call dword [eax + 0x10]
push dword [ebp - 0x518]
lea ecx, [ebp - 0xf8c]
call fcn.0100883d
mov edi, dword [ebp - 0xf8c]
neg edi
sbb edi, edi
and edi, 0x7ff8fff2
add edi, 0x8007000e
mov byte [ebp - 4], 8
js 0x10287cc
mov eax, dword [ebp - 0xf98]
mov ecx, dword [eax]
push ebx
push ebx
push dword [ebp - 0xf8c]
push eax
call dword [ecx + 0xc]
mov edi, eax
push dword [ebp - 0xf8c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x51c]
mov byte [ebp - 4], 3
call fcn.010084de
cmp edi, ebx
jl 0x1028972
lea ecx, [ebp - 0x51c]
call fcn.0100a0c7
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov byte [ebp - 4], 9
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 1
push ebx
push 0x401c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jl 0x1028928
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x51c]
lea ecx, [ebp - 0x51c]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x510]
cmp eax, ebx
jne 0x1028864
or eax, 0xffffffff
jmp 0x1028873
add eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x51c]
call fcn.0102625d
cmp eax, dword [ebp - 0x638]
jle 0x10288bf
push eax
lea ecx, [ebp - 0x51c]
call fcn.0100a108
push dword [ebp - 0xf98]
lea eax, [ebp - 0x51c]
push esi
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x5b0]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xf85]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.01028068
mov edi, eax
jmp 0x1028967
cmp byte [ebp - 0xf85], bl
jne 0x1028967
push dword [ebp - 0x518]
lea eax, [ebp - 0x488]
push 0x10289bc
push 0x136
push eax
call fcn.0100a257
add esp, 0x10
push dword [0x104a1b0]
lea ecx, [ebp - 0xf84]
call fcn.0100a2fc
push ebx
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0xf84]
push 0x800003f6
push eax
mov byte [ebp - 4], 0xa
call fcn.0102636b
add esp, 0x10
lea ecx, [ebp - 0xf84]
call fcn.0100c0d9
jmp 0x1028967
push ebx
lea ecx, [ebp - 0xf94]
call fcn.01026f3f
push 0x7df
lea eax, [ebp - 0xf94]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.0102629d
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [esi + 0xc]
mov ecx, esi
push 0x1028994
call dword [eax + 0x10]
lea ecx, [ebp - 0xf94]
call fcn.010261ea
lea ecx, [ebp - 0x51c]
call fcn.010084de
lea ecx, [ebp - 0x5b0]
call fcn.010084de
lea ecx, [ebp - 0x644]
call fcn.010084de
mov eax, edi
call fcn.01002a77
ret 0x14