Function at 0x452a40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x950
mov eax, dword [0x4baad8]
xor eax, esp
mov dword [esp + 0x94c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x960]
cmp dword [ebp + 0x104], 0
push esi
lea ebx, [ebp + 0x11c]
push edi
mov edi, dword [esp + 0x964]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebx
mov dword [ebx], 0
je 0x452abb
push 0
push 0x8000
push edi
call fcn.0045ccb6
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je case.0x452df9.134
mov eax, dword [ebp + 0x104]
push 0
push eax
push esi
call fcn.00460409
add esp, 0xc
mov dword [0x4ba724], edi
jmp 0x452c23
lea edx, [esp + 0x58]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x452ac3
lea ecx, [esp + 0x58]
push str..pcm
push ecx
call fcn.00406cc0
push 0
lea edx, [esp + 0x64]
push 0x8000
push edx
call fcn.0045ccb6
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
jne 0x452c19
lea eax, [esp + 0x58]
push str..wav
push eax
call fcn.00406cc0
push 0
lea ecx, [esp + 0x64]
push 0x8000
push ecx
call fcn.0045ccb6
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
jne 0x452c19
lea edx, [esp + 0x58]
push str..ogg
push edx
call fcn.00406cc0
push 0
lea eax, [esp + 0x64]
push 0x8000
push eax
call fcn.0045ccb6
add esp, 0x14
cmp eax, esi
je case.0x452df9.134
mov esi, dword [esp + 0x96c]
lea ecx, [esp + 0x58]
push esi
lea edx, [esp + 0x20]
mov dword [0x4ba724], ecx
mov ecx, dword [ebp + 0x100]
push edx
push ecx
push eax
call fcn.00452170
add esp, 0x10
test eax, eax
jle case.0x452df9.134
test esi, esi
je 0x452be3
mov edx, dword [esp + 0x1c]
push edx
push 0x4fd678
call fcn.00452350
add eax, 0x86
add esp, 8
cmp eax, 6
ja case.0x452ba2.131
movzx eax, byte [eax + 0x453234]
jmp dword [eax*4 + 0x45322c]
mov eax, 1
jmp 0x452c00
lea ecx, [ebp + 0x108]
push ecx
push 0x4fd678
call fcn.00452050
add esp, 8
test eax, eax
jl case.0x452df9.134
mov dword [0x4f9650], eax
mov dword [0x4ba558], 0xffffffff
mov dword [0x4f9654], 5
jmp 0x452bf8
mov eax, dword [esp + 0x1c]
push ebx
lea edx, [ebp + 0x108]
push edx
push eax
call fcn.004523a0
add esp, 0xc
mov dword [ebp + 0x100], eax
xor eax, eax
mov ecx, dword [esp + 0x95c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045ab2a
add esp, 0x950
ret
lea ecx, [esp + 0x58]
mov dword [0x4ba724], ecx
push 0xc
lea edx, [esp + 0x50]
push edx
push esi
mov dword [esp + 0x2c], 1
call fcn.0045d2a5
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 0xc
jne 0x4531e9
mov eax, dword [esp + 0x4c]
cmp eax, 0x4d435058
jne 0x45307a
movsx ebx, byte [esp + 0x54]
cmp ebx, 1
je 0x452ec1
cmp ebx, 3
je 0x452ec1
cmp ebx, 2
jne 0x452d8f
mov eax, dword [esp + 0x50]
push 0x10
lea ecx, [ebp + 0x108]
push ecx
push esi
mov dword [esp + 0x1c], eax
call fcn.0045d2a5
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 0x10
jne 0x4531e9
xor edi, edi
cmp dword [esp + 0x96c], edi
je 0x452cec
mov edx, dword [esp + 0x10]
mov dword [0x4f9650], edx
mov dword [0x4ba558], esi
mov dword [0x4f9654], ebx
movzx eax, word [ebp + 0x10a]
mov dword [0x4fd670], eax
mov dword [0x4fd658], edi
mov dword [0x4fd65c], edi
mov dword [0x4fd664], edi
mov dword [0x4fd668], edi
mov dword [esp + 0x20], edi
jmp 0x4531d6
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004527c0
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [edx], eax
cmp eax, edi
je 0x4531f3
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.0045acc7
mov edi, eax
add esp, 4
test edi, edi
je 0x4531f3
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
push eax
push edi
push esi
call fcn.0045d2a5
mov ecx, eax
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
add esp, 0xc
mov dword [esp + 0x14], ecx
cmp ecx, eax
jne 0x4531f3
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
movzx ecx, word [ebp + 0x10a]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push ecx
call fcn.004527e0
push edi
call fcn.0045abea
add esp, 0x18
xor edi, edi
mov dword [esp + 0x20], edi
jmp 0x4531d6
cmp ebx, 5
jne 0x452e3c
push 4
lea edx, [esp + 0x14]
push edx
push esi
call fcn.0045d2a5
mov edi, dword [esp + 0x978]
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
push ecx
push eax
push esi
mov dword [ebp + 0x100], eax
call fcn.00452170
add esp, 0x1c
test eax, eax
jle case.0x452df9.134
test edi, edi
je 0x452e26
mov edx, dword [esp + 0x1c]
push edx
push 0x4fd678
call fcn.00452350
add eax, 0x86
add esp, 8
cmp eax, 6
ja case.0x452df9.131
movzx eax, byte [eax + 0x453244]
jmp dword [eax*4 + 0x45323c]
lea ecx, [ebp + 0x108]
push ecx
push 0x4fd678
call fcn.00452050
add esp, 8
test eax, eax
jge 0x452bc8
mov eax, 1
jmp 0x452c00
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [ebp + 0x108]
push eax
push ecx
jmp 0x452bf0
push 0x10
lea edx, [ebp + 0x108]
push edx
push esi
call fcn.0045d2a5
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 0x10
jne 0x4531e9
mov eax, dword [esp + 0x50]
xor edi, edi
mov dword [esp + 0x10], eax
cmp dword [esp + 0x96c], edi
je 0x452e88
mov dword [0x4f9650], eax
mov dword [0x4ba558], esi
mov dword [0x4f9654], edi
mov dword [esp + 0x20], edi
jmp 0x4531d6
push eax
call fcn.004527c0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
cmp eax, edi
je 0x4531f3
mov edx, dword [esp + 0x10]
push edx
push eax
push esi
call fcn.0045d2a5
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
je 0x45306f
jmp 0x4531f3
mov eax, dword [esp + 0x50]
push 0x10
lea ecx, [ebp + 0x108]
push ecx
push esi
mov dword [esp + 0x1c], eax
call fcn.0045d2a5
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 0x10
jne 0x4531e9
push 4
lea edx, [esp + 0x28]
push edx
push esi
call fcn.0045d2a5
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 4
jne 0x4531e9
mov eax, dword [esp + 0x10]
xor edi, edi
cmp dword [esp + 0x96c], edi
je 0x452f5d
movsx ecx, byte [esp + 0x55]
mov edx, dword [esp + 0x24]
push edx
mov dword [0x4f9650], eax
mov dword [0x4ba558], esi
mov dword [0x4f9654], 1
mov dword [0x4fd670], edi
mov dword [0x4ba720], ecx
call fcn.00451e40
push 0x40
push edi
push 0x4f9658
call fcn.0045ab70
add esp, 0x10
mov dword [esp + 0x20], edi
jmp 0x4531d6
add eax, 0x2000
push eax
call fcn.004527c0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
cmp eax, edi
je 0x4531f3
mov ecx, dword [esp + 0x10]
mov eax, 0x81020409
imul ecx
add edx, ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 0xc
add eax, 0x4002
push eax
call fcn.0045acc7
mov edi, eax
add esp, 4
test edi, edi
je 0x4531f3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push ecx
push eax
push esi
call fcn.0045d2a5
mov ebp, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x4531f3
cmp ebx, 3
jne 0x453011
mov ecx, dword [esp + 0x10]
mov eax, 0x81020409
imul ecx
add edx, ecx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
shl ecx, 0xc
add ecx, 0x4002
push ebp
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.00473920
add esp, 0x10
jmp 0x453022
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push edi
push ebp
push eax
call fcn.00451a60
add esp, 0xc
movsx ebx, byte [esp + 0x55]
push 0x8000
call fcn.0045acc7
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x453048
push edi
call fcn.0045abea
add esp, 4
jmp 0x4531f3
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push ebp
push ebx
push ecx
push edi
push eax
call fcn.00451600
push ebp
call fcn.0045abea
push edi
call fcn.0045abea
mov ebp, dword [esp + 0x44]
add esp, 0x1c
xor edi, edi
mov dword [esp + 0x20], edi
jmp 0x4531d6
cmp eax, 0x46464952
je 0x45308f
cmp dword [esp + 0x54], 0x45564157
jne 0x4531d6
mov edi, dword [esp + 0x50]
add edi, 0xfffffffc
push 8
lea ecx, [esp + 0x48]
push ecx
push esi
call fcn.0045d2a5
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 8
jne 0x4531d6
sub edi, eax
mov eax, dword [esp + 0x44]
cmp eax, 0x20746d66
jne 0x453121
push 0x10
lea edx, [ebp + 0x108]
push edx
push esi
call fcn.0045d2a5
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 0x10
jne 0x4531d6
sub edi, eax
mov eax, dword [esp + 0x48]
sub eax, 0x10
mov dword [esp + 0x48], eax
cmp eax, 0x800
ja 0x4531d6
test eax, eax
jle 0x453177
push eax
lea eax, [esp + 0x160]
push eax
push esi
call fcn.0045d2a5
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x48]
jne 0x4531d6
jmp 0x453177
cmp eax, 0x61746164
mov eax, dword [esp + 0x48]
je 0x453181
cmp eax, 0x800
jbe 0x453161
push 0x800
lea ecx, [esp + 0x160]
push ecx
push esi
call fcn.0045d2a5
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x54]
sub eax, 0x800
add esp, 0xc
mov dword [esp + 0x48], eax
cmp eax, 0x800
ja 0x453133
push eax
lea edx, [esp + 0x160]
push edx
push esi
call fcn.0045d2a5
add esp, 0xc
mov dword [esp + 0x14], eax
test edi, edi
jg 0x453096
jmp 0x4531d6
cmp dword [esp + 0x96c], 0
mov dword [esp + 0x10], eax
je 0x4531a6
mov dword [0x4f9650], eax
mov dword [0x4ba558], esi
mov dword [0x4f9654], 0
jmp 0x4531ce
push eax
call fcn.004527c0
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x4531d6
mov ecx, dword [esp + 0x10]
push ecx
push eax
push esi
call fcn.0045d2a5
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jne 0x4531d6
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x10]
xor edx, edx
mov word [ebp + 0x118], dx
mov dword [ebp + 0x100], eax
cmp dword [esp + 0x96c], 0
jne 0x4531fc
push esi
call fcn.0045c3da
add esp, 4
cmp dword [esp + 0x20], 0
je 0x452bfe
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
test eax, eax
je 0x453220
push eax
call fcn.0045abea
add esp, 4
mov dword [esi], 0
mov eax, 1
jmp 0x452c00