Function at 0x402280
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00401bd0
lea ecx, [esi + 0x448]
mov eax, 0x20202020
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push 9
mov dword [ecx + 0xc], eax
push str.ADCLABFFS
mov dword [ecx + 0x10], eax
push ecx
mov dword [ecx + 0x14], eax
call fcn.00423970
lea ecx, [esi + 0x468]
mov eax, 0x20202020
xor ebp, ebp
mov dword [esi + 0x460], ebp
mov dword [esi + 0x464], ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push 0xe
mov dword [ecx + 0xc], eax
push str.SAMPLES_FORMAT
mov dword [ecx + 0x10], eax
push ecx
mov dword [ecx + 0x14], eax
call fcn.00423970
fldz
fld dword [esp + 0x38]
mov edi, dword [esp + 0x34]
fucom st(1)
mov dword [esi + 0x480], 0x14
mov dword [esi + 0x484], ebp
mov dword [esi + 0x488], 7
mov eax, dword [edi]
mov dword [esi + 0x48c], eax
fnstsw ax
add esp, 0x18
fstp st(1)
test ah, 0x44
jp 0x40232e
fstp st(0)
fld dword [esi + 0x4ff0]
lea ebx, [esi + 0x49c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
mov eax, 0x20202020
fstp qword [esi + 0x490]
mov byte [esi + 0x498], 1
mov byte [esi + 0x499], 0
mov byte [esi + 0x49a], 0
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push 0x14
mov dword [ebx + 0xc], eax
push str.CHANNELS_INFO_HEADER
mov dword [ebx + 0x10], eax
push ebx
mov dword [ebx + 0x14], eax
call fcn.00423970
add esp, 0xc
mov dword [esi + 0x4b4], 0x14
mov dword [esi + 0x4b8], ebp
mov dword [esi + 0x4bc], 3
xor ecx, ecx
cmp dword [edi], ebp
jle 0x4023cb
lea edx, [edi + 0x184]
lea eax, [esi + 0x4f4]
lea esp, [esp]
add ecx, 1
mov dword [eax - 4], ecx
fld dword [edx - 0x80]
fstp qword [eax]
add edx, 4
fld dword [edx - 4]
add eax, 0x14
fstp qword [eax - 0xc]
cmp ecx, dword [edi]
jl 0x4023b0
lea ebp, [esi + 0x4d0]
mov eax, 0x20202020
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
push 0xd
mov dword [ebp + 0xc], eax
push str.CHANNELS_INFO
mov dword [ebp + 0x10], eax
push ebp
mov dword [ebp + 0x14], eax
call fcn.00423970
mov eax, dword [esi + 0x48c]
and eax, 0x1ff
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
cdq
mov dword [esi + 0x7804], 8
mov dword [esi + 0x4e8], eax
mov dword [esi + 0x4ec], edx
mov ecx, dword [0x43d5f0]
mov dword [esi + 0x5804], ecx
mov edx, dword [0x43d5f4]
mov dword [esi + 0x5808], edx
mov dword [esi + 0x7804], 0xc
add esp, 0xc
mov dword [esi + 0x580c], 1
cmp dword [edi + 0x384], 0
je 0x402460
mov dword [esi + 0x580c], 9
mov eax, dword [esi + 0x7804]
lea ecx, [eax + 4]
mov dword [esi + 0x7804], ecx
or dword [esi + 0x580c], 2
mov edx, dword [esi + 0x7804]
mov dword [eax + esi + 0x5804], 0
xor eax, eax
cmp dword [edi], eax
lea ecx, [esi + edx + 0x5804]
jle 0x4024b5
lea edx, [edi + 0x204]
mov dword [esp + 0x1c], edx
mov edi, edi
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
add dword [esp + 0x1c], 4
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi]
jl 0x4024a0
mov eax, dword [edi]
add eax, eax
add eax, eax
add dword [esi + 0x7804], eax
or dword [esi + 0x580c], 4
mov ecx, dword [esi + 0x7804]
xor eax, eax
cmp dword [edi], eax
lea ecx, [esi + ecx + 0x5804]
jle 0x4024fa
lea edx, [edi + 0x304]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
add dword [esp + 0x1c], 4
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi]
jl 0x4024e5
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
push 0
add eax, eax
add eax, eax
add dword [esi + 0x7804], eax
mov eax, dword [esi + 0x7804]
push 0x20
push 2
push 0
cdq
add dword [esi + 0x4e8], eax
push 0
push 0x40000000
adc dword [esi + 0x4ec], edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x402545
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x14]
push edx
push 0x20
lea ecx, [esi + 0x448]
push ecx
push eax
call edi
mov ecx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push 0x34
lea eax, [esi + 0x468]
push eax
push ecx
call edi
mov eax, dword [esi + 0x24]
push 0
lea edx, [esp + 0x14]
push edx
push 0x34
push ebx
push eax
call edi
mov edx, dword [esi + 0x24]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x20
push ebp
push edx
call edi
xor ebx, ebx
test dword [esi + 0x48c], 0x1ff
jle 0x4025d6
lea ebp, [esi + 0x4f0]
jmp 0x4025b0
mov ecx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push 0x14
push ebp
push ecx
call edi
mov edx, dword [esi + 0x48c]
add ebx, 1
and edx, 0x1ff
add ebp, 0x14
cmp ebx, edx
jl 0x4025b0
mov ecx, dword [esi + 0x7804]
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esi + 0x5804]
push eax
push edx
call edi
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push 0x28
lea ecx, [esi + 0x18f0]
push ecx
push edx
call edi
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push 0x20
lea ecx, [esi + 0x1ac4]
push ecx
push edx
call edi
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00401b10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0xc