Function at 0x100144a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e5c57
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x220], esi
xor eax, eax
mov dword [ebp - 0x228], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], 1
call fcn.10014ce0
test al, al
je 0x10014587
push 0x100f237c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x100145e0
push str.SHGetKnownFolderPath
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001457e
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push ecx
push 0
push 0x8000
push 0x100f71c8
call eax
test eax, eax
jne 0x1001457e
push dword [ebp - 0x21c]
mov ecx, esi
call fcn.1000edf0
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100145e0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10088fa0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x100145e0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100145c2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.1000c740
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10014715
mov edx, dword [esi + 0x14]
mov eax, esi
mov dword [ebp - 0x21c], edx
cmp edx, 8
jb 0x100145fd
mov eax, dword [esi]
lea edi, [ecx + ecx]
cmp word [edi + eax - 2], 0x5c
mov dword [ebp - 0x224], edi
je 0x10014715
cmp ecx, edx
jae 0x10014631
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x10014625
mov eax, dword [esi]
mov dword [edi + eax], 0x5c
jmp 0x10014715
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x10014732
lea eax, [ecx + 1]
mov edi, eax
mov dword [ebp - 0x22c], eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x1001465e
mov edi, SysReAllocString
jmp 0x1001467c
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x10014674
mov edi, SysReAllocString
jmp 0x1001467c
lea eax, [ecx + edx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.1000ad90
cmp dword [ebp - 0x21c], 8
mov ecx, dword [ebp - 0x22c]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x224]
mov dword [esi + 0x14], edi
mov dword [ebp - 0x220], eax
push ecx
lea edi, [ecx + eax]
mov dword [ebp - 0x224], edi
jb 0x100146fd
mov edi, dword [esi]
push edi
push eax
call fcn.10088a20
mov eax, dword [ebp - 0x224]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0x21c]
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x100146f1
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x10014737
mov edi, edx
push ecx
push edi
call fcn.10084de4
add esp, 8
jmp 0x1001470d
push esi
push eax
call fcn.10088a20
add esp, 0xc
mov dword [edi], 0x5c
mov eax, dword [ebp - 0x220]
mov dword [esi], eax
mov eax, esi
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.1008511a
mov esp, ebp
pop ebp
ret
call fcn.1000ad20
call fcn.1008ca42
int3