Function at 0x453520
Capabilities:
Check for time delay via gettickcount
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d09a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
push edi
xor esi, esi
push esi
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
xor ebx, ebx
push ebp
mov byte [esp + 0x6c], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], ebx
xor edi, edi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x1c], 4
jne 0x453941
mov eax, dword [esp + 0x14]
mov edx, eax
and edx, 0xff00
mov ecx, eax
shl ecx, 0x10
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x16]
shl edx, 8
shr eax, 0x18
mov dword [esp + 0x28], esi
add edx, ecx
add edx, eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x20], esi
jne 0x4535ce
cmp ebx, 0x10
jae 0x4537cf
cmp dword [esp + 0x28], 0x1000
jae 0x4537c6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov edx, eax
and edx, 0xffe00000
cmp edx, 0xffe00000
jne 0x453760
mov edx, eax
shr edx, 0x11
and dl, 3
mov ecx, eax
mov byte [esp + 0x58], dl
mov edx, eax
mov ebx, eax
shr ecx, 0x13
shr edx, 0xc
shr ebx, 0xa
shr eax, 9
and cl, 3
and bl, 3
and eax, 1
and dl, 0xf
xor esi, esi
cmp cl, 3
mov byte [esp + 0x13], bl
mov dword [esp + 0x30], eax
jne 0x453647
mov al, byte [esp + 0x58]
cmp al, cl
je 0x453660
cmp al, 2
jne 0x45363c
mov esi, 1
jmp 0x453660
cmp al, 1
jne 0x453660
mov esi, 2
jmp 0x453660
mov bl, byte [esp + 0x58]
xor eax, eax
cmp bl, 3
mov bl, byte [esp + 0x13]
setne al
add eax, 3
mov esi, eax
mov al, byte [esp + 0x58]
movzx edx, dl
lea esi, [esi + edx*4]
add esi, edx
mov esi, dword [esi*4 + 0x5063e8]
movzx ecx, cl
imul esi, esi, 0x3e8
movzx edx, bl
lea edx, [ecx + edx*4]
mov ecx, dword [edx*4 + 0x5063a8]
test ecx, ecx
je 0x453941
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4536a3
cmp edx, esi
je 0x4536ab
mov dword [esp + 0x20], 1
jmp 0x4536ab
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ecx
xor edx, edx
cmp al, 3
jne 0x4536c6
lea eax, [esi + esi*2]
shl eax, 2
div ecx
mov ecx, dword [esp + 0x30]
mov edi, eax
add edi, ecx
shl edi, 2
jmp 0x4536d4
lea eax, [esi + esi*8]
shl eax, 4
div ecx
mov edi, eax
add edi, dword [esp + 0x30]
test edi, edi
je 0x453941
mov ecx, dword [esp + 0x18]
mov eax, 0x10624dd3
mul esi
mov esi, dword [esp + 0x38]
shr edx, 6
add esi, edx
mov edx, dword [esp + 0x3c]
push 1
push 0
lea eax, [edi - 4]
adc edx, 0
push eax
inc ecx
push ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x20]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x1c], 4
mov ebx, dword [esp + 0x18]
jne 0x4537c4
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff00
mov edx, eax
shl edx, 0x10
add ecx, edx
xor edx, edx
mov dh, byte [esp + 0x16]
shl ecx, 8
shr eax, 0x18
add ecx, edx
add ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x453782
shl eax, 8
push esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push eax
push 1
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x1c], 1
jne 0x4537c6
mov esi, dword [esp + 0x50]
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x64]
test eax, eax
jne 0x4537ab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x34]
lea eax, [eax + eax*2]
test eax, eax
mov dword [esi + 0x2c], eax
jbe 0x4537ab
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x453941
inc dword [esp + 0x28]
xor esi, esi
jmp 0x4535b1
xor esi, esi
cmp ebx, 0x10
jb 0x453941
cmp edi, esi
je 0x453941
cmp dword [esp + 0x20], esi
je 0x4537fa
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push esi
push ebx
push ecx
push edx
call fcn.004af430
imul eax, eax, 0x3e8
mov dword [esp + 0x24], eax
jmp 0x45382b
push 1
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x5c]
sub eax, esi
sub eax, edx
add eax, 4
xor edx, edx
div edi
xor esi, esi
lea eax, [ebx + eax - 1]
mov dword [esp + 0x18], eax
mov ebx, eax
mov cl, byte [esp + 0x58]
xor eax, eax
cmp cl, 3
setne al
xor edx, edx
push esi
push 0x186a0
dec eax
and eax, 0xfffffd00
add eax, 0x480
imul eax, eax, 0x186a0
div dword [esp + 0x34]
mul ebx
push edx
push eax
call fcn.004af430
mov esi, eax
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x48], 0
mov ecx, str._lu
jne 0x45388c
mov ecx, 0x4db72c
mov eax, 0x10624dd3
mul dword [esp + 0x24]
shr edx, 6
push edx
push ecx
lea eax, [esp + 0x60]
push eax
call fcn.004058b0
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
add esp, 0xc
push ecx
push edi
mov ecx, str.bitrate
call fcn.00405560
push esi
lea edx, [esp + 0x5c]
push 0x4db72c
push edx
call fcn.004058b0
mov eax, dword [esp + 0x64]
add esp, 0xc
push eax
push edi
mov ecx, str.seconds
call fcn.00405560
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x5c]
push 0x4db72c
push edx
call fcn.004058b0
mov esi, dword [esp + 0x64]
add esp, 0xc
push esi
push edi
mov ecx, str.sampleRate
call fcn.00405560
lea eax, [esi - 0x10]
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x453927
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10