Function at 0x1006f840
Capabilities:
Check if file exists
Get file version info

Disassembly:
sub esp, 0x18
mov eax, dword [0x100cc8ec]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x28]
push edi
mov ebx, ecx
mov eax, dword [ebx]
push str._CORE__XWHSMDriverManager::getLibVerInfo__Start
push eax
call fcn.100772b0
mov ecx, dword [ebx]
push esi
push str._CORE__XWHSMDriverManager::getLibVerInfo__File_path__s_
push ecx
mov dword [esp + 0x28], 0
call fcn.100772b0
add esp, 0x14
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x1006f8df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1006f8a6
mov edx, dword [ebx]
push esi
push str._CORE__XWHSMDriverManager::getLibVerInfo__File_not_found__s_
push edx
jmp 0x1006f8af
push eax
mov eax, dword [ebx]
push str._CORE__XWHSMDriverManager::getLibVerInfo__Error_in_retrieving_version_1___d_
push eax
call fcn.100772b0
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ecx
push 0
push ebp
call sub.MSVCR80.dll_memset
add esp, 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10090524
add esp, 0x18
ret 0xc
push 1
push edi
call dword [sym.imp.MSVCR80.dll_calloc]
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1006f91b
mov edx, dword [ebx]
push str._CORE__XWHSMDriverManager::getLibVerInfo__Error_in_memory_allocation
push edx
call fcn.100772b0
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10090524
add esp, 0x18
ret 0xc
push eax
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x1006f966
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx]
push eax
push str._CORE__XWHSMDriverManager::getLibVerInfo__Error_in_retrieving_version_2___d_
push ecx
call fcn.100772b0
add esp, 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10090524
add esp, 0x18
ret 0xc
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push 0x100a179c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1006f9bc
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx]
push eax
push str._CORE__XWHSMDriverManager::getLibVerInfo__Error_in_retrieving_version_3___d_
push ecx
call fcn.100772b0
add esp, 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10090524
add esp, 0x18
ret 0xc
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
push edx
push 0
push ebp
call sub.MSVCR80.dll_memset
movzx eax, di
push eax
movzx ecx, si
shr edi, 0x10
push edi
push ecx
shr esi, 0x10
push esi
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
push str._CORE__XWHSMDriverManager::getLibVerInfo___d._d._d._d
push eax
mov dword [esp + 0x40], ecx
call fcn.100772b0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push ecx
push edi
push edx
push esi
push str._d._d._d._d
push ebp
call dword [sym.imp.MSVCR80.dll_sprintf]
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 0x40
push 0x1009ec09
push ebp
call dword [sym.imp.MSVCR80.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1006fa59
mov ecx, dword [ebx]
push str._CORE__XWHSMDriverManager::getLibVerInfo__No_version
push ecx
call fcn.100772b0
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10090524
add esp, 0x18
ret 0xc
mov edx, dword [ebx]
push str._CORE__XWHSMDriverManager::getLibVerInfo__End
push edx
call fcn.100772b0
mov ecx, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10090524
add esp, 0x18
ret 0xc