Function at 0x403170
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.004030b0
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.0043b730
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.0043b730
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 0x403219
cdq
idiv edi
mov dl, byte [esi + 0x781c]
test dl, dl
je 0x403282
movzx ecx, dl
mov edx, 1
test dl, cl
mov dword [esp + 0x10], ebx
je 0x403237
mov dword [esp + 0x10], edx
test cl, 2
je 0x403240
add dword [esp + 0x10], edx
test cl, 4
je 0x403249
add dword [esp + 0x10], edx
test cl, 8
je 0x403252
add dword [esp + 0x10], edx
test cl, 0x10
je 0x40325b
add dword [esp + 0x10], edx
test cl, 0x20
je 0x403264
add dword [esp + 0x10], edx
test cl, 0x40
je 0x40326d
add dword [esp + 0x10], edx
test cl, cl
jns 0x403275
add dword [esp + 0x10], edx
mov edi, dword [esp + 0x10]
mov ecx, eax
imul ecx, dword [esp + 0x10]
jmp 0x403287
mov edx, 1
cmp edi, edx
jne 0x403293
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 0x4032c0
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.0043b730
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 0x4033e7
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 0x403356
mov edx, dword [esi + 0x7814]
cmp dword [edx + ebp*4], 0
je 0x4033cb
cmp byte [esi + 0x781c], 0
je 0x403380
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 0x4033cb
mov edx, dword [edi - 4]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x34]
test edx, edx
je 0x403397
fld dword [ecx + ebx]
fmul qword [edi]
fadd dword [ebx]
jmp 0x403399
fld qword [edi]
test edx, edx
fstp dword [esp + 0x3c]
je 0x4033ab
fld dword [ecx + ebx]
fmul qword [edi + 8]
fadd dword [ebx]
jmp 0x4033ae
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 0x403340
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
xor ebx, ebx
mov al, byte [esi + 0x781c]
test al, al
jne 0x4033ff
cmp dword [esi + 0x30], 1
jne 0x4033fd
mov dword [esi + 0x48c], ecx
test al, al
jbe 0x40340b
cmp edi, ebx
jne 0x40340b
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.0043b730
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.0043c4ce
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 0x4034c7
mov dword [eax + esi + 0x5804], ebx
xor eax, eax
cmp dword [esi + 0x2c], eax
mov dword [esp + 0x30], eax
jle 0x403542
mov edx, dword [esp + 0x2c]
cmp word [edx], 0x7e
jne 0x4034e8
mov ecx, dword [esi + 0x7814]
cmp dword [ecx + ebx*4], 0
je 0x40353a
cmp byte [esi + 0x781c], 0
je 0x40350e
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 0x40353a
mov ecx, dword [esi + 0x7808]
cmp dword [ecx], ebx
jne 0x403523
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 0x4034d2
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 0x403563
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 0x4035f9
mov edx, dword [esp + 0x2c]
cmp word [edx], 0x7e
jne 0x403597
mov eax, dword [esi + 0x7814]
cmp dword [eax + ebx*4], 0
je 0x4035f1
cmp byte [esi + 0x781c], 0
je 0x4035bd
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 0x4035f1
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 0x4035ea
mov edx, dword [esi + 0x7814]
cmp dword [edx + ebx*4], 0
jne 0x4035ea
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 0x403581
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 0x403646
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 0x4036d6
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 0x4036b0
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.00402ff0
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x14