Function at 0x411300
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4294c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x43ba70]
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x18]
xor ebx, ebx
push ecx
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.00412b20
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x10]
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4113ad
mov eax, dword [0x43ba70]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x28], ebp
call sub.MFC42u.DLL_CString::CString
mov eax, esi
jmp 0x411530
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4113f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x43ba70]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, esi
jmp 0x411530
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
call sub.MFC42u.DLL_CString::CString_3
lea edx, [esp + 0x18]
mov bl, 2
push edx
mov ecx, edi
mov byte [esp + 0x2c], bl
call fcn.00412b20
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push 0x434208
push ecx
mov byte [esp + 0x34], 3
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call sub.MFC42u.DLL_CString::CString
mov eax, 0xe91ed8f5
mov ebx, dword [esp + 0x30]
mul esi
mov edi, dword [esp + 0x34]
shr edx, 0xb
test edi, edi
mov dword [ebx], edx
je 0x4114fb
lea edx, [esp + 0x1c]
push 0
push edx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x4114a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x43ba70]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, esi
jmp 0x411530
mov ecx, dword [ebx]
push edi
push ecx
call fcn.0041a2b0
mov eax, dword [ebx]
add esp, 8
xor edx, edx
test eax, eax
jbe 0x4114fb
mov esi, dword [esp + 0x10]
lea eax, [edi + 0x491]
mov cx, word [esi]
cmp word [eax], cx
je 0x4114d1
mov word [eax], cx
mov ecx, dword [eax + 0x428]
test ecx, ecx
jne 0x4114ef
mov ecx, dword [eax + 0x430]
test ecx, ecx
je 0x4114ef
mov dword [eax + 0x430], 0
mov ecx, dword [ebx]
inc edx
add eax, 0x8c9
cmp edx, ecx
jb 0x4114c6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x43ba70]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8