Function at 0x10048ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100f38c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [edi], vtable.WaveFileReader.0
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x48], edx
lea esi, [edi + 0x20]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea ebx, [edi + 4]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
push 0x10081954
mov dword [esi + 0x1c], eax
push ecx
mov dword [esi + 0x20], eax
push ebx
mov dword [esi + 0x24], eax
call fcn.10058c58
add esp, 0xc
test eax, eax
jne 0x10048cfc
mov eax, dword [ebx]
push eax
push 1
lea ecx, [ebp - 0x18]
push 0x14
push ecx
call fcn.100589e1
add esp, 0x10
cmp eax, 1
jne 0x10048cfc
cmp dword [ebp - 0x18], 0x46464952
jne 0x10048cfc
cmp dword [ebp - 0x14], 0x2d
jb 0x10048cfc
cmp dword [ebp - 0x10], 0x45564157
jne 0x10048cfc
cmp dword [ebp - 0xc], 0x20746d66
jne 0x10048cfc
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x10048cfc
cmp eax, 0x28
jb 0x10048b85
mov eax, 0x28
mov edx, dword [ebx]
push edx
push 1
push eax
push esi
call fcn.100589e1
add esp, 0x10
cmp eax, 1
jne 0x10048cfc
mov eax, dword [ebp - 8]
cmp eax, 0x28
jbe 0x10048bbe
add eax, 0xffffffd8
push 1
push eax
mov eax, dword [ebx]
push eax
call fcn.10058b1e
add esp, 0xc
test eax, eax
jne 0x10048d03
movzx eax, word [esi]
cmp eax, 1
jne 0x10048bd0
xor ecx, ecx
mov word [edi + 0x30], cx
cmp eax, eax
je 0x10048bde
cmp eax, 3
jne 0x10048c60
cmp eax, 1
jne 0x10048c03
mov edx, dword [0x1007c52c]
mov dword [edi + 0x38], edx
mov eax, dword [0x1007c530]
mov dword [edi + 0x3c], eax
mov ecx, dword [0x1007c534]
mov dword [edi + 0x40], ecx
mov edx, dword [0x1007c538]
mov dword [edi + 0x44], edx
jmp 0x10048c25
mov eax, dword [0x1007c51c]
mov dword [edi + 0x38], eax
mov ecx, dword [0x1007c520]
mov dword [edi + 0x3c], ecx
mov edx, dword [0x1007c524]
mov dword [edi + 0x40], edx
mov eax, dword [0x1007c528]
mov dword [edi + 0x44], eax
movzx eax, word [edi + 0x22]
mov ecx, 0xfffe
mov word [esi], cx
cmp eax, 1
jne 0x10048c3f
mov dword [edi + 0x34], 4
jmp 0x10048c4f
cmp eax, 2
jne 0x10048cfc
mov dword [edi + 0x34], 3
mov ax, word [edi + 0x2e]
mov edx, 0x16
mov word [edi + 0x30], dx
mov word [edi + 0x32], ax
mov ecx, 0xfffe
cmp word [esi], cx
jne 0x10048cfc
lea esi, [edi + 0x38]
push 0x1007c52c
push esi
call fcn.10014720
add esp, 8
test eax, eax
jne 0x10048c95
push 0x1007c51c
push esi
call fcn.10014720
add esp, 8
test eax, eax
je 0x10048cfc
mov edx, dword [ebx]
lea esi, [edi + 0x10]
push esi
push edx
call fcn.10058a39
add esp, 8
test eax, eax
jne 0x10048cfc
mov eax, dword [ebx]
push eax
push 1
lea ecx, [ebp - 0x20]
push 8
push ecx
call fcn.100589e1
add esp, 0x10
cmp eax, 1
jne 0x10048cfc
cmp dword [ebp - 0x20], 0x61746164
je 0x10048cef
mov edx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx]
push edx
push eax
call fcn.10058b1e
add esp, 0xc
test eax, eax
jne 0x10048cfc
mov ecx, dword [ebx]
push esi
push ecx
call fcn.10058a39
add esp, 8
test eax, eax
je 0x10048ca8
jmp 0x10048cfc
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x10048d03
mov dword [edi + 8], 0x88890008
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10055898
mov esp, ebp
pop ebp
ret 8