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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010273d
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x280], 0
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x270]
call fcn.10028ef0
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x240]
push ecx
call fcn.1008e2a0
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x240]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, 0x4c
mov word [ebp - 0x38], ax
mov ecx, 0x75
mov word [ebp - 0x36], cx
mov edx, 0x64
mov word [ebp - 0x34], dx
mov eax, 0x61
mov word [ebp - 0x32], ax
mov ecx, 0x73
mov word [ebp - 0x30], cx
mov edx, 0x68
mov word [ebp - 0x2e], dx
mov eax, 0x69
mov word [ebp - 0x2c], ax
mov ecx, 0x5c
mov word [ebp - 0x2a], cx
mov edx, 0x73
mov word [ebp - 0x28], dx
mov eax, 0x77
mov word [ebp - 0x26], ax
mov ecx, 0x69
mov word [ebp - 0x24], cx
mov edx, 0x74
mov word [ebp - 0x22], dx
mov eax, 0x63
mov word [ebp - 0x20], ax
mov ecx, 0x68
mov word [ebp - 0x1e], cx
mov edx, 0x2e
mov word [ebp - 0x1c], dx
mov eax, 0x6a
mov word [ebp - 0x1a], ax
mov ecx, 0x73
mov word [ebp - 0x18], cx
mov edx, 0x6f
mov word [ebp - 0x16], dx
mov eax, 0x6e
mov word [ebp - 0x14], ax
xor ecx, ecx
mov word [ebp - 0x12], cx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002794c
jmp 0x10027a8e
lea ecx, [ebp - 0x258]
call fcn.10006950
mov byte [ebp - 4], 1
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x240]
push eax
call fcn.10026270
add esp, 8
test eax, eax
je 0x10027987
lea ecx, [ebp - 0x258]
call fcn.1002aec0
movzx ecx, al
test ecx, ecx
je 0x1002799b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x258]
call fcn.10006da0
jmp 0x10027a8e
lea ecx, [ebp - 0x258]
call fcn.1000a210
push eax
call fcn.100420b0
add esp, 4
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0
je 0x10027a77
mov ecx, dword [ebp + 0xc]
call fcn.1000a210
push eax
mov edx, dword [ebp - 0x274]
push edx
call fcn.10042260
add esp, 8
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
jne 0x10027a0c
mov eax, dword [ebp - 0x274]
push eax
call fcn.10042140
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x258]
call fcn.10006da0
jmp 0x10027a8e
mov ecx, dword [ebp + 0x10]
call fcn.1000a210
push eax
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.10042260
add esp, 8
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
jne 0x10027a53
mov edx, dword [ebp - 0x274]
push edx
call fcn.10042140
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x258]
call fcn.10006da0
jmp 0x10027a8e
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x270]
call fcn.10023740
mov edx, dword [ebp - 0x274]
push edx
call fcn.10042140
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x258]
call fcn.10006da0
xor eax, eax
jne 0x1002784b
lea ecx, [ebp - 0x270]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10028e70
mov edx, dword [ebp - 0x280]
or edx, 1
mov dword [ebp - 0x280], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.10006da0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret