Function at 0x4057e0
Capabilities:
Create thread
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408dd0
push 0x406c9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x68], esi
xor edi, edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xbc], edi
mov eax, dword [esi + 0x178]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [esi + 0xd4], eax
cmp eax, 0xffffffff
push edi
jne 0x405871
push edi
push str.Open_file_failed
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [esi + 0xc0], eax
push edi
push esi
push 0x405b70
push 0x2710
mov eax, dword [0x40bcb8]
push eax
call dword [sym.imp.HxPlayerSDK.dll_HX_PLAYER_SetSourceBufCallBack]
push 1
mov ecx, dword [0x40bcb8]
push ecx
call dword [sym.imp.HxPlayerSDK.dll_HX_PLAYER_SetStreamOpenMode]
call dword [sym.imp.HxPlayerSDK.dll_HX_PLAYER_GetFileHeadLength]
mov dword [esi + 0xb8], eax
mov dword [esi + 0xd0], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc8], edi
mov dword [ebp - 4], edi
lea edx, [ebp - 0x54]
push edx
push edi
push esi
push 0x405bd0
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0xd0], eax
push edi
push edi
push 1
push edi
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateEventA]
call ebx
mov dword [esi + 0xcc], eax
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0xc8], eax
cmp dword [esi + 0xd0], edi
je 0x405a30
cmp dword [esi + 0xcc], edi
je 0x405a30
cmp eax, edi
je 0x405a30
mov eax, dword [esi + 0xb8]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x50], ebx
cmp ebx, edi
push edi
jne 0x405945
push edi
push str.Alloc_memory_failed
jmp 0x4059d5
lea edx, [ebp - 0x58]
push edx
mov eax, dword [esi + 0xb8]
push eax
push ebx
mov ecx, dword [esi + 0xd4]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esi + 0xb8]
cmp dword [ebp - 0x58], eax
je 0x405998
push edi
push edi
push str.File_is_too_small
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x30d40
push eax
push ebx
mov eax, dword [0x40bcb8]
push eax
call dword [sym.imp.HxPlayerSDK.dll_HX_PLAYER_OpenStream]
test eax, eax
jne 0x4059fd
mov ecx, dword [0x40bcb8]
push ecx
call dword [sym.imp.HxPlayerSDK.dll_HX_PLAYER_GetLastError]
push eax
push str.Open_stream_failed__d_
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push edi
push edi
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
call fcn.00405a4e
mov ecx, esi
call fcn.00405cc0
mov ecx, esi
call fcn.00403960
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push edi
push str.Create_thread_failed
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
jmp 0x4059e2