Function at 0x1000a7d0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 3
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000a819
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_CreateFile_in_CCODECMgr::Convert_v1_to_v2__d_
call fcn.1000b3f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov dword [esp + 0x14], ebx
push ebp
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push eax
push esi
mov dword [esp + 0x24], eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000a868
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x1000a868
lea edx, [esp + 0x14]
push 0
add edi, eax
push edx
push ebp
push edi
push esi
add ebx, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000a848
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push 0x20
push eax
call fcn.10008f20
add esp, 8
lea ecx, [esp + 0x1c]
lea edx, [ebp + 0x10020]
push ecx
push edx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x1000a8e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_CreateFileMapping_in_CCODECMgr::Convert_v1_to_v2__d_
call fcn.1000b3f0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x1000a8d8
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x1000a925
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000a904
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_MapViewOfFile_in_CCODECMgr::Convert_v1_to_v2__d_
call fcn.1000b3f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov esi, dword [esp + 0x10]
mov ecx, ebp
mov edx, ecx
lea edi, [eax + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
test eax, eax
je 0x1000a95c
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.DSIpcAg.dll_class_IDSIpcAg____cdecl_SCAPI_GetIDSIpcAgent_void_]
test eax, eax
jne 0x1000a977
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
push 0
lea ecx, [esp + 0x1c]
mov edx, dword [eax]
push 0
push ecx
lea ecx, [esp + 0x28]
push ecx
push ebp
mov ebp, dword [esp + 0x54]
push 0
push 0
push ebp
push 0x3f3
mov ecx, eax
call dword [edx]
test eax, eax
je 0x1000a9d1
push eax
push str.Failed_to_pDSIpcAg__Request_in_CCODECMgr::Convert_v1_to_v2__d_
call fcn.1000b3f0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_pDSIpcAg__Request_in_CCODECMgr::Convert_v1_to_v2__d_
call fcn.1000b3f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x1000aa0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_MapViewOfFile2_in_CCODECMgr::Convert_v1_to_v2__d_
call fcn.1000b3f0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
mov edx, dword [esp + 0x18]
lea eax, [esi + 0x20]
push edx
push eax
push ebp
call fcn.10009d20
add esp, 0xc
test eax, eax
push esi
jne 0x1000aa35
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret