Function at 0x4037f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push edi
mov edi, eax
mov eax, esi
call fcn.00403120
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.0041b7e0
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.0041b7e0
fld dword [0x433c88]
fld dword [esp + 0x30]
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 0x4038a2
fld dword [esi + 0x4ff0]
jmp 0x4038a6
fld dword [esp + 0x18]
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.0041b7e0
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 0x403930
lea edx, [edi + 0x184]
lea eax, [esi + 0x4f4]
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 0x403918
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.0041b7e0
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 [str.ADCBLOCK]
lea eax, [esi + 0x5804]
mov dword [eax], edx
mov ecx, dword [0x432a68]
mov dword [eax + 4], ecx
mov dl, byte [0x432a6c]
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 0x4039ce
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 0x403a17
lea ecx, [edi + 0x204]
mov ebp, dword [ecx]
mov dword [edx + eax*4], ebp
mov ebp, dword [edi]
inc eax
add ecx, 4
cmp eax, ebp
jl 0x403a06
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 0x403a61
lea ecx, [edi + 0x304]
lea esp, [esp]
mov ebp, dword [ecx]
mov dword [edx + eax*4], ebp
mov ebp, dword [edi]
inc eax
add ecx, 4
cmp eax, ebp
jl 0x403a50
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 + 0x24]
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 0x403ab9
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea ecx, [esp + 0x10]
push ecx
push 0x20
lea ecx, [esi + 0x448]
push ecx
push eax
call edi
push ebp
lea edx, [esp + 0x10]
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 + 0x10]
push ecx
push 0x34
lea eax, [esi + 0x49c]
push eax
push edx
call edi
mov ecx, dword [esi + 0x24]
push ebp
lea eax, [esp + 0x10]
push eax
push 0x20
push ebx
push ecx
call edi
test dword [esi + 0x48c], 0x1ff
jle 0x403b46
lea ebx, [esi + 0x4f0]
lea esp, [esp]
mov eax, dword [esi + 0x24]
push 0
lea edx, [esp + 0x10]
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 0x403b20
xor ebp, ebp
mov eax, dword [esi + 0x7804]
mov ecx, dword [esi + 0x24]
push ebp
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esi + 0x5804]
push eax
push ecx
call edi
mov ecx, dword [esi + 0x24]
push ebp
lea edx, [esp + 0x10]
push edx
push 0x28
lea eax, [esi + 0x18f0]
push eax
push ecx
call edi
mov ecx, dword [esi + 0x24]
push ebp
lea edx, [esp + 0x10]
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 eax, esi
call fcn.00403060
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8