Function at 0x403180
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, esi
call fcn.004030c0
lea ecx, [esi + 0x448]
mov eax, 0x20202020
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push 9
mov dword [ecx + 0xc], eax
push str.ADCLABFFS
mov dword [ecx + 0x10], eax
push ecx
mov dword [ecx + 0x14], eax
call fcn.0043c670
lea ecx, [esi + 0x468]
mov eax, 0x20202020
xor ebx, ebx
mov dword [esi + 0x460], ebx
mov dword [esi + 0x464], ebx
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.0043c670
mov edi, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
add esp, 0x18
cmp edi, ebx
mov ebp, 0x14
mov dword [esi + 0x480], ebp
mov dword [esi + 0x484], ebx
mov dword [esi + 0x488], 7
mov dword [esp + 0x10], edi
mov eax, ecx
je 0x403229
cdq
idiv edi
mov dl, byte [esi + 0x781c]
test dl, dl
je 0x403292
movzx ecx, dl
mov edx, 1
test dl, cl
mov dword [esp + 0x10], ebx
je 0x403247
mov dword [esp + 0x10], edx
test cl, 2
je 0x403250
add dword [esp + 0x10], edx
test cl, 4
je 0x403259
add dword [esp + 0x10], edx
test cl, 8
je 0x403262
add dword [esp + 0x10], edx
test cl, 0x10
je 0x40326b
add dword [esp + 0x10], edx
test cl, 0x20
je 0x403274
add dword [esp + 0x10], edx
test cl, 0x40
je 0x40327d
add dword [esp + 0x10], edx
test cl, cl
jns 0x403285
add dword [esp + 0x10], edx
mov edi, dword [esp + 0x10]
mov ecx, eax
imul ecx, dword [esp + 0x10]
jmp 0x403297
mov edx, 1
cmp edi, edx
jne 0x4032a3
mov dword [esp + 0x10], ebx
mov ecx, eax
mov edi, ebx
fld dword [esi + 0x4ff0]
mov eax, dword [esp + 0x3c]
fidiv dword [esp + 0x30]
mov edx, edi
shl edx, 0x10
or edx, ecx
cmp eax, ebx
mov dword [esi + 0x48c], edx
fstp qword [esi + 0x490]
je 0x4032d0
fld dword [eax]
fstp qword [esi + 0x490]
lea ecx, [esi + 0x49c]
mov eax, 0x20202020
mov byte [esi + 0x498], 1
mov byte [esi + 0x499], bl
mov byte [esi + 0x49a], bl
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push ebp
mov dword [ecx + 0xc], eax
push str.CHANNELS_INFO_HEADER
mov dword [ecx + 0x10], eax
push ecx
mov dword [ecx + 0x14], eax
call fcn.0043c670
mov dword [esi + 0x4b4], ebp
xor ecx, ecx
add esp, 0xc
xor ebp, ebp
cmp dword [esi + 0x2c], ebx
mov dword [esi + 0x4b8], ebx
mov dword [esi + 0x4bc], 3
mov dword [esp + 0x30], ecx
jle 0x4033f7
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x4f4]
sub ecx, ebx
mov dword [esp + 0x3c], eax
mov edi, eax
mov dword [esp + 0x38], ecx
nop
mov edx, dword [esp + 0x2c]
cmp word [edx], 0x7e
jne 0x403366
mov edx, dword [esi + 0x7814]
cmp dword [edx + ebp*4], 0
je 0x4033db
cmp byte [esi + 0x781c], 0
je 0x403390
mov eax, ebp
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
mov al, byte [esi + 0x781c]
shl edx, cl
mov ecx, dword [esp + 0x38]
test al, dl
mov eax, dword [esp + 0x3c]
je 0x4033db
mov edx, dword [edi - 4]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x34]
test edx, edx
je 0x4033a7
fld dword [ecx + ebx]
fmul qword [edi]
fadd dword [ebx]
jmp 0x4033a9
fld qword [edi]
test edx, edx
fstp dword [esp + 0x3c]
je 0x4033bb
fld dword [ecx + ebx]
fmul qword [edi + 8]
fadd dword [ebx]
jmp 0x4033be
fld qword [edi + 8]
fld dword [esp + 0x3c]
add dword [esp + 0x30], 1
fstp qword [eax]
add eax, 0x14
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
fstp qword [eax - 0xc]
add ebp, 1
add ebx, 4
add edi, 0x14
cmp ebp, dword [esi + 0x2c]
jl 0x403350
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
xor ebx, ebx
mov al, byte [esi + 0x781c]
test al, al
jne 0x40340f
cmp dword [esi + 0x30], 1
jne 0x40340d
mov dword [esi + 0x48c], ecx
test al, al
jbe 0x40341b
cmp edi, ebx
jne 0x40341b
mov dword [esi + 0x48c], ecx
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.0043c670
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.0043d40e
mov eax, dword [esi + 0x7804]
lea edi, [eax + esi + 0x5804]
add eax, 4
mov dword [esi + 0x7804], eax
mov dword [edi], 1
mov eax, dword [esi + 0x7804]
lea ecx, [eax + 4]
mov dword [esi + 0x7804], ecx
or dword [edi], 2
mov edx, dword [esi + 0x7804]
add esp, 0x18
cmp byte [esi + 0x781c], 0
lea ecx, [edx + esi + 0x5804]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
je 0x4034d7
mov dword [eax + esi + 0x5804], ebx
xor eax, eax
cmp dword [esi + 0x2c], eax
mov dword [esp + 0x30], eax
jle 0x403552
mov edx, dword [esp + 0x2c]
cmp word [edx], 0x7e
jne 0x4034f8
mov ecx, dword [esi + 0x7814]
cmp dword [ecx + ebx*4], 0
je 0x40354a
cmp byte [esi + 0x781c], 0
je 0x40351e
mov eax, ebx
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
mov al, byte [esi + 0x781c]
shl edx, cl
test al, dl
mov eax, dword [esp + 0x30]
je 0x40354a
mov ecx, dword [esi + 0x7808]
cmp dword [ecx], ebx
jne 0x403533
mov edx, dword [esp + 0x34]
mov dword [edx + esi + 0x5804], eax
mov ecx, dword [esi + 0x780c]
mov edx, dword [ecx + ebx*4]
mov ecx, dword [esp + 0x3c]
mov dword [ecx + eax*4], edx
add eax, 1
mov dword [esp + 0x30], eax
add ebx, 1
cmp ebx, dword [esi + 0x2c]
jl 0x4034e2
mov ecx, dword [esp + 0x2c]
lea edx, [eax*4]
add dword [esi + 0x7804], edx
or dword [edi], 4
cmp word [ecx], 0x7e
mov eax, dword [edi]
je 0x403573
or eax, 0x10
mov dword [edi], eax
mov edx, dword [esi + 0x7804]
xor ecx, ecx
lea eax, [edx + esi + 0x5804]
xor ebx, ebx
cmp dword [esi + 0x2c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
jle 0x403609
mov edx, dword [esp + 0x2c]
cmp word [edx], 0x7e
jne 0x4035a7
mov eax, dword [esi + 0x7814]
cmp dword [eax + ebx*4], 0
je 0x403601
cmp byte [esi + 0x781c], 0
je 0x4035cd
mov eax, ebx
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
mov al, byte [esi + 0x781c]
shl edx, cl
mov ecx, dword [esp + 0x30]
test al, dl
je 0x403601
mov eax, dword [esi + 0x7810]
mov edx, dword [esp + 0x34]
mov eax, dword [eax + ebx*4]
mov dword [edx + ecx*4], eax
mov edx, dword [edi]
or edx, 0x10
je 0x4035fa
mov edx, dword [esi + 0x7814]
cmp dword [edx + ebx*4], 0
jne 0x4035fa
mov edx, dword [esp + 0x34]
or eax, 0x10
mov dword [edx + ecx*4], eax
add ecx, 1
mov dword [esp + 0x30], ecx
add ebx, 1
cmp ebx, dword [esi + 0x2c]
jl 0x403591
push 0
push 0x20
lea eax, [ecx*4]
add dword [esi + 0x7804], eax
mov eax, dword [esi + 0x7804]
mov ecx, dword [esp + 0x34]
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 0x403656
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x18]
push edx
push 0x20
lea ecx, [esi + 0x448]
push ecx
push eax
call edi
mov ecx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x18]
push eax
push 0x34
lea eax, [esi + 0x468]
push eax
push ecx
call edi
push 0
lea edx, [esp + 0x18]
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 + 0x18]
push ecx
push 0x20
push ebp
push edx
call edi
xor ebp, ebp
test dword [esi + 0x48c], 0x1ff
jle 0x4036e6
lea ebx, [esi + 0x4f0]
nop
mov ecx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x18]
push eax
push 0x14
push ebx
push ecx
call edi
mov edx, dword [esi + 0x48c]
add ebp, 1
and edx, 0x1ff
add ebx, 0x14
cmp ebp, edx
jl 0x4036c0
mov ecx, dword [esi + 0x7804]
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esi + 0x5804]
push eax
push edx
call edi
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x18]
push eax
push 0x28
lea ecx, [esi + 0x18f0]
push ecx
push edx
call edi
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x18]
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
mov byte [esi + 0x781c], 0
call fcn.00403000
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x14