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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10151b8c
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x101a154c]
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 0x1003920c
lea eax, [ebp - 0x420]
mov dword [ebp - 0x440], 0
push eax
lea ecx, [ebp - 0x440]
call fcn.10012f50
lea ecx, [ebp - 0x441]
mov dword [ebp - 4], 0
call fcn.10037880
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.100191f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 1
call fcn.100190c0
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 0x1003902a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x1015f9a8
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0xf
mov byte [ebp - 0x43c], 0
call fcn.10015880
push dword [ebp - 0x440]
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10039080
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x440]
call fcn.1009b4d0
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.10039780
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 0x10039162
mov edx, str.MyDocument:
mov esi, 7
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100390f4
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100390e3
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1003911b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1003911b
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1003911b
cmp esi, 0xffffffff
je 0x10039117
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1003911b
xor eax, eax
jmp 0x10039120
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10039162
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 0x10039140
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
lea ecx, [ebp - 0x424]
push edx
push eax
call fcn.1001c8c0
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x424]
push eax
call fcn.100190c0
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 0x10039195
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 0x100391cf
mov ecx, dword [ebp - 0x43c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100391c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039227
push edx
push ecx
call fcn.100f8c70
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 0x1003920c
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.100f8fe1
mov esp, ebp
pop ebp
ret
call fcn.10124793
int3