Function at 0x5d8700
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x410]
sub esp, 0x410
push 0xffffffffffffffff
push 0x6680b9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x40c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 4], edi
mov byte [ebp - 0x14], 1
push edi
push 0x14
call fcn.005d73d0
cmp eax, 2
jne 0x5d8cae
call fcn.005cbf50
mov byte [ebp - 0x11], 0
cmp dword [0x75f810], edi
je 0x5d8ca2
cmp dword [ebx + 0x10], 0xffffffff
je 0x5d8ca2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x13], 0
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
cmp eax, edi
jg 0x5d879b
jl 0x5d8796
cmp esi, 0x1388
jae 0x5d879b
mov dword [ebp - 0x28], eax
jmp 0x5d87a3
mov esi, 0x1388
mov dword [ebp - 0x28], edi
push esi
call fcn.005f4e47
add esp, 4
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x5d8ca2
push esi
push 0
push edi
call fcn.00621270
add esp, 0xc
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
push esi
push edi
mov ecx, dword [ebx + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5d8c6c
mov edi, dword [ebp - 0x24]
test edi, edi
jbe 0x5d8c6c
push 0x3e8
push 0
lea edx, [ebp]
push edx
call fcn.00621270
add esp, 0xc
mov byte [ebp], 2
mov eax, dword [ebx + 0x20]
mov dword [ebp + 0x168], eax
mov ecx, dword [ebx + 0x24]
mov dword [ebp + 0x16c], ecx
lea edx, [ebp]
push edx
push 0
push edi
mov eax, dword [ebp - 0x28]
push eax
call dword [0x75f810]
mov dword [ebp - 0x30], eax
cmp eax, 3
jne 0x5d8c4a
cmp dword [ebx + 0x14], 0
jne 0x5d8849
cmp esi, 0x1388
jb 0x5d8c5e
mov dword [ebp - 0x30], 1
mov byte [ebp - 0x13], 1
lea eax, [ebp + 0x12d]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d8860
sub eax, edx
je 0x5d8c6c
push 0x6795f8
lea ecx, [ebp + 0x12d]
push ecx
call fcn.006226ae
add esp, 8
test eax, eax
je 0x5d88b3
mov dword [ebp - 0x18], 0x33706d
mov eax, dword [0x75f814]
test eax, eax
je 0x5d8c6c
push 0
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp + 0xc9]
push ecx
call eax
cmp eax, 1
jne 0x5d8c6c
mov byte [ebp - 0x12], 1
mov esi, dword [ebp + 0x3e0]
test esi, esi
je 0x5d8c64
mov ecx, dword [ebp + 0x3e4]
test ecx, ecx
je 0x5d8c64
cmp word [ebp + 0x170], 0
jne 0x5d88e7
cmp word [ebp + 0x238], 0
je 0x5d88eb
mov byte [ebp - 0x14], 0
mov ebx, dword [ebp - 0x20]
add ebx, 8
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push str.MP3:__ldkbs___ldHz
push ebx
call fcn.00402f60
add esp, 0x10
xor edi, edi
cmp dword [ebp + 0x3dc], edi
je 0x5d8984
mov esi, vtable.StringConvertor.0
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x3dc]
cdq
push edx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043fa40
push 0x75ef00
mov ecx, ebx
call fcn.0040e6d0
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0040e6d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp + 0x400], edi
mov dword [ebp + 0x408], edi
xor ecx, ecx
mov word [ebp + 0x404], cx
mov byte [ebp - 4], 3
cmp word [ebp + 0x170], di
je 0x5d89f0
cmp word [ebp + 0x238], di
je 0x5d89f0
lea edx, [ebp + 0x238]
push edx
lea eax, [ebp + 0x170]
push eax
call fcn.00622e9b
add esp, 8
test eax, eax
je 0x5d89f0
push 0x2d
lea ecx, [ebp + 0x170]
push ecx
call fcn.00622700
add esp, 8
test eax, eax
je 0x5d89f0
lea edx, [ebp + 0x170]
push edx
lea ecx, [ebp + 0x400]
call fcn.004017e0
mov eax, dword [ebp + 0x400]
cmp eax, edi
jne 0x5d8a00
lea eax, [ebp + 0x404]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x5d8a03
sub eax, edx
sar eax, 1
jne 0x5d8afb
cmp word [ebp + 0x170], di
je 0x5d8a4b
mov eax, dword [0x75dd28]
push eax
mov ecx, dword [0x75ef04]
push ecx
lea ecx, [ebp + 0x400]
call fcn.00401970
lea edx, [ebp + 0x170]
push edx
lea ecx, [ebp + 0x400]
call fcn.00405310
cmp word [ebp + 0x238], di
je 0x5d8afb
mov dword [ebp + 0x3e8], edi
mov dword [ebp + 0x3f0], edi
xor eax, eax
mov word [ebp + 0x3ec], ax
mov byte [ebp - 4], 4
mov ecx, dword [0x75dd28]
push ecx
mov edx, dword [0x75ef08]
push edx
lea ecx, [ebp + 0x3e8]
call fcn.00401970
mov eax, dword [ebp + 0x3e8]
cmp eax, edi
jne 0x5d8a9a
lea eax, [ebp + 0x3ec]
push eax
lea ecx, [ebp + 0x400]
call fcn.00405310
lea eax, [ebp + 0x238]
push eax
lea ecx, [ebp + 0x400]
call fcn.00405310
cmp word [ebp + 0x170], di
jne 0x5d8aec
cmp word [ebp + 0x3c8], di
je 0x5d8aec
push str.__Track
lea ecx, [ebp + 0x400]
call fcn.00405310
lea ecx, [ebp + 0x3c8]
push ecx
lea ecx, [ebp + 0x400]
call fcn.00405310
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x3e8]
call fcn.00401210
mov dword [ebp + 0x3f4], edi
mov dword [ebp + 0x3fc], edi
xor edx, edx
mov word [ebp + 0x3f8], dx
mov byte [ebp - 4], 5
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
jmp 0x5d8b20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5d8b20
sub eax, esi
je 0x5d8b3d
mov eax, dword [0x75dd28]
push eax
push edx
lea ecx, [ebp + 0x3f4]
call fcn.00401970
mov esi, dword [ebp + 0x400]
cmp esi, edi
mov eax, esi
jne 0x5d8b4f
lea eax, [ebp + 0x404]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x5d8b52
sub eax, edx
sar eax, 1
je 0x5d8b7b
cmp esi, edi
mov eax, esi
jne 0x5d8b6f
lea eax, [ebp + 0x404]
push eax
lea ecx, [ebp + 0x3f4]
call fcn.00405310
mov eax, dword [ebp + 0x3f4]
cmp eax, edi
jne 0x5d8b8b
lea eax, [ebp + 0x3f8]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x5d8b90
sub eax, edx
sar eax, 1
je 0x5d8c2a
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x3f4]
cmp eax, edi
jne 0x5d8bc1
lea eax, [ebp + 0x3f8]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call edi
mov esi, eax
test esi, esi
jle 0x5d8c1e
push esi
lea ecx, [ebp - 0x18]
call fcn.00402840
mov ecx, dword [ebp + 0x3f4]
test ecx, ecx
jne 0x5d8bfa
lea ecx, [ebp + 0x3f8]
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call edi
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0xc], 1
lea edx, [ebp - 0x18]
push edx
mov ecx, ebx
call fcn.00405900
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x3f4]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x400]
call fcn.00401210
jmp 0x5d8c6c
cmp eax, 1
je 0x5d8850
cmp eax, 2
je 0x5d8850
jmp 0x5d8c6c
mov byte [ebp - 0x11], 1
jmp 0x5d8c6c
mov byte [ebp - 0x11], 1
mov byte [ebp - 0x13], 0
mov eax, dword [ebp - 0x28]
push eax
call fcn.005f4e52
add esp, 4
cmp byte [ebp - 0x13], 0
je 0x5d8c95
cmp byte [ebp - 0x12], 0
je 0x5d8ca9
cmp byte [ebp - 0x14], 0
je 0x5d8c8e
xor eax, eax
jmp 0x5d8cae
mov eax, 5
jmp 0x5d8cae
cmp byte [ebp - 0x11], 0
je 0x5d8ca2
mov eax, 3
jmp 0x5d8cae
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x40c]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x410
mov esp, ebp
pop ebp
ret