Function at 0x10010dc0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x100668d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.1003ac40
add esp, 0xc
mov byte [ebp - 0x350], 0
push 0x103
push 0
lea ecx, [ebp - 0x34f]
push ecx
call fcn.1003ac40
add esp, 0xc
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea edx, [ebp - 0x10f]
push edx
call fcn.1003ac40
add esp, 0xc
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x10010e4a
xor eax, eax
jmp 0x100110b2
mov ecx, 7
mov esi, 0x10053740
lea edi, [ebp - 0x36c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 9
mov esi, 0x1005375c
lea edi, [ebp - 0x248]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x10053780]
mov dword [ebp - 0x224], ecx
mov edx, dword [0x10053784]
mov dword [ebp - 0x220], edx
mov eax, dword [0x10053788]
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x36c]
mov dword [ebp - 0x370], ecx
mov edx, dword [ebp - 0x370]
add edx, 1
mov dword [ebp - 0x374], edx
mov eax, dword [ebp - 0x370]
mov cl, byte [eax]
mov byte [ebp - 0x375], cl
add dword [ebp - 0x370], 1
cmp byte [ebp - 0x375], 0
jne 0x10010eac
mov edx, dword [ebp - 0x370]
sub edx, dword [ebp - 0x374]
mov dword [ebp - 0x37c], edx
push 0x844
mov eax, dword [ebp - 0x37c]
push eax
lea ecx, [ebp - 0x36c]
push ecx
call fcn.10010d00
add esp, 0xc
lea edx, [ebp - 0x248]
mov dword [ebp - 0x380], edx
mov eax, dword [ebp - 0x380]
add eax, 1
mov dword [ebp - 0x384], eax
mov ecx, dword [ebp - 0x380]
mov dl, byte [ecx]
mov byte [ebp - 0x385], dl
add dword [ebp - 0x380], 1
cmp byte [ebp - 0x385], 0
jne 0x10010f12
mov eax, dword [ebp - 0x380]
sub eax, dword [ebp - 0x384]
mov dword [ebp - 0x38c], eax
push 0x844
mov ecx, dword [ebp - 0x38c]
push ecx
lea edx, [ebp - 0x248]
push edx
call fcn.10010d00
add esp, 0xc
lea eax, [ebp - 0x224]
mov dword [ebp - 0x390], eax
mov ecx, dword [ebp - 0x390]
add ecx, 1
mov dword [ebp - 0x394], ecx
mov edx, dword [ebp - 0x390]
mov al, byte [edx]
mov byte [ebp - 0x395], al
add dword [ebp - 0x390], 1
cmp byte [ebp - 0x395], 0
jne 0x10010f78
mov ecx, dword [ebp - 0x390]
sub ecx, dword [ebp - 0x394]
mov dword [ebp - 0x39c], ecx
push 0x844
mov edx, dword [ebp - 0x39c]
push edx
lea eax, [ebp - 0x224]
push eax
call fcn.10010d00
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
lea edx, [ebp - 0x350]
push edx
call fcn.100107a0
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x350]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10011025
mov eax, 1
jmp 0x100110b2
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.1003ac40
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x350]
push ecx
call fcn.1003ac40
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x350]
push eax
call fcn.100107a0
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x350]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x350]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100110b0
mov eax, 1
jmp 0x100110b2
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a5ba
mov esp, ebp
pop ebp
ret