Function at 0x4132f0
Capabilities:
Delete file
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x280
mov eax, dword [0x437788]
mov ecx, dword [ebx + 0x10cc080]
mov edx, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
mov dword [esp + 0x278], eax
mov eax, dword [ebx + 0x10cc07c]
push ebp
mov ebp, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
cmp eax, ecx
push esi
push edi
jg 0x413345
jl 0x413333
cmp ebp, edx
jae 0x413345
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jmp 0x413361
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov ebp, edx
mov edx, dword [esp + 0x18]
mov eax, ecx
mov ecx, dword [esp + 0x1c]
cmp ebp, edx
jne 0x41336d
cmp eax, ecx
je 0x41390a
xor esi, esi
sub edx, ebp
sbb ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
fild qword [esp + 0x10]
push 4
lea edx, [esp + 0x58]
xor eax, eax
push str.RIFF
fstp qword [esp + 0x40]
mov ecx, 0xb
lea edi, [esp + 0x5c]
push edx
mov dword [esp + 0x40], esi
rep stosd dword es:[edi], eax
call fcn.0041b7e0
push 4
lea eax, [esp + 0x6c]
push str.WAVE
push eax
call fcn.0041b7e0
push 4
lea ecx, [esp + 0x7c]
push str.fmt
push ecx
call fcn.0041b7e0
push 4
lea edx, [esp + 0xa0]
push str.data
push edx
call fcn.0041b7e0
mov eax, dword [ebx + 0x10cc078]
mov word [esp + 0x9a], si
mov edx, dword [eax + 0x2c]
add esp, 0x30
xor ecx, ecx
test edx, edx
jle 0x413415
mov edi, eax
lea edx, [ebx + 0x10971f8]
lea ecx, [ecx]
cmp dword [edx], 0
je 0x41340c
inc si
mov word [esp + 0x6a], si
inc ecx
add edx, 4
cmp ecx, dword [edi + 0x2c]
jl 0x413400
fld dword [eax + 0x4ff0]
call fcn.0041d6e4
mov edi, eax
movzx esi, si
mov ecx, esi
shl ecx, 4
mov eax, ecx
imul ecx, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [esp + 0x74], ax
mov eax, dword [esp + 0x18]
sub eax, ebp
imul eax, esi
shl eax, 4
shr eax, 3
mov dword [esp + 0x7c], eax
add eax, 0x24
shr ecx, 3
push 0x432bec
mov dword [esp + 0x70], edi
mov edi, dword [0x43b52c]
push str.Debug.txt
mov word [esp + 0x7e], 0x10
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], 0x10
mov word [esp + 0x70], 1
mov dword [esp + 0x78], ecx
call fcn.0041bc24
push esi
push esi
push str._int__wavh.numChannels
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041bc37
mov eax, dword [edi]
push eax
call fcn.0041bd27
mov esi, dword [esp + 0x8c]
mov edi, dword [0x43b52c]
push 0x432bec
push str.Debug.txt
call fcn.0041bc24
push esi
push esi
push str._int__wavh.sampleRate
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041bc37
mov ecx, dword [edi]
push ecx
call fcn.0041bd27
movzx esi, word [esp + 0xb6]
mov edi, dword [0x43b52c]
add esp, 0x40
push 0x432bec
push str.Debug.txt
call fcn.0041bc24
push esi
push esi
push str._int__wavh.bitsPerSample
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041bc37
mov edx, dword [edi]
push edx
call fcn.0041bd27
movzx esi, word [esp + 0x94]
mov edi, dword [0x43b52c]
push 0x432bec
push str.Debug.txt
call fcn.0041bc24
push esi
push esi
mov dword [edi], eax
push str._int__wavh.blockAlign
push str._s_d__x__n
push eax
call fcn.0041bc37
mov eax, dword [edi]
push eax
call fcn.0041bd27
mov esi, dword [esp + 0x98]
mov edi, dword [0x43b52c]
add esp, 0x40
push 0x432bec
push str.Debug.txt
call fcn.0041bc24
push esi
push esi
push str._int__wavh.chunkSize
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041bc37
mov ecx, dword [edi]
push ecx
call fcn.0041bd27
mov esi, dword [esp + 0x84]
mov edi, dword [0x43b52c]
push 0x432bec
push str.Debug.txt
call fcn.0041bc24
push esi
push esi
push str._int__wavh.subchunk1Size
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041bc37
mov edx, dword [edi]
push edx
call fcn.0041bd27
mov esi, dword [esp + 0xbc]
mov edi, dword [0x43b52c]
add esp, 0x40
push 0x432bec
push str.Debug.txt
call fcn.0041bc24
push esi
push esi
push str._int__wavh.subchunk2Size
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041bc37
mov eax, dword [edi]
push eax
call fcn.0041bd27
movzx esi, word [esp + 0x88]
mov edi, dword [0x43b52c]
push 0x432bec
push str.Debug.txt
call fcn.0041bc24
push esi
push esi
push str._int__wavh.audioFormat
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041bc37
mov ecx, dword [edi]
push ecx
call fcn.0041bd27
mov esi, dword [esp + 0xb0]
mov edi, dword [0x43b52c]
add esp, 0x40
push 0x432bec
push str.Debug.txt
call fcn.0041bc24
push esi
push esi
push str._int__wavh.byteRate
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041bc37
mov edx, dword [edi]
push edx
call fcn.0041bd27
mov eax, dword [0x43c548]
mov ecx, dword [0x43b4b0]
add esp, 0x20
push pe_nt_image_headers32
shl eax, 9
add eax, 0x43b548
push eax
push 0xd4
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x43c548]
lea edx, [eax + 1]
and edx, 0x80000007
jns 0x4136b5
dec edx
or edx, 0xfffffff8
inc edx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
shl eax, 9
add eax, 0x43b548
push eax
mov eax, dword [ebx + 0x1097a10]
push 2
push 0x400
push eax
mov dword [0x43c548], edx
call edi
push 0x433340
lea esi, [ebx + 0x10969f8]
push esi
call fcn.0041c218
add esp, 8
test eax, eax
je 0x4138e4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x20
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x4138ee
push 0
lea edx, [esp + 0x48]
push edx
push 0x2c
lea ecx, [esp + 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
jg 0x4138d5
jl 0x413759
cmp ebp, dword [esp + 0x18]
jae 0x4138d5
fld qword [0x433c28]
fdiv qword [esp + 0x38]
fstp qword [esp + 0x48]
jmp 0x413777
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x10]
sub edx, ebp
mov ecx, esi
sbb ecx, eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
fild qword [esp + 0x38]
fmul qword [esp + 0x48]
fmul qword [0x433cc0]
call fcn.0041d6e4
mov ebp, eax
cmp ebp, dword [esp + 0x34]
je 0x4137b9
mov edx, dword [ebx + 0x1097a10]
push ebp
push 1
push 0x400
push edx
call edi
mov dword [esp + 0x34], ebp
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x10cc078]
mov ecx, dword [eax + 0x2c]
xor edi, edi
xor ebp, ebp
cmp ecx, edi
jle 0x413883
lea ecx, [ebx + 0x10971f8]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
lea esp, [esp]
mov edx, dword [esp + 0x2c]
cmp dword [edx], 0
je 0x41385b
mov ecx, dword [ebx + 0x10cc078]
movsx eax, byte [ecx + 0x498]
dec eax
je 0x413827
sub eax, 5
jne 0x41385b
mov eax, dword [esp + 0x10]
push ebp
push esi
push eax
mov esi, ecx
call fcn.00402dd0
mov esi, dword [esp + 0x14]
sub eax, 0x8000
jmp 0x413852
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
fld qword [edx + ecx + 0x4fc]
push esi
fstp dword [esp + 0x44]
push eax
mov eax, ebp
call fcn.00402e60
fdiv dword [esp + 0x40]
fmul dword [0x433dbc]
call fcn.0041d6e4
mov word [esp + edi*2 + 0x80], ax
inc edi
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add ecx, 0x14
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x10cc078]
mov eax, dword [ecx + 0x2c]
inc ebp
add edx, 4
cmp ebp, eax
mov dword [esp + 0x2c], edx
jl 0x4137f0
push 0
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x38]
lea eax, [edi + edi]
push eax
lea ecx, [esp + 0x8c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add edx, 1
adc esi, 0
cmp esi, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
jl 0x413769
jg 0x4138cf
mov ecx, dword [esp + 0x18]
mov eax, edx
cmp eax, ecx
jb 0x413769
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4138e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x1097a30], 1
mov ecx, dword [ebx + 0x1097a10]
push 0x64
push 1
push 0x400
push ecx
call edi
mov dword [ebx + 0x1097a10], 0
mov ecx, dword [esp + 0x284]
call fcn.0041c756
pop edi
pop esi
pop ebp
add esp, 0x280
ret