Function at 0x5e8e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x448
mov eax, dword [ecx + 0x1c]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x11], 1
jg 0x5e8ebe
jl 0x5e8ea1
cmp dword [ecx + 0x18], 0x14
jae 0x5e8ebe
mov eax, dword [ecx + 0x14]
neg eax
sbb eax, eax
and al, 0xfe
add 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 fcn.005e4600
mov eax, dword [0x6fdff8]
mov byte [ebp - 0x13], 0
test eax, eax
je 0x5e986a
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0xffffffff
je 0x5e986a
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
test ecx, ecx
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x14], 0
jg 0x5e8efd
jl 0x5e8f02
cmp esi, 0x1388
jb 0x5e8f02
mov esi, 0x1388
push esi
call fcn.00622acb
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x5e986a
mov edx, dword [ebp - 0x3c]
mov ecx, esi
mov ebx, ecx
xor eax, eax
mov edi, edx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov ebx, dword [ebp - 0x24]
and ecx, 3
mov dword [ebp - 0x4c], 0
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x4c]
push ecx
push esi
push edx
mov edx, dword [ebx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e9800
mov edx, dword [ebp - 0x4c]
test edx, edx
jbe 0x5e9800
mov ecx, 0xfa
xor eax, eax
lea edi, [ebp - 0x454]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x2ec], eax
lea eax, [ebp - 0x454]
mov dword [ebp - 0x2e8], ecx
mov ecx, dword [ebp - 0x3c]
push eax
push 0
push edx
push ecx
mov byte [ebp - 0x454], 2
call dword [0x6fdff8]
cmp eax, 3
jne 0x5e90b7
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x5e8fb4
cmp esi, 0x1388
jb 0x5e90ce
lea edi, [ebp - 0x327]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0x14], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e9800
lea edx, [ebp - 0x327]
push 0x6c91b0
push edx
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e9013
mov eax, dword [0x6c91b0]
mov dword [ebp - 0x38], eax
mov eax, dword [0x6fdffc]
test eax, eax
je 0x5e9800
lea ecx, [ebp - 0x38]
push 0
lea edx, [ebp - 0x38b]
push ecx
push edx
call eax
cmp eax, 1
jne 0x5e9800
mov esi, dword [ebp - 0x74]
mov byte [ebp - 0x12], 1
test esi, esi
je 0x5e97f8
mov edx, dword [ebp - 0x70]
test edx, edx
je 0x5e97f8
cmp word [ebp - 0x2e4], 0
jne 0x5e9041
cmp word [ebp - 0x21c], 0
je 0x5e9045
mov byte [ebp - 0x11], 0
mov eax, 0x10624dd3
lea ecx, [ebx + 8]
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x10624dd3
push edx
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push str.MP3:__ldkbs___ldHz
push ecx
call fcn.0061fae1
mov eax, dword [ebp - 0x78]
add esp, 0x10
test eax, eax
je 0x5e919f
mov dword [ebp - 0x38], 0x659b68
cdq
mov esi, edx
mov byte [ebp - 4], 1
test esi, esi
mov edi, eax
jg 0x5e90d7
jl 0x5e909f
test edi, edi
jae 0x5e90d7
mov ecx, dword [0x6fd978]
lea edx, [ebp - 0x6c]
push ecx
push edx
call fcn.0060a593
add esp, 8
jmp 0x5e9185
cmp eax, 1
je 0x5e8fb4
cmp eax, 2
je 0x5e8fb4
jmp 0x5e9800
mov byte [ebp - 0x13], 1
jmp 0x5e9800
push 0
push 0x3c
push esi
push edi
call fcn.0060bb90
mov ebx, eax
mov ecx, edi
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.0060bae0
push 0
push 0x3c
push edx
push eax
call fcn.0060bb90
push 0
push 0xe10
push esi
push edi
mov dword [ebp - 0x28], eax
call fcn.0060bae0
test edx, edx
jg 0x5e9171
jl 0x5e9121
cmp eax, 0x2710
ja 0x5e9171
test eax, eax
je 0x5e913f
mov ecx, dword [ebp - 0x28]
mov edx, dword [0x6fd9d0]
push ecx
push eax
lea eax, [ebp - 0x6c]
push edx
push eax
call fcn.0060a593
add esp, 0x10
jmp 0x5e9182
mov eax, dword [ebp - 0x28]
push ebx
test eax, eax
je 0x5e915d
mov ecx, dword [0x6fd9cc]
push eax
lea edx, [ebp - 0x6c]
push ecx
push edx
call fcn.0060a593
add esp, 0x10
jmp 0x5e9182
mov eax, dword [0x6fd9c8]
lea ecx, [ebp - 0x6c]
push eax
push ecx
call fcn.0060a593
add esp, 0xc
jmp 0x5e9182
lea edx, [ebp - 0x6c]
push 0x6c9030
push edx
call fcn.0060a593
add esp, 8
mov ebx, dword [ebp - 0x24]
lea esi, [ebx + 8]
push 0x6fda38
mov ecx, esi
call fcn.006230c8
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.0062308c
xor esi, esi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], esi
mov word [ebp - 0x1c], si
cmp word [ebp - 0x2e4], si
mov byte [ebp - 4], 2
je 0x5e9204
cmp word [ebp - 0x21c], si
je 0x5e9204
lea ecx, [ebp - 0x21c]
lea edx, [ebp - 0x2e4]
push ecx
push edx
call fcn.0060a3e0
add esp, 8
test eax, eax
je 0x5e9201
lea eax, [ebp - 0x2e4]
push 0x2d
push eax
call fcn.0060a17b
add esp, 8
test eax, eax
je 0x5e9201
lea ecx, [ebp - 0x2e4]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00401f20
mov eax, dword [ebp - 0x20]
cmp eax, esi
jne 0x5e920b
lea eax, [ebp - 0x1c]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
jne 0x5e9625
cmp word [ebp - 0x2e4], si
je 0x5e9328
mov ebx, dword [0x6fca90]
mov esi, dword [0x6fda34]
lea ecx, [ebp - 0x20]
call fcn.00401070
test esi, esi
je 0x5e9289
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e9289
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push ebx
call edi
test eax, eax
mov dword [ebp - 0x18], eax
je 0x5e9289
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
je 0x5e9289
mov ecx, dword [ebp - 0x18]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push ebx
call edi
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x2e4]
test edx, edx
je 0x5e9328
lea eax, [ebp - 0x2e4]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5e9328
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5e92be
push eax
call fcn.00609a4e
add esp, 4
mov esi, eax
jmp 0x5e92c0
xor esi, esi
lea ecx, [ebp - 0x2e4]
push ecx
call fcn.00609a4e
add eax, esi
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
mov esi, eax
add esp, 8
test esi, esi
je 0x5e9328
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5e9301
push eax
push esi
call fcn.00609a95
lea eax, [ebp - 0x2e4]
push eax
push esi
call fcn.00609a6b
add esp, 0x10
jmp 0x5e9311
lea ecx, [ebp - 0x2e4]
push ecx
push esi
call fcn.00609a95
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00401070
push esi
mov dword [ebp - 0x20], esi
call fcn.00609a4e
add esp, 4
mov dword [ebp - 0x18], eax
cmp word [ebp - 0x21c], 0
je 0x5e9625
xor edi, edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], edi
mov word [ebp - 0x44], di
mov ebx, dword [0x6fca90]
mov esi, dword [0x6fda30]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00401070
cmp esi, edi
je 0x5e93a6
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e93a6
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push ebx
call edi
test eax, eax
mov dword [ebp - 0x40], eax
je 0x5e93a6
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x5e93ad
mov ecx, dword [ebp - 0x40]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push ebx
call edi
mov dword [ebp - 0x40], eax
mov edi, dword [ebp - 0x48]
test edi, edi
jne 0x5e93b4
lea edi, [ebp - 0x44]
test edi, edi
je 0x5e942d
push edi
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5e942d
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5e93d5
push eax
call fcn.00609a4e
add esp, 4
mov esi, eax
jmp 0x5e93d7
xor esi, esi
push edi
call fcn.00609a4e
add eax, esi
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
mov esi, eax
add esp, 8
test esi, esi
je 0x5e942d
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5e940c
push eax
push esi
call fcn.00609a95
push edi
push esi
call fcn.00609a6b
add esp, 0x10
jmp 0x5e9416
push edi
push esi
call fcn.00609a95
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00401070
push esi
mov dword [ebp - 0x20], esi
call fcn.00609a4e
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x21c]
test eax, eax
je 0x5e94cc
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5e94cc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5e9462
push eax
call fcn.00609a4e
add esp, 4
mov esi, eax
jmp 0x5e9464
xor esi, esi
lea edx, [ebp - 0x21c]
push edx
call fcn.00609a4e
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.00622acb
mov esi, eax
add esp, 8
test esi, esi
je 0x5e94cc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5e94a5
push eax
push esi
call fcn.00609a95
lea ecx, [ebp - 0x21c]
push ecx
push esi
call fcn.00609a6b
add esp, 0x10
jmp 0x5e94b5
lea edx, [ebp - 0x21c]
push edx
push esi
call fcn.00609a95
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00401070
push esi
mov dword [ebp - 0x20], esi
call fcn.00609a4e
add esp, 4
mov dword [ebp - 0x18], eax
cmp word [ebp - 0x2e4], 0
jne 0x5e9619
cmp word [ebp - 0x8c], 0
je 0x5e9619
mov eax, str.__Track
test eax, eax
je 0x5e957a
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5e957a
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5e9516
push eax
call fcn.00609a4e
add esp, 4
mov esi, eax
jmp 0x5e9518
xor esi, esi
push str.__Track
call fcn.00609a4e
add eax, esi
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
mov esi, eax
add esp, 8
test esi, esi
je 0x5e957a
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5e9555
push eax
push esi
call fcn.00609a95
push str.__Track
push esi
call fcn.00609a6b
add esp, 0x10
jmp 0x5e9563
push str.__Track
push esi
call fcn.00609a95
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00401070
push esi
mov dword [ebp - 0x20], esi
call fcn.00609a4e
add esp, 4
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x8c]
test edx, edx
je 0x5e9619
lea eax, [ebp - 0x8c]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5e9619
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5e95af
push eax
call fcn.00609a4e
add esp, 4
mov esi, eax
jmp 0x5e95b1
xor esi, esi
lea ecx, [ebp - 0x8c]
push ecx
call fcn.00609a4e
add eax, esi
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
mov esi, eax
add esp, 8
test esi, esi
je 0x5e9619
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5e95f2
push eax
push esi
call fcn.00609a95
lea eax, [ebp - 0x8c]
push eax
push esi
call fcn.00609a6b
add esp, 0x10
jmp 0x5e9602
lea ecx, [ebp - 0x8c]
push ecx
push esi
call fcn.00609a95
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00401070
push esi
mov dword [ebp - 0x20], esi
call fcn.00609a4e
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401070
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x30], ax
mov edx, dword [ebp - 0x24]
or ecx, 0xffffffff
mov byte [ebp - 4], 4
mov esi, dword [edx + 8]
lea eax, [edx + 8]
mov dword [ebp - 0x38], eax
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e96ab
mov ebx, dword [0x6fca90]
lea ecx, [ebp - 0x34]
call fcn.00401070
test esi, esi
je 0x5e96ab
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e96ab
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x5e96ab
lea eax, [eax + eax + 2]
push eax
call fcn.00622acb
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x5e96ab
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x5e96b5
lea eax, [ebp - 0x1c]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5e974d
mov edi, dword [ebp - 0x20]
test edi, edi
jne 0x5e96d4
lea edi, [ebp - 0x1c]
test edi, edi
je 0x5e974d
push edi
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5e974d
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x5e96f5
push eax
call fcn.00609a4e
add esp, 4
mov esi, eax
jmp 0x5e96f7
xor esi, esi
push edi
call fcn.00609a4e
add eax, esi
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
mov esi, eax
add esp, 8
test esi, esi
je 0x5e974d
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x5e972c
push eax
push esi
call fcn.00609a95
push edi
push esi
call fcn.00609a6b
add esp, 0x10
jmp 0x5e9736
push edi
push esi
call fcn.00609a95
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.00401070
push esi
mov dword [ebp - 0x34], esi
call fcn.00609a4e
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x5e9757
lea eax, [ebp - 0x30]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x5e97de
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 5
test eax, eax
jne 0x5e977a
lea eax, [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov esi, eax
test esi, esi
jle 0x5e97d2
push esi
lea ecx, [ebp - 0x28]
call fcn.00623157
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x5e97ad
lea ecx, [ebp - 0x30]
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call edi
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x28]
push edx
mov byte [ecx + 0xc], 1
mov ecx, dword [ebp - 0x38]
call fcn.00622ec3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00622d8a
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x5e9800
mov byte [ebp - 0x13], 1
mov byte [ebp - 0x14], 0
mov eax, dword [ebp - 0x3c]
mov bl, byte [ebp - 0x11]
push eax
call fcn.00622af4
mov al, byte [ebp - 0x14]
add esp, 4
test al, al
je 0x5e983a
mov al, byte [ebp - 0x12]
test al, al
je 0x5e986a
neg bl
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 5
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x13]
test al, al
je 0x5e986a
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
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