Function at 0x5a6680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60d228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x440
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 0x5a66de
jl 0x5a66c1
cmp dword [ecx + 0x18], 0x14
jae 0x5a66de
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.005a2680
mov eax, dword [0x6d0144]
mov byte [ebp - 0x13], 0
test eax, eax
je 0x5a6f74
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0xffffffff
je 0x5a6f74
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
test ecx, ecx
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x14], 0
jg 0x5a671d
jl 0x5a6722
cmp esi, 0x1388
jb 0x5a6722
mov esi, 0x1388
push esi
call fcn.005dd58d
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x5a6f74
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 - 0x40], 0
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x40]
push ecx
push esi
push edx
mov edx, dword [ebx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a6f0a
mov edx, dword [ebp - 0x40]
test edx, edx
jbe 0x5a6f0a
mov ecx, 0xfa
xor eax, eax
lea edi, [ebp - 0x44c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x2e4], eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x2e0], ecx
mov ecx, dword [ebp - 0x3c]
push eax
push 0
push edx
push ecx
mov byte [ebp - 0x44c], 2
call dword [0x6d0144]
cmp eax, 3
jne 0x5a68dd
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x5a67d4
cmp esi, 0x1388
jb 0x5a68f4
lea edi, [ebp - 0x31f]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0x14], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5a6f0a
lea edx, [ebp - 0x31f]
push 0x6a8634
push edx
call fcn.005c6000
add esp, 8
test eax, eax
je 0x5a6833
mov eax, dword [0x6a8634]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x6d0148]
test eax, eax
je 0x5a6f0a
lea ecx, [ebp - 0x2c]
push 0
lea edx, [ebp - 0x383]
push ecx
push edx
call eax
cmp eax, 1
jne 0x5a6f0a
mov esi, dword [ebp - 0x6c]
xor edi, edi
cmp esi, edi
mov byte [ebp - 0x12], 1
je 0x5a6f02
mov ecx, dword [ebp - 0x68]
cmp ecx, edi
je 0x5a6f02
cmp word [ebp - 0x2dc], di
jne 0x5a6861
cmp word [ebp - 0x214], di
je 0x5a6865
mov byte [ebp - 0x11], 0
lea eax, [ebx + 8]
mov dword [ebp - 0x2c], eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
mov eax, 0x10624dd3
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [ebp - 0x2c]
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.005d9fbb
mov eax, dword [ebp - 0x70]
add esp, 0x10
cmp eax, edi
je 0x5a69ca
mov dword [ebp - 0x44], 0x6197d0
cdq
mov esi, edx
mov byte [ebp - 4], 1
test esi, esi
mov edi, eax
jg 0x5a68fd
jl 0x5a68c5
test edi, edi
jae 0x5a68fd
mov edx, dword [0x6cfac8]
lea eax, [ebp - 0x64]
push edx
push eax
call fcn.005c5558
add esp, 8
jmp 0x5a69ab
cmp eax, 1
je 0x5a67d4
cmp eax, 2
je 0x5a67d4
jmp 0x5a6f0a
mov byte [ebp - 0x13], 1
jmp 0x5a6f0a
push 0
push 0x3c
push esi
push edi
call fcn.005c6b20
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.005c6a70
push 0
push 0x3c
push edx
push eax
call fcn.005c6b20
push 0
push 0xe10
push esi
push edi
mov dword [ebp - 0x28], eax
call fcn.005c6a70
test edx, edx
jg 0x5a6997
jl 0x5a6947
cmp eax, 0x2710
ja 0x5a6997
test eax, eax
je 0x5a6965
mov ecx, dword [ebp - 0x28]
mov edx, dword [0x6cfb20]
push ecx
push eax
lea eax, [ebp - 0x64]
push edx
push eax
call fcn.005c5558
add esp, 0x10
jmp 0x5a69a8
mov eax, dword [ebp - 0x28]
push ebx
test eax, eax
je 0x5a6983
mov ecx, dword [0x6cfb1c]
push eax
lea edx, [ebp - 0x64]
push ecx
push edx
call fcn.005c5558
add esp, 0x10
jmp 0x5a69a8
mov eax, dword [0x6cfb18]
lea ecx, [ebp - 0x64]
push eax
push ecx
call fcn.005c5558
add esp, 0xc
jmp 0x5a69a8
lea edx, [ebp - 0x64]
push 0x69feec
push edx
call fcn.005c5558
add esp, 8
mov ebx, dword [ebp - 0x24]
add ebx, 8
push 0x6cfb88
mov ecx, ebx
mov dword [ebp - 0x2c], ebx
call fcn.005e14ca
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
call fcn.005e148e
xor edi, edi
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], di
cmp word [ebp - 0x2dc], di
mov byte [ebp - 4], 2
je 0x5a6a2d
cmp word [ebp - 0x214], di
je 0x5a6a2d
lea ecx, [ebp - 0x214]
lea edx, [ebp - 0x2dc]
push ecx
push edx
call fcn.005c53a5
add esp, 8
test eax, eax
je 0x5a6a2a
lea eax, [ebp - 0x2dc]
push 0x2d
push eax
call fcn.005c4fbf
add esp, 8
test eax, eax
je 0x5a6a2a
lea ecx, [ebp - 0x2dc]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00401f60
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x5a6a34
lea eax, [ebp - 0x1c]
push eax
call fcn.005c4b4a
add esp, 4
test eax, eax
jne 0x5a6dac
cmp word [ebp - 0x2dc], di
je 0x5a6b01
mov edx, dword [0x6cfb84]
push edi
push edx
lea ecx, [ebp - 0x20]
call fcn.00402890
lea eax, [ebp - 0x2dc]
test eax, eax
je 0x5a6b01
lea ecx, [ebp - 0x2dc]
push ecx
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x5a6b01
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x5a6a97
push eax
call fcn.005c4b4a
add esp, 4
mov esi, eax
jmp 0x5a6a99
xor esi, esi
lea edx, [ebp - 0x2dc]
push edx
call fcn.005c4b4a
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.005dd58d
mov esi, eax
add esp, 8
cmp esi, edi
je 0x5a6b01
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x5a6ada
push eax
push esi
call fcn.005c4cea
lea ecx, [ebp - 0x2dc]
push ecx
push esi
call fcn.005c4cc0
add esp, 0x10
jmp 0x5a6aea
lea edx, [ebp - 0x2dc]
push edx
push esi
call fcn.005c4cea
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00401070
push esi
mov dword [ebp - 0x20], esi
call fcn.005c4b4a
add esp, 4
mov dword [ebp - 0x18], eax
cmp word [ebp - 0x214], di
je 0x5a6dac
mov eax, dword [0x6cfb80]
push edi
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x34], di
call fcn.00402890
mov edi, dword [ebp - 0x38]
mov byte [ebp - 4], 3
test edi, edi
jne 0x5a6b39
lea edi, [ebp - 0x34]
test edi, edi
je 0x5a6bb2
push edi
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x5a6bb2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5a6b5a
push eax
call fcn.005c4b4a
add esp, 4
mov esi, eax
jmp 0x5a6b5c
xor esi, esi
push edi
call fcn.005c4b4a
add eax, esi
lea ecx, [eax + eax + 2]
push ecx
call fcn.005dd58d
mov esi, eax
add esp, 8
test esi, esi
je 0x5a6bb2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5a6b91
push eax
push esi
call fcn.005c4cea
push edi
push esi
call fcn.005c4cc0
add esp, 0x10
jmp 0x5a6b9b
push edi
push esi
call fcn.005c4cea
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00401070
push esi
mov dword [ebp - 0x20], esi
call fcn.005c4b4a
add esp, 4
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x214]
test edx, edx
je 0x5a6c51
lea eax, [ebp - 0x214]
push eax
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x5a6c51
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5a6be7
push eax
call fcn.005c4b4a
add esp, 4
mov esi, eax
jmp 0x5a6be9
xor esi, esi
lea ecx, [ebp - 0x214]
push ecx
call fcn.005c4b4a
add eax, esi
lea edx, [eax + eax + 2]
push edx
call fcn.005dd58d
mov esi, eax
add esp, 8
test esi, esi
je 0x5a6c51
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5a6c2a
push eax
push esi
call fcn.005c4cea
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.005c4cc0
add esp, 0x10
jmp 0x5a6c3a
lea ecx, [ebp - 0x214]
push ecx
push esi
call fcn.005c4cea
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00401070
push esi
mov dword [ebp - 0x20], esi
call fcn.005c4b4a
add esp, 4
mov dword [ebp - 0x18], eax
cmp word [ebp - 0x2dc], 0
jne 0x5a6d9e
cmp word [ebp - 0x84], 0
je 0x5a6d9e
mov edx, str.__Track
test edx, edx
je 0x5a6cff
push edx
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x5a6cff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5a6c9b
push eax
call fcn.005c4b4a
add esp, 4
mov esi, eax
jmp 0x5a6c9d
xor esi, esi
push str.__Track
call fcn.005c4b4a
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.005dd58d
mov esi, eax
add esp, 8
test esi, esi
je 0x5a6cff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5a6cda
push eax
push esi
call fcn.005c4cea
push str.__Track
push esi
call fcn.005c4cc0
add esp, 0x10
jmp 0x5a6ce8
push str.__Track
push esi
call fcn.005c4cea
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00401070
push esi
mov dword [ebp - 0x20], esi
call fcn.005c4b4a
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x84]
test ecx, ecx
je 0x5a6d9e
lea edx, [ebp - 0x84]
push edx
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x5a6d9e
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5a6d34
push eax
call fcn.005c4b4a
add esp, 4
mov esi, eax
jmp 0x5a6d36
xor esi, esi
lea eax, [ebp - 0x84]
push eax
call fcn.005c4b4a
add eax, esi
lea ecx, [eax + eax + 2]
push ecx
call fcn.005dd58d
mov esi, eax
add esp, 8
test esi, esi
je 0x5a6d9e
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5a6d77
push eax
push esi
call fcn.005c4cea
lea edx, [ebp - 0x84]
push edx
push esi
call fcn.005c4cc0
add esp, 0x10
jmp 0x5a6d87
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.005c4cea
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00401070
push esi
mov dword [ebp - 0x20], esi
call fcn.005c4b4a
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00401070
xor edi, edi
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x5a6db6
lea eax, [ebp - 0x1c]
push eax
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x5a6ef1
mov ecx, dword [ebp - 0x2c]
push edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov eax, dword [ecx]
lea ecx, [ebp - 0x38]
push eax
mov word [ebp - 0x34], di
call fcn.00402890
mov edi, dword [ebp - 0x20]
mov bl, 4
test edi, edi
mov byte [ebp - 4], bl
jne 0x5a6df3
lea edi, [ebp - 0x1c]
test edi, edi
je 0x5a6e6c
push edi
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x5a6e6c
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x5a6e14
push eax
call fcn.005c4b4a
add esp, 4
mov esi, eax
jmp 0x5a6e16
xor esi, esi
push edi
call fcn.005c4b4a
add eax, esi
lea edx, [eax + eax + 2]
push edx
call fcn.005dd58d
mov esi, eax
add esp, 8
test esi, esi
je 0x5a6e6c
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x5a6e4b
push eax
push esi
call fcn.005c4cea
push edi
push esi
call fcn.005c4cc0
add esp, 0x10
jmp 0x5a6e55
push edi
push esi
call fcn.005c4cea
add esp, 8
lea ecx, [ebp - 0x38]
call fcn.00401070
push esi
mov dword [ebp - 0x38], esi
call fcn.005c4b4a
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [0x6ca27c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 5
test eax, eax
jne 0x5a6e82
lea eax, [ebp - 0x34]
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 0x5a6eda
push esi
lea ecx, [ebp - 0x28]
call fcn.005e1559
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x5a6eb5
lea ecx, [ebp - 0x34]
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 - 0x2c]
call fcn.005e12c5
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.005e118c
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00401070
mov bl, byte [ebp - 0x11]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x5a6f0d
mov byte [ebp - 0x13], 1
mov byte [ebp - 0x14], 0
mov bl, byte [ebp - 0x11]
mov eax, dword [ebp - 0x3c]
push eax
call fcn.005dd5b6
mov al, byte [ebp - 0x14]
add esp, 4
test al, al
je 0x5a6f44
mov al, byte [ebp - 0x12]
test al, al
je 0x5a6f74
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 0x5a6f74
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