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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.0046d4f0
mov ebx, dword [ebp + 8]
test eax, eax
je 0x42c6d3
push ebx
push str.CDolbyEnable::DecryptDolbyFile_:_pszDolbyFileName___s_n
push 0x65bb90
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x65ba90], eax
mov eax, 0x65bb90
mov dword [0x65ba94], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42c688
mov edi, 0x65ba90
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42c6a0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x65ba90
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 1
push ebx
mov dword [ebp - 8], edi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x42c7d8
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42c7d8
mov eax, dword [ebp - 0x20]
push eax
mov dword [ebp - 4], eax
call fcn.004a6dbf
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov dword [ebp - 0xc], edi
call fcn.004a6dbf
mov ecx, dword [ebp - 4]
mov ebx, eax
push ecx
mov dword [ebp - 0x14], ebx
call fcn.004a6dbf
add esp, 0xc
test edi, edi
je 0x42c7b8
test ebx, ebx
je 0x42c7b8
mov eax, dword [ebp - 4]
push 0
lea edx, [ebp - 4]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c7b1
cmp dword [edi], 0xecddcdbf
jne 0x42c7b1
cmp word [edi + 4], 2
jne 0x42c7b1
mov ecx, dword [ebp - 4]
lea esi, [edi + 0x40]
lea edx, [edi + ecx]
cmp esi, edx
jae 0x42c7a7
mov eax, dword [esi + 4]
add dword [ebp + 8], eax
mov ecx, esi
push ebx
lea edi, [esi + 4]
add esi, 8
push esi
push eax
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0042c5e0
mov edi, dword [edi]
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
add esi, edi
add ebx, edi
cmp esi, edx
jb 0x42c775
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 8], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push eax
push ebx
push ecx
call fcn.0059b910
push edi
call fcn.004a6dca
push ebx
call fcn.004a6dca
mov edi, dword [ebp - 8]
add esp, 0x14
call fcn.0046d4f0
test eax, eax
je 0x42c865
push edi
push 0x5d1b30
push 0x65b990
call fcn.00599ee3
mov eax, dword [0x5ccefc]
mov edx, dword [str.EXIT:]
mov dword [0x65b894], eax
mov eax, 0x65b990
add esp, 0xc
mov dword [0x65b890], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42c815
mov edi, 0x65b890
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42c826
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x65b890
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8