Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x461a10]
xor eax, ebp
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x68], str.RIFF
mov dword [ebp - 0x6c], str.WAVE
mov dword [ebp - 0x34], str.BEXT
mov dword [ebp - 0x38], str.fmt
mov dword [ebp - 0x28], str.data
mov dword [ebp - 0x30], 0
push 0x4481a4
mov eax, dword [ebp + 8]
push eax
call fcn.0042cfd0
add esp, 8
test eax, eax
jne 0x40107c
push 0x8000
call fcn.0042ce15
push eax
call fcn.0042cde3
add esp, 4
push eax
call fcn.0042ccec
add esp, 8
call fcn.0042ce15
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 1
jmp 0x4010a9
push 0x4481a0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042cbe0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4010a9
mov edx, dword [ebp + 8]
push edx
call fcn.0042ca8e
add esp, 4
xor eax, eax
jmp 0x401417
cmp dword [ebp + 0xc], 0
jne 0x401326
mov eax, dword [ebp - 4]
push eax
push 0xc
push 1
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042ca49
add esp, 0x10
cmp eax, 0xc
je 0x4010d3
xor eax, eax
jmp 0x401417
push 4
mov edx, dword [ebp - 0x68]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.0042b129
add esp, 0xc
test eax, eax
je 0x4010f0
xor eax, eax
jmp 0x401417
push 4
mov ecx, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.0042b129
add esp, 0xc
test eax, eax
je 0x40110d
xor eax, eax
jmp 0x401417
mov eax, dword [ebp - 4]
push eax
push 8
push 1
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0042ca49
add esp, 0x10
cmp eax, 8
je 0x40112d
xor eax, eax
jmp 0x401417
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
push 4
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0042b129
add esp, 0xc
test eax, eax
jne 0x401181
push 1
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0042b0a4
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push 8
push 1
lea edx, [ebp - 0x1c]
push edx
call fcn.0042ca49
add esp, 0x10
cmp eax, 8
je 0x40117b
xor eax, eax
jmp 0x401417
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
push 4
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.0042b129
add esp, 0xc
test eax, eax
je 0x40119e
xor eax, eax
jmp 0x401417
push 0x28
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.0042afa0
add esp, 0xc
cmp dword [ebp - 0x18], 0x28
jae 0x4011bc
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x70], ecx
jmp 0x4011c3
mov dword [ebp - 0x70], 0x28
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 1
lea edx, [ebp - 0x64]
push edx
call fcn.0042ca49
add esp, 0x10
cmp eax, dword [ebp - 0x24]
je 0x4011eb
xor eax, eax
jmp 0x401417
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
jmp 0x4011ff
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jle 0x401213
mov edx, dword [ebp - 4]
push edx
call fcn.0042ae99
add esp, 4
jmp 0x4011f6
mov dword [ebp - 0x14], 0
jmp 0x401225
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
push 8
push 1
lea edx, [ebp - 0x1c]
push edx
call fcn.0042ca49
add esp, 0x10
cmp eax, 8
je 0x401245
xor eax, eax
jmp 0x401417
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
push 4
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.0042b129
add esp, 0xc
test eax, eax
jne 0x401263
jmp 0x401297
cmp dword [ebp - 0x14], 0xa
jle 0x401270
xor eax, eax
jmp 0x401417
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
jmp 0x401281
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jle 0x401295
mov edx, dword [ebp - 4]
push edx
call fcn.0042ae99
add esp, 4
jmp 0x401278
jmp 0x40121c
movzx eax, word [ebp - 0x64]
cmp eax, 1
je 0x401326
movzx ecx, word [ebp - 0x64]
cmp ecx, 3
je 0x401326
movzx edx, word [ebp - 0x64]
cmp edx, 0xfffe
jne 0x401313
movzx eax, word [ebp - 0x54]
cmp eax, 0x16
jge 0x4012c9
xor eax, eax
jmp 0x401417
push 0x10
push section..data
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0042b129
add esp, 0xc
test eax, eax
je 0x401311
mov byte [section..data], 3
push 0x10
push section..data
lea edx, [ebp - 0x4c]
push edx
call fcn.0042b129
add esp, 0xc
test eax, eax
je 0x401311
mov eax, dword [ebp + 8]
push eax
call fcn.00401430
add esp, 4
xor eax, eax
jmp 0x401417
jmp 0x401326
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401430
add esp, 4
xor eax, eax
jmp 0x401417
push 0x1c
call fcn.0042adcf
add esp, 4
mov dword [ebp - 0x2c], eax
push 0x1c
push 0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042afa0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
movzx edx, word [ebp - 0x64]
cmp edx, 3
jne 0x401360
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x18], 1
jmp 0x401372
movzx ecx, byte [ebp - 0x4c]
xor edx, edx
cmp ecx, 3
sete dl
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x18], edx
cmp dword [ebp + 0xc], 0
je 0x4013ca
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x14], 1
cmp dword [ebp - 0x30], 0
je 0x401394
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x10], 0
jmp 0x4013c8
push 2
push 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push ecx
call fcn.0042b0a4
add esp, 0xc
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
push eax
call fcn.0042ad12
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
push eax
call fcn.0042aaaf
add esp, 4
jmp 0x401414
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x14], 0
movzx edx, word [ebp - 0x62]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], edx
movzx eax, word [ebp - 0x56]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x60]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 8]
imul ecx, dword [edx + 4]
mov eax, dword [ebp - 0x18]
xor edx, edx
div ecx
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.0042d058
mov esp, ebp
pop ebp
ret