Function at 0x10070e90
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10180f0c
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x101dd594]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x420]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1007113c
lea eax, [ebp - 0x420]
mov dword [ebp - 0x440], 0
push eax
lea ecx, [ebp - 0x440]
call fcn.10016670
lea ecx, [ebp - 0x441]
mov dword [ebp - 4], 0
call fcn.1006aee0
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.1001cb20
add esp, 0xc
push eax
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 1
call fcn.1001c9f0
mov edx, dword [ebp - 0x448]
or edi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10070f5a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x10193aa8
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0xf
mov byte [ebp - 0x43c], 0
call fcn.10019000
push dword [ebp - 0x440]
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10070fb0
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x440]
call fcn.100c9ed0
add esp, 8
cmp dword [ebp - 0x428], 0x10
lea eax, [ebp - 0x43c]
push 0
cmovae eax, dword [ebp - 0x43c]
push 0xffffffffffffffff
push 0xfde9
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
call fcn.1003d2d0
cmp dword [ebp - 0x428], 0x10
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 3
cmovae ecx, dword [ebp - 0x43c]
cmp dword [ebp - 0x42c], 0xb
jne 0x10071092
mov edx, str.MyDocument:
mov esi, 7
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10071024
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10071013
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1007104b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1007104b
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1007104b
cmp esi, 0xffffffff
je 0x10071047
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1007104b
xor eax, eax
jmp 0x10071050
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10071092
push eax
push 5
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10071070
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
lea ecx, [ebp - 0x424]
push edx
push eax
call fcn.10020080
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x424]
push eax
call fcn.1001c9f0
mov edx, dword [ebp - 0x424]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100710c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x100710ff
mov ecx, dword [ebp - 0x43c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100710f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10071157
push edx
push ecx
call fcn.10127e1e
add esp, 8
mov edx, dword [ebp - 0x440]
mov dword [ebp - 0x42c], 0
add edx, 0xfffffff0
mov dword [ebp - 0x428], 0xf
mov byte [ebp - 0x43c], 0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1007113c
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10128191
mov esp, ebp
pop ebp
ret
call fcn.10153963
int3