Function at 0x402d29
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, eax
mov eax, esi
call fcn.00402773
lea eax, [esi + 0x448]
push str.ADCLABFFS
push eax
call fcn.00401318
lea eax, [esi + 0x468]
push str.SAMPLES_FORMAT
xor ebx, ebx
push eax
mov dword [esi + 0x460], ebx
mov dword [esi + 0x464], ebx
call fcn.00401318
fldz
fcomp dword [ebp + 0xc]
mov dword [esi + 0x480], 0x14
mov dword [esi + 0x484], ebx
mov dword [esi + 0x488], 7
mov eax, dword [edi]
mov dword [esi + 0x48c], eax
fnstsw ax
test ah, 0x44
jp 0x402d9e
fld dword [esi + 0x4ff0]
jmp 0x402da1
fld dword [ebp + 0xc]
fstp dword [ebp + 0xc]
lea eax, [esi + 0x49c]
fld dword [ebp + 0xc]
push str.CHANNELS_INFO_HEADER
push eax
fstp qword [esi + 0x490]
mov byte [esi + 0x498], 1
mov byte [esi + 0x499], bl
mov byte [esi + 0x49a], bl
call fcn.00401318
mov dword [esi + 0x4b4], 0x14
mov dword [esi + 0x4b8], ebx
mov dword [esi + 0x4bc], 3
xor edx, edx
cmp dword [edi], ebx
jle 0x402e15
lea ecx, [edi + 0x184]
lea eax, [esi + 0x4f4]
inc edx
mov dword [eax - 4], edx
fld dword [ecx - 0x80]
fstp qword [eax]
add eax, 0x14
fld dword [ecx]
add ecx, 4
fstp qword [eax - 0xc]
cmp edx, dword [edi]
jl 0x402dfd
lea eax, [esi + 0x4d0]
push str.CHANNELS_INFO
push eax
call fcn.00401318
mov eax, dword [esi + 0x48c]
and eax, 0x1ff
imul eax, eax, 0x14
cdq
push str.ADCBLOCK
mov dword [esi + 0x4e8], eax
lea eax, [esi + 0x5804]
push 9
push eax
mov dword [esi + 0x4ec], edx
mov dword [esi + 0x7804], 8
call fcn.004206a1
mov ecx, dword [esi + 0x7804]
lea eax, [ecx + esi + 0x5804]
add ecx, 4
mov dword [esi + 0x7804], ecx
add esp, 0xc
mov dword [eax], 1
cmp dword [edi + 0x384], ebx
je 0x402e8b
mov dword [eax], 9
mov ecx, dword [esi + 0x7804]
lea edx, [ecx + esi + 0x5804]
add ecx, 4
mov dword [esi + 0x7804], ecx
or dword [eax], 2
mov ecx, dword [esi + 0x7804]
mov dword [edx], ebx
cmp dword [edi], ebx
lea ecx, [esi + ecx + 0x5804]
jle 0x402ed3
lea edx, [edi + 0x204]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add dword [ebp + 0xc], 4
mov dword [ecx + ebx*4], edx
inc ebx
cmp ebx, dword [edi]
jl 0x402ec0
xor ebx, ebx
mov ecx, dword [edi]
shl ecx, 2
add dword [esi + 0x7804], ecx
or dword [eax], 4
mov eax, dword [esi + 0x7804]
lea ecx, [esi + eax + 0x5804]
xor eax, eax
cmp dword [edi], ebx
jle 0x402f0e
lea edx, [edi + 0x304]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add dword [ebp + 0xc], 4
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi]
jl 0x402efd
mov eax, dword [edi]
push ebx
push 0x20
shl eax, 2
add dword [esi + 0x7804], eax
mov eax, dword [esi + 0x7804]
push 2
push ebx
cdq
add dword [esi + 0x4e8], eax
push ebx
push 0x40000000
push dword [ebp + 8]
adc dword [esi + 0x4ec], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x402f50
xor eax, eax
jmp 0x40302e
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [ebp - 4]
push ecx
push 0x20
lea ecx, [esi + 0x448]
push ecx
push eax
call edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x34
lea eax, [esi + 0x468]
push eax
push dword [esi + 0x24]
call edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x34
lea eax, [esi + 0x49c]
push eax
push dword [esi + 0x24]
call edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x20
lea eax, [esi + 0x4d0]
push eax
push dword [esi + 0x24]
call edi
test dword [esi + 0x48c], 0x1ff
mov dword [ebp + 8], ebx
jle 0x402fde
lea eax, [esi + 0x4f0]
mov dword [ebp + 0xc], eax
push ebx
lea eax, [ebp - 4]
push eax
push 0x14
push dword [ebp + 0xc]
push dword [esi + 0x24]
call edi
mov eax, dword [esi + 0x48c]
inc dword [ebp + 8]
add dword [ebp + 0xc], 0x14
and eax, 0x1ff
cmp dword [ebp + 8], eax
jl 0x402fb8
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi + 0x7804]
lea eax, [esi + 0x5804]
push eax
push dword [esi + 0x24]
call edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x28
lea eax, [esi + 0x18f0]
push eax
push dword [esi + 0x24]
call edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x20
lea eax, [esi + 0x1ac4]
push eax
push dword [esi + 0x24]
call edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.004026ba
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 8