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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x449238]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x10cc07c]
mov ecx, dword [ebx + 0x10cc080]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
push esi
mov esi, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
cmp eax, ecx
push edi
jg 0x4129ff
jl 0x4129ed
cmp edx, esi
jae 0x4129ff
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
jmp 0x412a1b
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov esi, edx
mov edx, dword [esp + 0x20]
cmp edx, esi
jne 0x412a27
cmp eax, ecx
je 0x412fa8
sub esi, edx
sbb ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
fild qword [esp + 0x10]
push 0x2c
lea eax, [esp + 0x60]
push 0
push eax
fstp qword [esp + 0x5c]
mov dword [esp + 0x48], 0
call fcn.004238f0
push 4
lea ecx, [esp + 0x6c]
push str.RIFF
push ecx
call fcn.00423970
push 4
lea edx, [esp + 0x80]
push str.WAVE
push edx
call fcn.00423970
push 4
lea eax, [esp + 0x90]
push str.fmt
push eax
call fcn.00423970
push 4
lea ecx, [esp + 0xb4]
push str.data
push ecx
call fcn.00423970
mov eax, dword [ebx + 0x10cc078]
xor cx, cx
xor edx, edx
add esp, 0x3c
mov word [esp + 0x72], cx
cmp dword [eax + 0x2c], edx
jle 0x412ad7
mov edi, eax
lea esi, [ebx + 0x10971f8]
cmp dword [esi], 0
je 0x412acc
add cx, 1
mov word [esp + 0x72], cx
add edx, 1
add esi, 4
cmp edx, dword [edi + 0x2c]
jl 0x412abe
fld dword [eax + 0x4ff0]
movzx esi, cx
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x34], eax
mov ecx, esi
shl ecx, 4
fldcw word [esp + 0x34]
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
fistp qword [esp + 0x40]
mov edi, dword [esp + 0x40]
mov word [esp + 0x7c], ax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push 0x43d5b8
fldcw word [esp + 0x20]
imul eax, esi
imul ecx, edi
shl eax, 4
shr eax, 3
mov dword [esp + 0x88], eax
add eax, 0x24
shr ecx, 3
mov dword [esp + 0x78], edi
mov edi, dword [0x454178]
push str.Debug.txt
mov word [esp + 0x86], 0x10
mov dword [esp + 0x68], eax
mov dword [esp + 0x74], 0x10
mov word [esp + 0x78], 1
mov dword [esp + 0x80], ecx
call fcn.004236af
push esi
push esi
push str._int__wavh.numChannels
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0042349c
mov edx, dword [edi]
push edx
call fcn.00423420
mov esi, dword [esp + 0x94]
mov edi, dword [0x454178]
push 0x43d5b8
push str.Debug.txt
call fcn.004236af
push esi
push esi
push str._int__wavh.sampleRate
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0042349c
mov eax, dword [edi]
push eax
call fcn.00423420
movzx esi, word [esp + 0xbe]
mov edi, dword [0x454178]
add esp, 0x40
push 0x43d5b8
push str.Debug.txt
call fcn.004236af
push esi
push esi
push str._int__wavh.bitsPerSample
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0042349c
mov ecx, dword [edi]
push ecx
call fcn.00423420
movzx esi, word [esp + 0x9c]
mov edi, dword [0x454178]
push 0x43d5b8
push str.Debug.txt
call fcn.004236af
push esi
push esi
push str._int__wavh.blockAlign
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0042349c
mov edx, dword [edi]
push edx
call fcn.00423420
mov esi, dword [esp + 0xa0]
mov edi, dword [0x454178]
add esp, 0x40
push 0x43d5b8
push str.Debug.txt
call fcn.004236af
push esi
push esi
push str._int__wavh.chunkSize
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0042349c
mov eax, dword [edi]
push eax
call fcn.00423420
mov esi, dword [esp + 0x8c]
mov edi, dword [0x454178]
push 0x43d5b8
push str.Debug.txt
call fcn.004236af
push esi
push esi
push str._int__wavh.subchunk1Size
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0042349c
mov ecx, dword [edi]
push ecx
call fcn.00423420
mov esi, dword [esp + 0xc4]
mov edi, dword [0x454178]
add esp, 0x40
push 0x43d5b8
push str.Debug.txt
call fcn.004236af
push esi
push esi
push str._int__wavh.subchunk2Size
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0042349c
mov edx, dword [edi]
push edx
call fcn.00423420
movzx esi, word [esp + 0x90]
mov edi, dword [0x454178]
push 0x43d5b8
push str.Debug.txt
call fcn.004236af
push esi
push esi
push str._int__wavh.audioFormat
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0042349c
mov eax, dword [edi]
push eax
call fcn.00423420
mov esi, dword [esp + 0xb8]
mov edi, dword [0x454178]
add esp, 0x40
push 0x43d5b8
push str.Debug.txt
call fcn.004236af
mov dword [edi], eax
push esi
push esi
push str._int__wavh.byteRate
push str._s_d__x__n
push eax
call fcn.0042349c
mov ecx, dword [edi]
push ecx
call fcn.00423420
push 0xd4
call fcn.00416f80
mov edx, dword [ebx + 0x1097a10]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x24
push eax
push 2
push 0x400
push edx
call edi
push 0x43df98
lea esi, [ebx + 0x10969f8]
push esi
call fcn.00424825
add esp, 8
test eax, eax
je 0x412f82
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]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x34], esi
je 0x412f8c
push 0
lea ecx, [esp + 0x50]
push ecx
push 0x2c
lea edx, [esp + 0x68]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jg 0x412f77
jl 0x412e1e
cmp ecx, dword [esp + 0x28]
jae 0x412f77
jmp 0x412e1e
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
sub edx, ecx
mov ecx, dword [esp + 0x14]
sbb ecx, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
fild qword [esp + 0x40]
fdiv qword [esp + 0x50]
fmul qword [0x43d7d0]
call fcn.00423f00
mov esi, eax
cmp esi, dword [esp + 0x3c]
je 0x412e62
mov edx, dword [ebx + 0x1097a10]
push esi
push 1
push 0x400
push edx
call edi
mov dword [esp + 0x3c], esi
push 0x200
lea eax, [esp + 0x8c]
push 0
push eax
call fcn.004238f0
mov ecx, dword [ebx + 0x10cc078]
xor esi, esi
add esp, 0xc
xor edi, edi
cmp dword [ecx + 0x2c], esi
jle 0x412f25
lea edx, [ebx + 0x10971f8]
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0
je 0x412f09
mov ecx, dword [ebx + 0x10cc078]
movsx eax, byte [ecx + 0x498]
sub eax, 1
je 0x412ed0
sub eax, 5
jne 0x412f09
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edi
push edx
push eax
call fcn.00401860
add ax, 0x8000
jmp 0x412efe
mov edx, dword [esp + 0x38]
fld qword [edx + ecx + 0x4fc]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
fstp dword [esp + 0x48]
push edi
push eax
push edx
call fcn.004018f0
fmul qword [0x43d5e8]
fdiv dword [esp + 0x48]
call fcn.00423f00
mov word [esp + esi*2 + 0x88], ax
add esi, 1
mov eax, dword [ebx + 0x10cc078]
add dword [esp + 0x1c], 4
add dword [esp + 0x38], 0x14
add edi, 1
cmp edi, dword [eax + 0x2c]
jl 0x412e9a
push 0
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esi + esi]
push edx
lea eax, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x14]
adc eax, 0
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
jl 0x412e10
jg 0x412f6d
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x10], edx
jb 0x412e10
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x34]
test esi, esi
je 0x412f82
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x1097a30], 1
mov eax, dword [ebx + 0x1097a10]
push 0x64
push 1
push 0x400
push eax
call edi
mov dword [ebx + 0x1097a10], 0
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423284
mov esp, ebp
pop ebp
ret