Function at 0x100314b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10105bbe
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x1014b520]
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
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x21c], 0
call fcn.100319e0
add esp, 4
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 3
cmp dword [eax - 0xc], 0
jne 0x10031519
lea edx, [eax - 0x10]
or edi, 0xffffffff
jmp 0x1003163c
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21d]
call fcn.10030e30
mov ecx, dword [eax]
test ecx, ecx
jne 0x10031536
or ebx, 0xffffffff
jmp 0x1003155e
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jge 0x10031544
or ebx, 0xffffffff
jmp 0x1003155e
push ecx
push eax
call fcn.100d73cc
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10031559
or ebx, 0xffffffff
jmp 0x1003155e
sub ebx, dword [ebp + 8]
sar ebx, 1
mov edx, dword [ebp - 0x224]
or edi, 0xffffffff
shr ebx, 0x1f
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031581
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x100315c5
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21d]
call fcn.10030e30
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.10030f40
mov edx, dword [ebp - 0x224]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100315c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100d6e30
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x228], esi
call fcn.10001930
add esp, 4
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
push eax
call fcn.10032220
mov edx, dword [ebp - 0x21c]
add esp, 0x10
add edx, 0xfffffff0
mov eax, edi
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031654
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031672
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031690
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x100316af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.100bb073
mov esp, ebp
pop ebp
ret