Function at 0x502400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55aa6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x289c
call fcn.0051cbf0
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.00503950
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 0x502473
jl 0x5026de
cmp dword [esi + 0x18], ebx
jb 0x5026de
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 0x502a1a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x502a1a
lea ecx, [ebp - 0x19c]
call fcn.005040c0
cmp eax, 8
mov dword [ebp - 0x1c], eax
je 0x5025da
mov eax, dword [esi + 0x1c]
test eax, eax
jg 0x5024cd
jl 0x5026de
cmp dword [esi + 0x18], 0xa
jb 0x5026de
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 0x5024f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5024f9
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::PreCheckMp3___r_n
jmp 0x502a26
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 0x502a1a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x502a1a
lea ecx, [ebp - 0x19c]
call fcn.00503dd0
mov edi, eax
test edi, edi
jbe 0x502a2d
mov edx, dword [esi + 0x1c]
xor eax, eax
lea ecx, [edi + 0xa]
cmp eax, edx
mov dword [ebp - 0x20], ecx
jl 0x502555
jg 0x5026de
cmp ecx, dword [esi + 0x18]
ja 0x5026de
push edi
call fcn.005380a1
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x502575
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.new_operator_failed_in_CFormatParsing::PreCheckMp3____lastError__ld_r_n
jmp 0x502a26
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 0x50261e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50261e
mov eax, dword [ebp - 0x1c]
sub eax, 0x101
je 0x5025ba
dec eax
jne 0x5025cb
push edi
push ebx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 0x11], 0
call fcn.00504140
jmp 0x5025cb
push edi
push ebx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 0x11], 0
call fcn.00503e00
push ebx
call fcn.005380ca
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x30]
add esp, 4
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
xor ecx, ecx
add ebx, 0x2710
cmp ecx, eax
jl 0x502644
jg 0x5025f2
cmp ebx, edx
jbe 0x502644
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x50263f
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.00503a50
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.00503310
push ebx
call fcn.005380ca
add esp, 4
jmp 0x502a2d
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 0x502671
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x502671
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::PreCheckMp3___r_n
jmp 0x502a26
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 0x502a1a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x502a1a
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28ac]
push edx
push edi
push eax
lea ecx, [ebp - 0x19c]
call fcn.00504010
mov edi, eax
test edi, edi
je 0x502a2d
lea ecx, [ebp - 0x19c]
call fcn.00503d80
mov edx, dword [esi + 0x1c]
add eax, edi
lea ecx, [ebx + eax + 0x10]
xor eax, eax
cmp eax, edx
jl 0x50270d
jg 0x5026de
cmp ecx, dword [esi + 0x18]
jbe 0x50270d
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.00503a50
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.00503d80
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 0x50274a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x50274a
push eax
push str.SetFilePointer___error__ld_in_CFormatParsing::PreCheckMp3___r_n
jmp 0x502a26
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 0x502a1a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x502a1a
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push eax
push ecx
lea ecx, [ebp - 0x19c]
call fcn.00503ac0
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.0053091a
mov esi, dword [ebp - 0x18c]
mov edi, dword [ebp - 0x188]
mov ecx, esi
add esp, 0x10
or ecx, edi
je 0x5028b7
mov dword [ebp - 0x2c], 0x55f220
test edi, edi
mov byte [ebp - 4], 2
jg 0x5027ee
jl 0x5027d6
test esi, esi
jae 0x5027ee
mov edx, dword [0x5bb0f8]
lea eax, [ebp - 0x54]
push edx
push eax
call fcn.0051d0e8
add esp, 8
jmp 0x50289c
push 0
push 0x3c
push edi
push esi
call fcn.0051e2c0
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.0051e210
push 0
push 0x3c
push edx
push eax
call fcn.0051e2c0
push 0
push 0xe10
push edi
push esi
mov dword [ebp - 0x1c], eax
call fcn.0051e210
test edx, edx
jg 0x502888
jl 0x502838
cmp eax, 0x2710
ja 0x502888
test eax, eax
je 0x502856
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x5bb150]
push ecx
push eax
lea eax, [ebp - 0x54]
push edx
push eax
call fcn.0051d0e8
add esp, 0x10
jmp 0x502899
mov eax, dword [ebp - 0x1c]
push ebx
test eax, eax
je 0x502874
mov ecx, dword [0x5bb14c]
push eax
lea edx, [ebp - 0x54]
push ecx
push edx
call fcn.0051d0e8
add esp, 0x10
jmp 0x502899
mov eax, dword [0x5bb148]
lea ecx, [ebp - 0x54]
push eax
push ecx
call fcn.0051d0e8
add esp, 0xc
jmp 0x502899
lea edx, [ebp - 0x54]
push 0x597d04
push edx
call fcn.0051d0e8
add esp, 8
mov ebx, dword [ebp - 0x20]
push 0x5bb1b8
mov ecx, ebx
call fcn.00537f1c
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.00537ee0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14c]
call fcn.0053092d
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x5028e9
push 0x5bb1b4
mov ecx, ebx
call fcn.00537f1c
lea edx, [ebp - 0x14c]
mov ecx, ebx
push edx
call fcn.00537f1c
lea ecx, [ebp - 0x144]
call fcn.0053092d
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x50291b
push 0x5bb1b0
mov ecx, ebx
call fcn.00537f1c
lea ecx, [ebp - 0x144]
push ecx
mov ecx, ebx
call fcn.00537f1c
lea ecx, [ebp - 0x148]
call fcn.0053092d
mov edx, dword [ebp - 0x148]
mov eax, dword [edx - 8]
test eax, eax
je 0x50294d
push 0x5bb1ac
mov ecx, ebx
call fcn.00537f1c
lea eax, [ebp - 0x148]
mov ecx, ebx
push eax
call fcn.00537f1c
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00537b72
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0053092d
mov edx, dword [ebp - 0x24]
mov eax, dword [edx - 8]
test eax, eax
je 0x502989
push 0x5b1924
mov ecx, ebx
call fcn.00537ee0
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.00537f1c
lea ecx, [ebp - 0x140]
call fcn.0053092d
mov ecx, dword [ebp - 0x140]
mov eax, dword [ecx - 8]
test eax, eax
je 0x5029bb
push 0x5bb1a8
mov ecx, ebx
call fcn.00537f1c
lea edx, [ebp - 0x140]
mov ecx, ebx
push edx
call fcn.00537f1c
mov al, byte [ebp - 0x11]
mov byte [ebp - 4], 1
test al, al
lea ecx, [ebp - 0x24]
je 0x5029f0
call fcn.00537b04
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.00503a50
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.00537b04
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.00503a50
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.00503310
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.00503a50
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