Function at 0x4021d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00401b10
lea eax, [esi + 0x448]
mov edx, eax
mov ecx, 0x20202020
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
push 9
mov dword [edx + 0x10], ecx
push str.ADCLABFFS
push eax
mov dword [edx + 0x14], ecx
call fcn.0041b770
lea eax, [esi + 0x468]
xor ebp, ebp
mov dword [esi + 0x460], ebp
mov dword [esi + 0x464], ebp
mov edx, eax
mov ecx, 0x20202020
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
push 0xe
mov dword [edx + 0x10], ecx
push str.SAMPLES_FORMAT
push eax
mov dword [edx + 0x14], ecx
call fcn.0041b770
fld dword [0x433c6c]
fld dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov ebx, 0x14
fucompp
mov dword [esi + 0x480], ebx
mov dword [esi + 0x484], ebp
mov dword [esi + 0x488], 7
mov eax, dword [edi]
mov dword [esi + 0x48c], eax
fnstsw ax
add esp, 0x18
test ah, 0x44
jp 0x402285
fld dword [esi + 0x4ff0]
jmp 0x402289
fld dword [esp + 0x20]
fstp qword [esi + 0x490]
mov byte [esi + 0x498], 1
mov byte [esi + 0x499], 0
mov byte [esi + 0x49a], 0
lea eax, [esi + 0x49c]
mov edx, eax
mov ecx, 0x20202020
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
push ebx
mov dword [edx + 0x10], ecx
push str.CHANNELS_INFO_HEADER
push eax
mov dword [edx + 0x14], ecx
call fcn.0041b770
mov dword [esi + 0x4b4], ebx
mov dword [esi + 0x4b8], ebp
mov dword [esi + 0x4bc], 3
mov eax, dword [edi]
add esp, 0xc
xor ecx, ecx
cmp eax, ebp
jle 0x402318
lea edx, [edi + 0x184]
lea eax, [esi + 0x4f4]
jmp 0x402300
inc ecx
mov dword [eax - 4], ecx
fld dword [edx - 0x80]
fstp qword [eax]
add edx, 4
fld dword [edx - 4]
fstp qword [eax + 8]
add eax, ebx
cmp ecx, dword [edi]
jl 0x402300
lea ebx, [esi + 0x4d0]
mov eax, 0x20202020
mov ecx, ebx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
push 0xd
mov dword [ecx + 0x10], eax
push str.CHANNELS_INFO
push ebx
mov dword [ecx + 0x14], eax
call fcn.0041b770
mov eax, dword [esi + 0x48c]
and eax, 0x1ff
lea eax, [eax + eax*4]
shl eax, 2
cdq
mov dword [esi + 0x4e8], eax
mov dword [esi + 0x7804], 8
mov dword [esi + 0x4ec], edx
mov edx, dword [0x430544]
lea eax, [esi + 0x5804]
mov dword [eax], edx
mov ecx, dword [0x430548]
mov dword [eax + 4], ecx
mov dl, byte [0x43054c]
mov byte [eax + 8], dl
mov dword [esi + 0x7804], 0xc
mov dword [esi + 0x580c], 1
mov eax, dword [edi + 0x384]
add esp, 0xc
cmp eax, ebp
je 0x4023b6
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], ebp
mov ecx, dword [edi]
xor eax, eax
cmp ecx, ebp
lea edx, [esi + edx + 0x5804]
jle 0x402401
lea ecx, [edi + 0x204]
mov edi, edi
mov ebp, dword [ecx]
mov dword [edx + eax*4], ebp
mov ebp, dword [edi]
inc eax
add ecx, 4
cmp eax, ebp
jl 0x4023f0
xor ebp, ebp
mov eax, dword [edi]
mov ecx, dword [esi + 0x7804]
shl eax, 2
add ecx, eax
mov dword [esi + 0x7804], ecx
or dword [esi + 0x580c], 4
mov ecx, dword [esi + 0x7804]
lea edx, [esi + ecx + 0x5804]
mov ecx, dword [edi]
xor eax, eax
cmp ecx, ebp
jle 0x402447
lea ecx, [edi + 0x304]
mov ebp, dword [ecx]
mov dword [edx + eax*4], ebp
mov ebp, dword [edi]
inc eax
add ecx, 4
cmp eax, ebp
jl 0x402436
xor ebp, ebp
mov edx, dword [edi]
mov eax, dword [esi + 0x7804]
mov edi, dword [esi + 0x4e8]
mov ecx, dword [esi + 0x4ec]
push ebp
push 0x20
shl edx, 2
add eax, edx
push 2
mov dword [esi + 0x7804], eax
cdq
push ebp
add edi, eax
mov eax, dword [esp + 0x28]
push ebp
push 0x40000000
adc ecx, edx
push eax
mov dword [esi + 0x4e8], edi
mov dword [esi + 0x4ec], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x4024a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x20
lea ecx, [esi + 0x448]
push ecx
push eax
call edi
push ebp
lea edx, [esp + 0x14]
push edx
push 0x34
lea eax, [esi + 0x468]
push eax
mov eax, dword [esi + 0x24]
push eax
call edi
mov edx, dword [esi + 0x24]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x34
lea eax, [esi + 0x49c]
push eax
push edx
call edi
mov ecx, dword [esi + 0x24]
push ebp
lea eax, [esp + 0x14]
push eax
push 0x20
push ebx
push ecx
call edi
test dword [esi + 0x48c], 0x1ff
jle 0x402529
lea ebx, [esi + 0x4f0]
mov eax, dword [esi + 0x24]
push 0
lea edx, [esp + 0x14]
push edx
push 0x14
push ebx
push eax
call edi
mov ecx, dword [esi + 0x48c]
inc ebp
and ecx, 0x1ff
add ebx, 0x14
cmp ebp, ecx
jl 0x402503
xor ebp, ebp
mov eax, dword [esi + 0x7804]
mov ecx, dword [esi + 0x24]
push ebp
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esi + 0x5804]
push eax
push ecx
call edi
mov ecx, dword [esi + 0x24]
push ebp
lea edx, [esp + 0x14]
push edx
push 0x28
lea eax, [esi + 0x18f0]
push eax
push ecx
call edi
mov ecx, dword [esi + 0x24]
push ebp
lea edx, [esp + 0x14]
push edx
push 0x20
lea eax, [esi + 0x1ac4]
push eax
push ecx
call edi
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00401a50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0xc