Function at 0x4ed9f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5ba2
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x6396a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0xffffffffffffffff
mov esi, ecx
push ebx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
call fcn.0043b440
mov eax, esi
lea esi, [ebp - 0xf0]
mov dword [ebp - 4], ebx
call fcn.00471b40
mov esi, eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 4], 1
call fcn.00470260
push str.cached_
push eax
lea ecx, [ebp - 0xd4]
push ecx
mov byte [ebp - 4], 2
call fcn.00441f20
push esi
push eax
lea edx, [ebp - 0xb8]
push edx
mov byte [ebp - 4], 3
call fcn.00441fd0
push str..wav
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.00441f20
add esp, 0x28
mov edi, 0x10
cmp dword [ebp - 0xa0], edi
jb 0x4edaba
mov ecx, dword [ebp - 0xb4]
push ecx
call fcn.005b28f2
add esp, 4
mov esi, 0xf
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xa4], ebx
mov byte [ebp - 0xb4], bl
cmp dword [ebp - 0xbc], edi
jb 0x4edae8
mov edx, dword [ebp - 0xd0]
push edx
call fcn.005b28f2
add esp, 4
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xc0], ebx
mov byte [ebp - 0xd0], bl
cmp dword [ebp - 0xf4], edi
jb 0x4edb11
mov eax, dword [ebp - 0x108]
push eax
call fcn.005b28f2
add esp, 4
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xf8], ebx
mov byte [ebp - 0x108], bl
mov byte [ebp - 4], 9
cmp dword [ebp - 0xd8], edi
jb 0x4edb3e
mov ecx, dword [ebp - 0xec]
push ecx
call fcn.005b28f2
add esp, 4
mov dword [ebp - 0xd8], esi
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x9c]
mov dword [ebp - 0xdc], ebx
mov byte [ebp - 0xec], bl
call fcn.00471be0
push eax
mov byte [ebp - 4], 0xa
call fcn.00471a40
add esp, 4
mov byte [ebp - 4], 9
cmp dword [ebp - 0x84], edi
jb 0x4edb86
mov edx, dword [ebp - 0x98]
push edx
call fcn.005b28f2
add esp, 4
cmp dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x84], 0xf
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
jae 0x4edba7
lea eax, [ebp - 0x28]
push ebx
push ebx
push eax
mov eax, dword [0x640894]
mov ecx, dword [eax + 0x18]
push 0xffffffffffffffff
call ecx
mov edi, eax
cmp edi, ebx
jne 0x4ede14
mov edx, dword [ebp - 0x7c]
push str..ogg
push edx
lea eax, [ebp - 0x9c]
push eax
call fcn.00441f20
add esp, 0xc
mov esi, 0x10
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x18], esi
jb 0x4edbeb
mov eax, dword [eax + 4]
jmp 0x4edbee
add eax, 4
mov ecx, dword [0x640894]
mov edx, dword [ecx + 0x18]
push ebx
push ebx
push eax
push 0xffffffffffffffff
call edx
mov byte [ebp - 4], 9
cmp dword [ebp - 0x84], esi
mov edi, eax
jb 0x4edc1b
mov eax, dword [ebp - 0x98]
push eax
call fcn.005b28f2
add esp, 4
cmp edi, ebx
mov dword [ebp - 0x84], 0xf
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
je 0x4ede14
mov ecx, dword [0x640894]
mov edx, dword [ecx + 0x38]
push edi
call edx
mov ecx, dword [0x640894]
push ebx
push ebx
mov esi, eax
push ebx
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], ebx
mov edx, dword [ecx + 0x34]
push edi
call edx
mov eax, esi
and al, 0x20
neg al
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 1
push edi
sbb eax, eax
add eax, 2
movzx edx, ax
mov eax, esi
and al, 8
neg al
mov dword [ebp - 0x70], edx
movzx edx, dx
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x10
movzx eax, ax
mov dword [ebp - 0x60], eax
movzx eax, ax
imul eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
movzx eax, ax
mov dword [ebp - 0x54], eax
movzx eax, ax
imul eax, ecx
mov ecx, dword [0x640894]
mov dword [ebp - 0x74], eax
mov edx, dword [ecx + 0x30]
call edx
movzx ecx, word [ebp - 0x54]
imul eax, ecx
lea edx, [eax + 0x24]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x58]
push edx
push eax
mov dword [ebp - 0x50], eax
mov eax, dword [0x640894]
mov ecx, dword [eax + 0x24]
push ebx
push edi
call ecx
test al, al
je 0x4ede14
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4edcfd
lea eax, [ebp - 0x28]
push 0x6106c4
push eax
call fcn.005b6041
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4eddf8
push esi
push 4
push 1
push str.RIFF
call fcn.005b428c
push esi
push 1
lea edx, [ebp - 0x4c]
push 4
push edx
call fcn.005b428c
push esi
push 4
push 1
push str.WAVE
call fcn.005b428c
push esi
push 4
push 1
push str.fmt
mov dword [ebp - 0x4c], 0x10
call fcn.005b428c
add esp, 0x40
push esi
push 4
lea eax, [ebp - 0x4c]
push 1
push eax
call fcn.005b428c
push esi
push 1
lea ecx, [ebp - 0x64]
push 2
push ecx
call fcn.005b428c
push esi
push 1
lea edx, [ebp - 0x70]
push 2
push edx
call fcn.005b428c
push esi
push 1
lea eax, [ebp - 0x68]
push 4
push eax
call fcn.005b428c
add esp, 0x40
push esi
push 1
lea ecx, [ebp - 0x74]
push 4
push ecx
call fcn.005b428c
push esi
push 1
lea edx, [ebp - 0x54]
push 2
push edx
call fcn.005b428c
push esi
push 1
lea eax, [ebp - 0x60]
push 2
push eax
call fcn.005b428c
push esi
push 4
push 1
push str.data
call fcn.005b428c
add esp, 0x40
push esi
push 1
lea ecx, [ebp - 0x50]
push 4
push ecx
call fcn.005b428c
mov edx, dword [ebp - 0x50]
push esi
push edx
mov eax, dword [ebp - 0x58]
push 1
push eax
call fcn.005b428c
push esi
call fcn.005b4539
add esp, 0x24
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x6c]
push ecx
mov ecx, dword [ebp - 0x58]
push edx
mov edx, dword [0x640894]
push eax
mov eax, dword [edx + 0x28]
push ecx
push edi
call eax
mov esi, 0x10
cmp dword [ebp - 0x14], esi
jb 0x4ede2a
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.005b28f2
add esp, 4
cmp dword [ebp - 0x30], esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
jb 0x4ede48
mov edx, dword [ebp - 0x44]
push edx
call fcn.005b28f2
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b2f9b
mov esp, ebp
pop ebp
ret