Function at 0x10001217
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x10047230
call fcn.100464e0
sub esp, 0x214
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov eax, dword [edi]
cmp dword [eax - 8], ebx
je 0x1000148a
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 1
cmp dword [eax - 8], ebx
jne 0x1000127b
push edi
lea ecx, [ebp - 0x10]
call fcn.100460f4
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x1000127b
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::Empty
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jne 0x1000134c
cmp dword [ebp + 0xc], ebx
jne 0x1000134c
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CString::operator
push 0x5c
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x10001300
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.100460f4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], ebx
je 0x1000134c
lea eax, [ebp - 0x14]
push eax
call fcn.100010ca
pop ecx
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.100460f4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x1000134c
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::Empty
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jne 0x100013cb
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Empty
lea eax, [ebp + 0xc]
push eax
call fcn.100010ed
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.100460f4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], ebx
je 0x100013cb
lea eax, [ebp - 0x14]
push eax
call fcn.100010ca
pop ecx
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.100460f4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x100013cb
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::Empty
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jne 0x1000144a
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Empty
lea eax, [ebp + 0xc]
push eax
call fcn.10001182
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.100460f4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], ebx
je 0x1000144a
lea eax, [ebp - 0x14]
push eax
call fcn.100010ca
pop ecx
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.100460f4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x1000144a
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::Empty
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [eax - 8], ebx
je 0x1000146a
push eax
call esi
test eax, eax
je 0x1000146a
push dword [ebp - 0x10]
call edi
mov esi, eax
cmp esi, ebx
jne 0x10001473
mov eax, dword [ebp + 8]
push dword [eax]
call edi
mov esi, eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret