Function at 0x100400e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100e57c0]
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 0x10074a74
mov dword [esi + 0x1c], eax
push ecx
mov dword [esi + 0x20], eax
push ebx
mov dword [esi + 0x24], eax
call fcn.1004e5c9
add esp, 0xc
test eax, eax
jne 0x1004032c
mov eax, dword [ebx]
push eax
push 1
lea ecx, [ebp - 0x18]
push 0x14
push ecx
call fcn.1004e352
add esp, 0x10
cmp eax, 1
jne 0x1004032c
cmp dword [ebp - 0x18], 0x46464952
jne 0x1004032c
cmp dword [ebp - 0x14], 0x2d
jb 0x1004032c
cmp dword [ebp - 0x10], 0x45564157
jne 0x1004032c
cmp dword [ebp - 0xc], 0x20746d66
jne 0x1004032c
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x1004032c
cmp eax, 0x28
jb 0x100401b5
mov eax, 0x28
mov edx, dword [ebx]
push edx
push 1
push eax
push esi
call fcn.1004e352
add esp, 0x10
cmp eax, 1
jne 0x1004032c
mov eax, dword [ebp - 8]
cmp eax, 0x28
jbe 0x100401ee
add eax, 0xffffffd8
push 1
push eax
mov eax, dword [ebx]
push eax
call fcn.1004e48f
add esp, 0xc
test eax, eax
jne 0x10040333
movzx eax, word [esi]
cmp eax, 1
jne 0x10040200
xor ecx, ecx
mov word [edi + 0x30], cx
cmp eax, eax
je 0x1004020e
cmp eax, 3
jne 0x10040290
cmp eax, 1
jne 0x10040233
mov edx, dword [0x10070380]
mov dword [edi + 0x38], edx
mov eax, dword [0x10070384]
mov dword [edi + 0x3c], eax
mov ecx, dword [0x10070388]
mov dword [edi + 0x40], ecx
mov edx, dword [0x1007038c]
mov dword [edi + 0x44], edx
jmp 0x10040255
mov eax, dword [0x10070370]
mov dword [edi + 0x38], eax
mov ecx, dword [0x10070374]
mov dword [edi + 0x3c], ecx
mov edx, dword [0x10070378]
mov dword [edi + 0x40], edx
mov eax, dword [0x1007037c]
mov dword [edi + 0x44], eax
movzx eax, word [edi + 0x22]
mov ecx, 0xfffe
mov word [esi], cx
cmp eax, 1
jne 0x1004026f
mov dword [edi + 0x34], 4
jmp 0x1004027f
cmp eax, 2
jne 0x1004032c
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 0x1004032c
lea esi, [edi + 0x38]
push 0x10070380
push esi
call fcn.100147e0
add esp, 8
test eax, eax
jne 0x100402c5
push 0x10070370
push esi
call fcn.100147e0
add esp, 8
test eax, eax
je 0x1004032c
mov edx, dword [ebx]
lea esi, [edi + 0x10]
push esi
push edx
call fcn.1004e3aa
add esp, 8
test eax, eax
jne 0x1004032c
mov eax, dword [ebx]
push eax
push 1
lea ecx, [ebp - 0x20]
push 8
push ecx
call fcn.1004e352
add esp, 0x10
cmp eax, 1
jne 0x1004032c
cmp dword [ebp - 0x20], 0x61746164
je 0x1004031f
mov edx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx]
push edx
push eax
call fcn.1004e48f
add esp, 0xc
test eax, eax
jne 0x1004032c
mov ecx, dword [ebx]
push esi
push ecx
call fcn.1004e3aa
add esp, 8
test eax, eax
je 0x100402d8
jmp 0x1004032c
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x10040333
mov dword [edi + 8], 0x88890008
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004bb49
mov esp, ebp
pop ebp
ret 8