Function at 0x40282c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, esi
call fcn.00402773
lea eax, [esi + 0x448]
push str.ADCLABFFS
push eax
call fcn.00401318
lea eax, [esi + 0x468]
push str.SAMPLES_FORMAT
xor ebx, ebx
push eax
mov dword [esi + 0x460], ebx
mov dword [esi + 0x464], ebx
call fcn.00401318
mov eax, dword [esi + 0x30]
cmp eax, ebx
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x480], 0x14
mov dword [esi + 0x484], ebx
mov dword [esi + 0x488], 7
mov dword [ebp - 4], eax
je 0x4028a7
mov eax, ecx
cdq
idiv dword [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x4028aa
mov dword [ebp - 0xc], ecx
mov dl, byte [esi + 0x781c]
cmp dl, bl
je 0x4028d5
mov dword [ebp - 4], ebx
xor ecx, ecx
movzx edx, dl
xor eax, eax
inc eax
shl eax, cl
test edx, eax
je 0x4028c8
inc dword [ebp - 4]
inc ecx
cmp ecx, 8
jl 0x4028bc
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 4]
cmp dword [ebp - 4], 1
jne 0x4028e1
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
fld dword [esi + 0x4ff0]
mov eax, dword [ebp - 4]
fidiv dword [ebp + 0xc]
shl eax, 0x10
or eax, ecx
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
mov dword [esi + 0x48c], eax
lea eax, [esi + 0x490]
fstp qword [eax]
je 0x40290b
fld dword [ecx]
fstp qword [eax]
lea eax, [esi + 0x49c]
push str.CHANNELS_INFO_HEADER
push eax
mov byte [esi + 0x498], 1
mov byte [esi + 0x499], bl
mov byte [esi + 0x49a], bl
call fcn.00401318
xor ecx, ecx
cmp dword [esi + 0x2c], ebx
mov dword [esi + 0x4b4], 0x14
mov dword [esi + 0x4b8], ebx
mov dword [esi + 0x4bc], 3
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0xc], ebx
jle 0x402a12
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0x14]
lea edi, [esi + 0x4f4]
mov dword [ebp - 0xc], eax
mov eax, edi
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x7e
jne 0x40298b
mov ecx, dword [esi + 0x7814]
mov edx, dword [ebp + 0xc]
cmp dword [ecx + edx*4], ebx
je 0x4029f6
cmp byte [esi + 0x781c], bl
je 0x4029ae
mov eax, dword [ebp + 0xc]
cdq
idiv dword [esi + 0x34]
xor edx, edx
inc edx
mov ecx, eax
mov al, byte [esi + 0x781c]
shl edx, cl
test al, dl
mov eax, dword [ebp - 0x10]
je 0x4029f6
cmp dword [ebp + 0x10], ebx
mov ecx, dword [eax - 4]
mov dword [edi - 4], ecx
mov ecx, dword [ebp - 0xc]
je 0x4029c8
mov edx, dword [ebp + 0x14]
fld dword [ecx + edx]
fmul qword [eax]
fadd dword [ecx]
jmp 0x4029ca
fld qword [eax]
cmp dword [ebp + 0x10], ebx
fstp dword [ebp - 0x10]
je 0x4029df
mov edx, dword [ebp + 0x14]
fld dword [ecx + edx]
fmul qword [eax + 8]
fadd dword [ecx]
jmp 0x4029e2
fld qword [eax + 8]
fld dword [ebp - 0x10]
inc dword [ebp + 0x18]
fstp qword [edi]
add edi, 0x14
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fstp qword [edi - 0xc]
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add dword [ebp - 0xc], 4
add eax, 0x14
cmp ecx, dword [esi + 0x2c]
mov dword [ebp - 0x10], eax
jl 0x402974
mov ecx, dword [ebp + 0x18]
mov al, byte [esi + 0x781c]
cmp al, bl
jne 0x402a2a
cmp dword [esi + 0x30], 1
jne 0x402a28
mov dword [esi + 0x48c], ecx
cmp al, bl
jbe 0x402a37
cmp dword [ebp - 4], ebx
jne 0x402a37
mov dword [esi + 0x48c], ecx
lea eax, [esi + 0x4d0]
push str.CHANNELS_INFO
push eax
call fcn.00401318
mov eax, dword [esi + 0x48c]
and eax, 0x1ff
imul eax, eax, 0x14
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.004206a1
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 + esi + 0x5804]
add eax, 4
mov dword [esi + 0x7804], eax
or dword [edi], 2
mov eax, dword [esi + 0x7804]
add esp, 0xc
cmp byte [esi + 0x781c], bl
lea eax, [eax + esi + 0x5804]
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x14], eax
je 0x402ad5
mov dword [ecx], ebx
xor eax, eax
cmp dword [esi + 0x2c], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0xc], eax
jle 0x402b49
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x7e
jne 0x402af6
mov ecx, dword [esi + 0x7814]
cmp dword [ecx + eax*4], ebx
je 0x402b3d
cmp byte [esi + 0x781c], bl
je 0x402b13
cdq
idiv dword [esi + 0x34]
xor edx, edx
inc edx
mov ecx, eax
mov al, byte [esi + 0x781c]
shl edx, cl
test al, dl
je 0x402b3d
mov ecx, dword [esi + 0x7808]
mov eax, dword [ebp + 0xc]
cmp dword [ecx], eax
jne 0x402b28
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov dword [ecx], edx
mov ecx, dword [esi + 0x780c]
mov eax, dword [ecx + eax*4]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0x18]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 0xc]
inc eax
cmp eax, dword [esi + 0x2c]
mov dword [ebp + 0xc], eax
jl 0x402ae2
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
shl eax, 2
add dword [esi + 0x7804], eax
or dword [edi], 4
cmp word [ecx], 0x7e
mov eax, dword [edi]
je 0x402b68
or eax, 0x10
mov dword [edi], eax
mov eax, dword [esi + 0x7804]
lea eax, [eax + esi + 0x5804]
mov dword [ebp + 0x10], eax
xor eax, eax
cmp dword [esi + 0x2c], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0xc], eax
jle 0x402bfc
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x7e
jne 0x402b99
mov ecx, dword [esi + 0x7814]
cmp dword [ecx + eax*4], ebx
je 0x402bf0
cmp byte [esi + 0x781c], bl
je 0x402bb6
cdq
idiv dword [esi + 0x34]
xor edx, edx
inc edx
mov ecx, eax
mov al, byte [esi + 0x781c]
shl edx, cl
test al, dl
je 0x402bf0
mov eax, dword [esi + 0x7810]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
lea ecx, [ecx + edx*4]
mov dword [ebp + 0x14], ecx
mov dword [ecx], eax
mov ecx, dword [edi]
or ecx, 0x10
je 0x402bed
mov ecx, dword [esi + 0x7814]
mov edx, dword [ebp + 0xc]
cmp dword [ecx + edx*4], ebx
jne 0x402bed
mov ecx, dword [ebp + 0x14]
or eax, 0x10
mov dword [ecx], eax
inc dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
inc eax
cmp eax, dword [esi + 0x2c]
mov dword [ebp + 0xc], eax
jl 0x402b85
mov eax, dword [ebp + 0x18]
push ebx
push 0x20
shl eax, 2
add dword [esi + 0x7804], eax
mov eax, dword [esi + 0x7804]
push 2
push ebx
cdq
add dword [esi + 0x4e8], eax
push ebx
push 0x40000000
push dword [ebp + 8]
adc dword [esi + 0x4ec], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x402c3f
xor eax, eax
jmp 0x402d23
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [ebp - 8]
push ecx
push 0x20
lea ecx, [esi + 0x448]
push ecx
push eax
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 0x34
lea eax, [esi + 0x468]
push eax
push dword [esi + 0x24]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 0x34
lea eax, [esi + 0x49c]
push eax
push dword [esi + 0x24]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 0x20
lea eax, [esi + 0x4d0]
push eax
push dword [esi + 0x24]
call edi
test dword [esi + 0x48c], 0x1ff
mov dword [ebp + 0xc], ebx
jle 0x402ccd
lea eax, [esi + 0x4f0]
mov dword [ebp + 8], eax
push ebx
lea eax, [ebp - 8]
push eax
push 0x14
push dword [ebp + 8]
push dword [esi + 0x24]
call edi
mov eax, dword [esi + 0x48c]
inc dword [ebp + 0xc]
add dword [ebp + 8], 0x14
and eax, 0x1ff
cmp dword [ebp + 0xc], eax
jl 0x402ca7
push ebx
lea eax, [ebp - 8]
push eax
push dword [esi + 0x7804]
lea eax, [esi + 0x5804]
push eax
push dword [esi + 0x24]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 0x28
lea eax, [esi + 0x18f0]
push eax
push dword [esi + 0x24]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 0x20
lea eax, [esi + 0x1ac4]
push eax
push dword [esi + 0x24]
call edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov byte [esi + 0x781c], bl
call fcn.004026ba
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 0x14