Function at 0x50c8a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565dcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x289c
call fcn.00527220
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0
mov byte [ebp - 0x11], 1
call fcn.0050ddf0
mov ecx, dword [esi + 0x1c]
xor eax, eax
mov edi, 0x2710
cmp ecx, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
mov ebx, 0x14
jg 0x50c913
jl 0x50cb7e
cmp dword [esi + 0x18], ebx
jb 0x50cb7e
mov edx, dword [esi + 0xc]
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [ebp - 0x134]
push 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50ceba
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50ceba
lea ecx, [ebp - 0x19c]
call fcn.0050e560
cmp eax, 8
mov dword [ebp - 0x1c], eax
je 0x50ca7a
mov eax, dword [esi + 0x1c]
test eax, eax
jg 0x50c96d
jl 0x50cb7e
cmp dword [esi + 0x18], 0xa
jb 0x50cb7e
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x28]
push 0
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x50c999
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x50c999
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::PreCheckMp3___r_n
jmp 0x50cec6
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x18]
push 0
push edx
lea eax, [ebp - 0x6c]
push 0xa
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50ceba
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50ceba
lea ecx, [ebp - 0x19c]
call fcn.0050e270
mov edi, eax
test edi, edi
jbe 0x50cecd
mov edx, dword [esi + 0x1c]
xor eax, eax
lea ecx, [edi + 0xa]
cmp eax, edx
mov dword [ebp - 0x20], ecx
jl 0x50c9f5
jg 0x50cb7e
cmp ecx, dword [esi + 0x18]
ja 0x50cb7e
push edi
call fcn.0054276d
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x50ca15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.new_operator_failed_in_CFormatParsing::PreCheckMp3____lastError__ld_r_n
jmp 0x50cec6
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x18]
push 0
push edx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50cabe
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50cabe
mov eax, dword [ebp - 0x1c]
sub eax, 0x101
je 0x50ca5a
dec eax
jne 0x50ca6b
push edi
push ebx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 0x11], 0
call fcn.0050e5e0
jmp 0x50ca6b
push edi
push ebx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 0x11], 0
call fcn.0050e2a0
push ebx
call fcn.00542796
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x20]
add esp, 4
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
xor ecx, ecx
add ebx, 0x2710
cmp ecx, eax
jl 0x50cae4
jg 0x50ca92
cmp ebx, edx
jbe 0x50cae4
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x50cadf
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.0050def0
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::PreCheckMp3___r_n
mov ecx, esi
call fcn.0050d7b0
push ebx
call fcn.00542796
add esp, 4
jmp 0x50cecd
mov edi, edx
mov dword [ebp - 0x2c], eax
mov ecx, dword [esi + 0xc]
push 0
push 0
push 0
push ecx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x50cb11
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x50cb11
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::PreCheckMp3___r_n
jmp 0x50cec6
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x18]
push 0
push edx
lea eax, [ebp - 0x28ac]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50ceba
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50ceba
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28ac]
push edx
push edi
push eax
lea ecx, [ebp - 0x19c]
call fcn.0050e4b0
mov edi, eax
test edi, edi
je 0x50cecd
lea ecx, [ebp - 0x19c]
call fcn.0050e220
mov edx, dword [esi + 0x1c]
add eax, edi
lea ecx, [ebx + eax + 0x10]
xor eax, eax
cmp eax, edx
jl 0x50cbad
jg 0x50cb7e
cmp ecx, dword [esi + 0x18]
jbe 0x50cbad
mov esi, dword [esi + 0x10]
lea ecx, [ebp - 0x19c]
neg esi
sbb esi, esi
mov byte [ebp - 4], 0
and esi, 0xfffffffe
add esi, 3
call fcn.0050def0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x19c]
call fcn.0050e220
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x28]
push 0
push ecx
mov ecx, dword [ebp - 0x1c]
add eax, edi
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x50cbea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x50cbea
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::PreCheckMp3___r_n
jmp 0x50cec6
mov edx, dword [esi + 0xc]
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [ebp - 0xfc]
push 0x10
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50ceba
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50ceba
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push eax
push ecx
lea ecx, [ebp - 0x19c]
call fcn.0050df60
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x194]
push edx
lea ebx, [esi + 8]
push eax
push str.MP3:__dkbs___dHz
push ebx
mov dword [ebp - 0x20], ebx
call fcn.0053afda
mov esi, dword [ebp - 0x18c]
mov edi, dword [ebp - 0x188]
mov ecx, esi
add esp, 0x10
or ecx, edi
je 0x50cd57
mov dword [ebp - 0x2c], 0x56a488
test edi, edi
mov byte [ebp - 4], 2
jg 0x50cc8e
jl 0x50cc76
test esi, esi
jae 0x50cc8e
mov edx, dword [0x5c7d50]
lea eax, [ebp - 0x54]
push edx
push eax
call fcn.00527718
add esp, 8
jmp 0x50cd3c
push 0
push 0x3c
push edi
push esi
call fcn.005288f0
mov ebx, eax
mov ecx, esi
cdq
sub ecx, eax
mov eax, edi
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.00528840
push 0
push 0x3c
push edx
push eax
call fcn.005288f0
push 0
push 0xe10
push edi
push esi
mov dword [ebp - 0x1c], eax
call fcn.00528840
test edx, edx
jg 0x50cd28
jl 0x50ccd8
cmp eax, 0x2710
ja 0x50cd28
test eax, eax
je 0x50ccf6
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x5c7da8]
push ecx
push eax
lea eax, [ebp - 0x54]
push edx
push eax
call fcn.00527718
add esp, 0x10
jmp 0x50cd39
mov eax, dword [ebp - 0x1c]
push ebx
test eax, eax
je 0x50cd14
mov ecx, dword [0x5c7da4]
push eax
lea edx, [ebp - 0x54]
push ecx
push edx
call fcn.00527718
add esp, 0x10
jmp 0x50cd39
mov eax, dword [0x5c7da0]
lea ecx, [ebp - 0x54]
push eax
push ecx
call fcn.00527718
add esp, 0xc
jmp 0x50cd39
lea edx, [ebp - 0x54]
push 0x5a3d54
push edx
call fcn.00527718
add esp, 8
mov ebx, dword [ebp - 0x20]
push 0x5c7e10
mov ecx, ebx
call fcn.005425d6
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.0054259a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14c]
call fcn.0053afed
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x50cd89
push 0x5c7e0c
mov ecx, ebx
call fcn.005425d6
lea edx, [ebp - 0x14c]
mov ecx, ebx
push edx
call fcn.005425d6
lea ecx, [ebp - 0x144]
call fcn.0053afed
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x50cdbb
push 0x5c7e08
mov ecx, ebx
call fcn.005425d6
lea ecx, [ebp - 0x144]
push ecx
mov ecx, ebx
call fcn.005425d6
lea ecx, [ebp - 0x148]
call fcn.0053afed
mov edx, dword [ebp - 0x148]
mov eax, dword [edx - 8]
test eax, eax
je 0x50cded
push 0x5c7e04
mov ecx, ebx
call fcn.005425d6
lea eax, [ebp - 0x148]
mov ecx, ebx
push eax
call fcn.005425d6
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0054222c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0053afed
mov edx, dword [ebp - 0x24]
mov eax, dword [edx - 8]
test eax, eax
je 0x50ce29
push 0x5be44c
mov ecx, ebx
call fcn.0054259a
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.005425d6
lea ecx, [ebp - 0x140]
call fcn.0053afed
mov ecx, dword [ebp - 0x140]
mov eax, dword [ecx - 8]
test eax, eax
je 0x50ce5b
push 0x5c7e00
mov ecx, ebx
call fcn.005425d6
lea edx, [ebp - 0x140]
mov ecx, ebx
push edx
call fcn.005425d6
mov al, byte [ebp - 0x11]
mov byte [ebp - 4], 1
test al, al
lea ecx, [ebp - 0x24]
je 0x50ce90
call fcn.005421be
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.0050def0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005421be
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.0050def0
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile___error__ld_in_CFormatParsing::PreCheckMp3___r_n
mov ecx, esi
call fcn.0050d7b0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.0050def0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret