Function at 0x1028e7d
Capabilities:
Get common file path

Disassembly:
push 0x6d4
mov eax, 0x103f3a5
call fcn.01002a3a
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x6e0], eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
push edi
mov dword [ebp - 0x6c4], edi
mov dword [ebp - 0x6d4], ebx
mov dword [ebp - 0x6cc], eax
mov dword [ebp - 0x6c8], ecx
call fcn.01028ab9
mov esi, eax
test esi, esi
jl 0x1028f1f
push dword [ebp - 0x6cc]
push 0
push ebx
push edi
call fcn.01028d11
mov esi, eax
test esi, esi
jl 0x1028f1f
lea eax, [ebp - 0x6d5]
push eax
call fcn.010265f5
mov esi, eax
test esi, esi
jl 0x1028f1f
and dword [ebp - 0x6c0], 0
lea eax, [ebp - 0x6c0]
push eax
push ebx
push edi
call fcn.0103047c
test eax, eax
jge 0x1028f1f
cmp dword [ebp - 0x6c0], 0
jbe 0x1028f1f
push dword [ebp - 0x6cc]
push ebx
push edi
call fcn.01028ab9
mov esi, eax
xor eax, eax
cmp dword [0x104a04c], 0x7d6
push 0x1004cec
setge al
lea ecx, [ebp - 0x6d0]
mov dword [ebp - 0x6dc], eax
call fcn.0100883d
and dword [ebp - 4], 0
mov ebx, 0x8007000e
test esi, esi
jl 0x1028f81
mov esi, dword [ebp - 0x6d0]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
js 0x1028f81
push dword [ebp - 0x6cc]
push 0xffffffffffffffff
push dword [ebp - 0x6d0]
push dword [ebp - 0x6d4]
push edi
call fcn.01028db5
mov esi, eax
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
jl 0x1028fd5
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jl 0x1028fd5
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
jne 0x1028fd5
mov esi, 0x80004005
xor eax, eax
push edi
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
jl 0x1029034
lea eax, [ebp - 0x6c0]
push eax
lea eax, [ebp - 0x420]
push eax
mov dword [ebp - 0x6c0], 0x104
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x102902d
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
jne 0x1029034
mov esi, 0x80004005
jmp 0x1029034
call fcn.0100f56e
mov esi, eax
mov eax, dword [0x1022458]
mov dword [ebp - 0x628], eax
mov eax, dword [0x102245c]
push 0x200
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x620]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
jl 0x1029761
mov ax, word [ebp - 0x218]
mov edi, 0x1009ca8
push edi
lea ecx, [ebp - 0x6bc]
mov word [ebp - 0x628], ax
call fcn.01009d0d
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea eax, [ebp - 0x628]
push eax
mov eax, dword [ebp - 0x6bc]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 1
call dword [eax + 0x10]
mov eax, dword [ebp - 0x6bc]
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea ecx, [ebp - 0x6bc]
push 0x1029920
call dword [eax + 0x10]
push dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6c0]
call fcn.0100883d
mov esi, dword [ebp - 0x6c0]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
mov byte [ebp - 4], 2
js 0x1029106
mov eax, dword [ebp - 0x6c8]
mov ecx, dword [eax]
push 0
push 0
push dword [ebp - 0x6c0]
push eax
call dword [ecx + 0xc]
mov esi, eax
push dword [ebp - 0x6c0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0
call fcn.010084de
test esi, esi
jl 0x1029761
push edi
lea ecx, [ebp - 0x6bc]
call fcn.01009d0d
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x6bc]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 3
call dword [eax + 0x10]
mov eax, dword [ebp - 0x6bc]
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea ecx, [ebp - 0x6bc]
push 0x1029914
call dword [eax + 0x10]
push dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6c0]
call fcn.0100883d
mov esi, dword [ebp - 0x6c0]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
mov byte [ebp - 4], 4
js 0x10291b4
mov eax, dword [ebp - 0x6c8]
mov ecx, dword [eax]
push 0
push 0
push dword [ebp - 0x6c0]
push eax
call dword [ecx + 0xc]
mov esi, eax
push dword [ebp - 0x6c0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0
call fcn.010084de
test esi, esi
jl 0x1029761
push edi
lea ecx, [ebp - 0x6bc]
call fcn.01009d0d
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x6bc]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 5
call dword [eax + 0x10]
mov eax, dword [ebp - 0x6bc]
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea ecx, [ebp - 0x6bc]
push 0x1029900
call dword [eax + 0x10]
push dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6c0]
call fcn.0100883d
mov esi, dword [ebp - 0x6c0]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
mov byte [ebp - 4], 6
js 0x1029262
mov eax, dword [ebp - 0x6c8]
mov ecx, dword [eax]
push 0
push 0
push dword [ebp - 0x6c0]
push eax
call dword [ecx + 0xc]
mov esi, eax
push dword [ebp - 0x6c0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0
call fcn.010084de
test esi, esi
jl 0x1029761
push edi
lea ecx, [ebp - 0x6bc]
call fcn.01009d0d
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x6bc]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 7
call dword [eax + 0x10]
mov eax, dword [ebp - 0x6bc]
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea ecx, [ebp - 0x6bc]
push 0x1022454
call dword [eax + 0x10]
push dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6c0]
call fcn.0100883d
mov esi, dword [ebp - 0x6c0]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
mov byte [ebp - 4], 8
js 0x1029310
mov eax, dword [ebp - 0x6c8]
mov ecx, dword [eax]
push 0
push 0
push dword [ebp - 0x6c0]
push eax
call dword [ecx + 0xc]
mov esi, eax
push dword [ebp - 0x6c0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0
call fcn.010084de
test esi, esi
jl 0x1029761
push edi
lea ecx, [ebp - 0x6bc]
call fcn.01009d0d
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x6bc]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 9
call dword [eax + 0x10]
mov eax, dword [ebp - 0x6bc]
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea ecx, [ebp - 0x6bc]
push 0x10298d0
call dword [eax + 0x10]
push dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6c0]
call fcn.0100883d
mov esi, dword [ebp - 0x6c0]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
mov byte [ebp - 4], 0xa
js 0x10293be
mov eax, dword [ebp - 0x6c8]
mov ecx, dword [eax]
push 0
push 0
push dword [ebp - 0x6c0]
push eax
call dword [ecx + 0xc]
mov esi, eax
push dword [ebp - 0x6c0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0
call fcn.010084de
test esi, esi
jl 0x1029761
push edi
lea ecx, [ebp - 0x6bc]
call fcn.01009d0d
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x6bc]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0xb
call dword [eax + 0x10]
mov eax, dword [ebp - 0x6bc]
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea ecx, [ebp - 0x6bc]
push 0x10298ac
call dword [eax + 0x10]
push dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6c0]
call fcn.0100883d
mov esi, dword [ebp - 0x6c0]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
mov byte [ebp - 4], 0xc
js 0x102946c
mov eax, dword [ebp - 0x6c8]
mov ecx, dword [eax]
push 0
push 0
push dword [ebp - 0x6c0]
push eax
call dword [ecx + 0xc]
mov esi, eax
push dword [ebp - 0x6c0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0
call fcn.010084de
test esi, esi
jl 0x1029761
push edi
lea ecx, [ebp - 0x6bc]
call fcn.01009d0d
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x6bc]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0xd
call dword [eax + 0x10]
mov eax, dword [ebp - 0x6bc]
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea ecx, [ebp - 0x6bc]
push 0x1029830
call dword [eax + 0x10]
push dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6c0]
call fcn.0100883d
mov esi, dword [ebp - 0x6c0]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
mov byte [ebp - 4], 0xe
js 0x102951a
mov eax, dword [ebp - 0x6c8]
mov ecx, dword [eax]
push 0
push 0
push dword [ebp - 0x6c0]
push eax
call dword [ecx + 0xc]
mov esi, eax
push dword [ebp - 0x6c0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0
call fcn.010084de
test esi, esi
jl 0x1029761
push edi
lea ecx, [ebp - 0x6bc]
call fcn.01009d0d
mov eax, dword [ebp - 0x6bc]
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea ecx, [ebp - 0x6bc]
push dword [ebp - 0x6e0]
mov byte [ebp - 4], 0xf
call dword [eax + 0x10]
mov eax, dword [ebp - 0x6bc]
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
lea ecx, [ebp - 0x6bc]
push 0x1007d24
call dword [eax + 0x10]
push dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6c0]
call fcn.0100883d
mov esi, dword [ebp - 0x6c0]
mov edi, dword [ebp - 0x6c8]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
mov byte [ebp - 4], 0x10
js 0x10295c7
mov eax, dword [edi]
push 0
push 0
push dword [ebp - 0x6c0]
push edi
call dword [eax + 0xc]
mov esi, eax
push dword [ebp - 0x6c0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0
call fcn.010084de
test esi, esi
jl 0x1029761
cmp dword [ebp - 0x6dc], 0
je 0x102961b
push edi
push dword [ebp - 0x6cc]
push 1
push 0
push 1
push 0x16
push dword [ebp - 0x6d0]
push dword [ebp - 0x6d4]
push dword [ebp - 0x6c4]
call fcn.01027f17
mov esi, eax
test esi, esi
jl 0x1029761
push edi
push dword [ebp - 0x6cc]
push dword [ebp - 0x6d0]
push dword [ebp - 0x6d4]
push dword [ebp - 0x6c4]
call fcn.0102827b
mov esi, eax
test esi, esi
jl 0x1029761
push edi
push dword [ebp - 0x6cc]
push 1
push 0
push 0
push 0x23
push dword [ebp - 0x6d0]
push dword [ebp - 0x6d4]
push dword [ebp - 0x6c4]
call fcn.01027f17
mov esi, eax
test esi, esi
jl 0x1029761
push 0x10297e0
lea ecx, [ebp - 0x6c4]
call fcn.0100883d
mov esi, dword [ebp - 0x6c4]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
mov byte [ebp - 4], 0x11
js 0x10296b5
mov eax, dword [edi]
push 0
push 0
push dword [ebp - 0x6c4]
push edi
call dword [eax + 0xc]
mov esi, eax
push dword [ebp - 0x6c4]
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jl 0x1029761
push 0x10297ac
lea ecx, [ebp - 0x6c4]
call fcn.0100883d
mov esi, dword [ebp - 0x6c4]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
mov byte [ebp - 4], 0x12
js 0x1029707
mov eax, dword [edi]
push 0
push 0
push dword [ebp - 0x6c4]
push edi
call dword [eax + 0xc]
mov esi, eax
push dword [ebp - 0x6c4]
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jl 0x1029761
push 0x1029778
lea ecx, [ebp - 0x6c4]
call fcn.0100883d
mov esi, dword [ebp - 0x6c4]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
mov byte [ebp - 4], 0x13
js 0x1029755
mov eax, dword [edi]
push 0
push 0
push dword [ebp - 0x6c4]
push edi
call dword [eax + 0xc]
mov esi, eax
push dword [ebp - 0x6c4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x6d0]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
call fcn.01002a77
ret 0x14