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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.1000b9d8
push 0x1002b1d4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x118]
push eax
push esi
push esi
push 0x1a
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov edi, 0x104
push edi
push 3
call fcn.10006923
mov ebx, dword [sym.imp.SHLWAPI.dll_StrNCatA]
push eax
lea eax, [ebp - 0x118]
push eax
call ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1000b491
lea eax, [ebp - 0x220]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call esi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push edi
push 4
call fcn.10006923
push eax
lea eax, [ebp - 0x220]
push eax
call ebx
push 1
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.10012106
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000b5cf
push eax
call fcn.1000b0a8
push 0x40000000
lea eax, [ebp - 0x118]
push eax
call fcn.10012013
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x1000b4c7
call fcn.10002267
lea eax, [ebp - 0x118]
push eax
call fcn.10011ff1
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x1000b5b5
push dword [ebp - 4]
call fcn.10012076
cmp dword [ebp + 0xc], 0
je 0x1000b58d
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1000b4fb
push 0x94
push 5
mov edx, 0x1002959c
call fcn.100117e3
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000b51d
push 0x98
push 6
mov edx, 0x100295a4
call fcn.100117e3
mov ecx, dword [ebp + 8]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1000b523
sub ecx, esi
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1000b535
sub ecx, esi
mov esi, ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000b543
sub eax, ecx
mov ecx, dword [ebp - 8]
add eax, esi
lea esi, [eax + ecx + 1]
call fcn.10012679
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x1000b5b5
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push dword [ebp + 8]
push esi
call ebx
push edi
push dword [ebp - 0x10]
push esi
call ebx
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000b581
sub eax, ecx
push esi
jmp 0x1000b59f
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000b593
push dword [ebp + 8]
sub eax, edx
push dword [ebp - 4]
mov esi, eax
call fcn.100120cd
mov esi, dword [ebp - 8]
test esi, esi
je 0x1000b5b5
call fcn.1001272d
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x1000b5c1
call fcn.1001272d
cmp dword [ebp - 4], 0xffffffff
je 0x1000b5cf
push dword [ebp - 4]
call fcn.10010350
push 0x1002b1d4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esp, [ebp - 0x230]
pop edi
pop esi
pop ebx
leave
ret 8