Function at 0x403590
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push edi
mov edi, eax
mov eax, esi
call fcn.00402ef0
lea ebx, [esi + 0x448]
mov eax, 0x20202020
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push 9
mov dword [ebx + 0xc], eax
push str.ADCLABFFS
mov dword [ebx + 0x10], eax
push ebx
mov dword [ebx + 0x14], eax
call fcn.00423ce0
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.00423ce0
fldz
fld dword [esp + 0x34]
mov dword [esi + 0x480], 0x14
fucom st(1)
mov dword [esi + 0x484], ebp
mov dword [esi + 0x488], 7
mov eax, dword [edi]
mov dword [esi + 0x48c], eax
add esp, 0x18
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x40363d
fstp st(0)
fld dword [esi + 0x4ff0]
lea ecx, [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 [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push 0x14
mov dword [ecx + 0xc], eax
push str.CHANNELS_INFO_HEADER
mov dword [ecx + 0x10], eax
push ecx
mov dword [ecx + 0x14], eax
call fcn.00423ce0
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 0x4036db
lea edx, [edi + 0x184]
lea eax, [esi + 0x4f4]
jmp 0x4036c0
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 0x4036c0
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.00423ce0
mov eax, dword [esi + 0x48c]
and eax, 0x1ff
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
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.00424681
mov ecx, dword [esi + 0x7804]
lea eax, [ecx + esi + 0x5804]
add ecx, 4
mov dword [esi + 0x7804], ecx
add esp, 0x18
mov dword [eax], 1
cmp dword [edi + 0x384], 0
mov dword [esp + 0x10], eax
je 0x403773
mov dword [eax], 9
mov ecx, dword [esi + 0x7804]
lea edx, [ecx + 4]
mov dword [esi + 0x7804], edx
or dword [eax], 2
mov edx, dword [esi + 0x7804]
mov dword [ecx + esi + 0x5804], 0
xor ecx, ecx
cmp dword [edi], ecx
lea edx, [esi + edx + 0x5804]
jle 0x4037c9
lea eax, [edi + 0x204]
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
add dword [esp + 0x1c], 4
mov dword [edx + ecx*4], eax
add ecx, 1
cmp ecx, dword [edi]
jl 0x4037b0
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
add ecx, ecx
add ecx, ecx
add dword [esi + 0x7804], ecx
or dword [eax], 4
mov edx, dword [esi + 0x7804]
xor eax, eax
cmp dword [edi], eax
lea ecx, [esi + edx + 0x5804]
jle 0x40380a
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 0x4037f5
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 0x403856
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x10]
push edx
push 0x20
push ebx
push eax
call edi
mov ecx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x10]
push eax
push 0x34
lea eax, [esi + 0x468]
push eax
push ecx
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 0x34
lea eax, [esi + 0x49c]
push eax
mov eax, dword [esi + 0x24]
push eax
call edi
mov edx, dword [esi + 0x24]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x20
push ebp
push edx
call edi
xor ebx, ebx
test dword [esi + 0x48c], 0x1ff
jle 0x4038e6
lea ebp, [esi + 0x4f0]
lea esp, [esp]
mov ecx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x10]
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 0x4038c0
mov ecx, dword [esi + 0x7804]
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
lea eax, [esi + 0x5804]
push eax
push edx
call edi
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x10]
push eax
push 0x28
lea ecx, [esi + 0x18f0]
push ecx
push edx
call edi
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x10]
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 eax, esi
call fcn.00402e30
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 8