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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x437ebc]
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x10cc080]
mov dword [esp + 0x27c], eax
mov eax, dword [ebx + 0x10cc07c]
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 0x41271d
jl 0x41270b
cmp edx, esi
jae 0x41271d
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
jmp 0x412739
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov esi, edx
mov edx, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp edx, esi
jne 0x412745
cmp eax, ecx
je 0x412cbf
sub esi, edx
sbb ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
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], 0
rep stosd dword es:[edi], eax
call fcn.0041b770
push 4
lea eax, [esp + 0x6c]
push str.WAVE
push eax
call fcn.0041b770
push 4
lea ecx, [esp + 0x7c]
push str.fmt
push ecx
call fcn.0041b770
push 4
lea edx, [esp + 0xa0]
push str.data
push edx
call fcn.0041b770
mov eax, dword [ebx + 0x10cc078]
xor si, si
mov word [esp + 0x9a], si
mov edx, dword [eax + 0x2c]
add esp, 0x30
xor ecx, ecx
test edx, edx
jle 0x4127f5
mov edi, eax
lea edx, [ebx + 0x10971f8]
lea ebx, [ebx]
cmp dword [edx], 0
je 0x4127ec
inc si
mov word [esp + 0x6a], si
inc ecx
add edx, 4
cmp ecx, dword [edi + 0x2c]
jl 0x4127e0
fld dword [eax + 0x4ff0]
call fcn.0041bcd8
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
mov edx, dword [esp + 0x20]
sar eax, 3
mov word [esp + 0x74], ax
mov eax, dword [esp + 0x18]
sub eax, edx
imul eax, esi
shl eax, 4
shr eax, 3
mov dword [esp + 0x7c], eax
add eax, 0x24
shr ecx, 3
push 0x430518
mov dword [esp + 0x70], edi
mov edi, dword [0x4425b8]
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.0041b556
push esi
push esi
push str._int__wavh.numChannels
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041b49c
mov eax, dword [edi]
push eax
call fcn.0041b44b
mov esi, dword [esp + 0x8c]
mov edi, dword [0x4425b8]
push 0x430518
push str.Debug.txt
call fcn.0041b556
push esi
push esi
push str._int__wavh.sampleRate
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041b49c
mov ecx, dword [edi]
push ecx
call fcn.0041b44b
movzx esi, word [esp + 0xb6]
mov edi, dword [0x4425b8]
add esp, 0x40
push 0x430518
push str.Debug.txt
call fcn.0041b556
push esi
push esi
push str._int__wavh.bitsPerSample
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041b49c
mov edx, dword [edi]
push edx
call fcn.0041b44b
movzx esi, word [esp + 0x94]
mov edi, dword [0x4425b8]
push 0x430518
push str.Debug.txt
call fcn.0041b556
push esi
mov dword [edi], eax
push esi
push str._int__wavh.blockAlign
push str._s_d__x__n
push eax
call fcn.0041b49c
mov eax, dword [edi]
push eax
call fcn.0041b44b
mov esi, dword [esp + 0x98]
mov edi, dword [0x4425b8]
add esp, 0x40
push 0x430518
push str.Debug.txt
call fcn.0041b556
push esi
push esi
push str._int__wavh.chunkSize
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041b49c
mov ecx, dword [edi]
push ecx
call fcn.0041b44b
mov esi, dword [esp + 0x84]
mov edi, dword [0x4425b8]
push 0x430518
push str.Debug.txt
call fcn.0041b556
push esi
push esi
push str._int__wavh.subchunk1Size
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041b49c
mov edx, dword [edi]
push edx
call fcn.0041b44b
mov esi, dword [esp + 0xbc]
mov edi, dword [0x4425b8]
add esp, 0x40
push 0x430518
push str.Debug.txt
call fcn.0041b556
push esi
push esi
push str._int__wavh.subchunk2Size
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041b49c
mov eax, dword [edi]
push eax
call fcn.0041b44b
movzx esi, word [esp + 0x88]
mov edi, dword [0x4425b8]
push 0x430518
push str.Debug.txt
call fcn.0041b556
push esi
push esi
push str._int__wavh.audioFormat
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041b49c
mov ecx, dword [edi]
push ecx
call fcn.0041b44b
mov esi, dword [esp + 0xb0]
mov edi, dword [0x4425b8]
add esp, 0x40
push 0x430518
push str.Debug.txt
call fcn.0041b556
push esi
push esi
push 0x4318e0
push str._s_d__x__n
mov dword [edi], eax
push eax
call fcn.0041b49c
mov edx, dword [edi]
push edx
call fcn.0041b44b
push 0xd4
call fcn.00416d90
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x24
push eax
mov eax, dword [ebx + 0x1097a10]
push 2
push 0x400
push eax
call edi
push 0x430ee0
lea esi, [ebx + 0x10969f8]
push esi
call fcn.0041c21f
add esp, 8
test eax, eax
je 0x412c99
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 + 0x30], esi
je 0x412ca3
push 0
lea edx, [esp + 0x48]
push edx
push 0x2c
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jg 0x412c8e
jl 0x412b03
cmp ecx, dword [esp + 0x18]
jae 0x412c8e
fld qword [0x4318d8]
fdiv qword [esp + 0x38]
fstp qword [esp + 0x48]
jmp 0x412b21
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x10]
sub edx, ecx
mov ecx, dword [esp + 0x14]
sbb ecx, eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
fild qword [esp + 0x38]
fmul qword [esp + 0x48]
fmul qword [0x430728]
call fcn.0041bcd8
mov esi, eax
cmp esi, dword [esp + 0x34]
je 0x412b65
mov edx, dword [ebx + 0x1097a10]
push esi
push 1
push 0x400
push edx
call edi
mov dword [esp + 0x34], esi
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 esi, esi
cmp ecx, edi
jle 0x412c34
lea ecx, [ebx + 0x10971f8]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ecx
jmp 0x412ba0
mov edx, dword [esp + 0x28]
cmp dword [edx], 0
je 0x412c0c
mov ecx, dword [ebx + 0x10cc078]
movsx eax, byte [ecx + 0x498]
dec eax
je 0x412bd5
sub eax, 5
jne 0x412c0c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push eax
push edx
call fcn.004017b0
sub eax, 0x8000
jmp 0x412c03
mov eax, dword [esp + 0x2c]
fld qword [eax + ecx + 0x4fc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
fstp dword [esp + 0x40]
push esi
push edx
push eax
call fcn.00401840
fdiv dword [esp + 0x40]
fmul dword [0x430540]
call fcn.0041bcd8
mov word [esp + edi*2 + 0x80], ax
inc edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add ecx, 0x14
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0x10cc078]
mov eax, dword [ecx + 0x2c]
inc esi
add edx, 4
cmp esi, eax
mov dword [esp + 0x28], edx
jl 0x412ba0
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 esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add esi, 1
adc eax, 0
cmp eax, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jl 0x412b13
jg 0x412c84
mov eax, dword [esp + 0x18]
mov ecx, esi
cmp ecx, eax
jb 0x412b13
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x412c99
push esi
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.0041b2b5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret