Function at 0x403610
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push edi
mov edi, eax
mov eax, esi
call fcn.00402f60
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.00423800
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.00423800
fldz
fld dword [esp + 0x30]
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 0x4036bb
fstp st(0)
fld dword [esi + 0x4ff0]
lea ecx, [esi + 0x49c]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
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.00423800
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 0x403751
lea edx, [edi + 0x184]
lea eax, [esi + 0x4f4]
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 0x403736
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.00423800
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 [str.ADCBLOCK]
mov dword [esi + 0x5804], ecx
mov edx, dword [0x442174]
mov dword [esi + 0x5808], edx
mov dword [esi + 0x7804], 0xc
add esp, 0xc
mov dword [esi + 0x580c], 1
cmp dword [edi + 0x384], 0
je 0x4037e6
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 0x403839
lea edx, [edi + 0x204]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
add dword [esp + 0x18], 4
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi]
jl 0x403824
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 0x403885
lea edx, [edi + 0x304]
mov dword [esp + 0x18], edx
lea esp, [esp]
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
add dword [esp + 0x18], 4
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi]
jl 0x403870
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
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 0x4038cf
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
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 0x403958
lea ebp, [esi + 0x4f0]
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 0x403932
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.00402ea0
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8