Function at 0x100131f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a60f6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x10216040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x234], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], esi
push 0
push eax
call fcn.1017cab0
add esp, 0xc
mov ecx, edi
cmp dword [edi + 0x14], 0xf
jbe 0x10013253
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
mov edx, eax
push 2
push 0x101f1278
mov dword [ebp - 0x234], eax
call fcn.1000c560
add esp, 8
test al, al
je 0x10013278
mov eax, 0x1a
jmp 0x100132a1
cmp dword [edi + 0x14], 0xf
jbe 0x10013280
mov edi, dword [edi]
mov edx, dword [ebp - 0x234]
mov ecx, edi
push 2
push 0x101f127c
call fcn.1000c560
add esp, 8
test al, al
je 0x100134d1
xor eax, eax
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100134aa
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.100146e0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x258]
call fcn.100146e0
push 0
push 0
push 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x258]
cmp dword [ebp - 0x244], 7
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmova eax, dword [ebp - 0x258]
push 0
push dword [ebp - 0x248]
push eax
push 0
push 0xfde9
call esi
mov edi, eax
mov dword [ebp - 0x238], 0
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x240]
movq qword [ebp - 0x240], xmm0
lea eax, [edi + 1]
push eax
call fcn.1000d7e0
cmp dword [ebp - 0x244], 7
lea eax, [ebp - 0x258]
push 0
cmova eax, dword [ebp - 0x258]
push 0
push edi
push dword [ebp - 0x240]
push dword [ebp - 0x248]
push eax
push 0
push 0xfde9
call esi
mov eax, dword [ebp - 0x240]
mov byte [eax + edi], 0
mov esi, dword [ebp - 0x25c]
xorps xmm0, xmm0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x240]
mov ecx, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100133a5
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.1000d570
mov edx, dword [ebp - 0x240]
test edx, edx
je 0x1001340f
mov ecx, dword [ebp - 0x238]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x100133e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013510
push ecx
push edx
call fcn.10178716
add esp, 8
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov ecx, dword [ebp - 0x244]
cmp ecx, 7
jbe 0x1001344f
mov edx, dword [ebp - 0x258]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013445
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013510
push ecx
push edx
call fcn.10178716
add esp, 8
mov ecx, dword [ebp - 0x21c]
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
cmp ecx, 7
jbe 0x100134f3
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001349e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013510
push ecx
push edx
call fcn.10178716
add esp, 8
jmp 0x100134f3
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
jmp 0x100134f3
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x101f082c
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.1000d570
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.101786e5
mov esp, ebp
pop ebp
ret
call fcn.1018001f
int3