Function at 0x403020
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebx, eax
push edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, esi
call fcn.00402f60
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.00423800
lea ecx, [esi + 0x468]
mov eax, 0x20202020
xor edi, edi
mov dword [esi + 0x460], edi
mov dword [esi + 0x464], edi
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
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x484], edi
mov edi, dword [esi + 0x30]
add esp, 0x18
test edi, edi
mov ebp, 0x14
mov dword [esi + 0x480], ebp
mov dword [esi + 0x488], 7
mov dword [esp + 0xc], edi
mov eax, ecx
je 0x4030cb
cdq
idiv edi
mov dl, byte [esi + 0x781c]
test dl, dl
je 0x403138
movzx ecx, dl
mov edx, 1
test dl, cl
mov dword [esp + 0xc], 0
je 0x4030ed
mov dword [esp + 0xc], edx
test cl, 2
je 0x4030f6
add dword [esp + 0xc], edx
test cl, 4
je 0x4030ff
add dword [esp + 0xc], edx
test cl, 8
je 0x403108
add dword [esp + 0xc], edx
test cl, 0x10
je 0x403111
add dword [esp + 0xc], edx
test cl, 0x20
je 0x40311a
add dword [esp + 0xc], edx
test cl, 0x40
je 0x403123
add dword [esp + 0xc], edx
test cl, cl
jns 0x40312b
add dword [esp + 0xc], edx
mov edi, dword [esp + 0xc]
mov ecx, eax
imul ecx, dword [esp + 0xc]
jmp 0x40313d
mov edx, 1
cmp edi, edx
jne 0x40314f
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0xc]
mov ecx, eax
fld dword [esi + 0x4ff0]
mov edx, edi
fidiv dword [esp + 0x34]
shl edx, 0x10
or edx, ecx
test ebx, ebx
mov dword [esi + 0x48c], edx
fstp qword [esi + 0x490]
je 0x403178
fld dword [ebx]
fstp qword [esi + 0x490]
lea ecx, [esi + 0x49c]
mov eax, 0x20202020
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 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.00423800
mov dword [esi + 0x4b4], ebp
xor ebp, ebp
xor ecx, ecx
add esp, 0xc
cmp dword [esi + 0x2c], ebp
mov dword [esi + 0x4b8], ebp
mov dword [esi + 0x4bc], 3
mov dword [esp + 0x34], ecx
jle 0x4032a5
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea eax, [esi + 0x4f4]
sub ecx, ebx
mov dword [esp + 0x3c], eax
mov edi, eax
mov dword [esp + 0x14], ecx
lea esp, [esp]
mov edx, dword [esp + 0x30]
cmp word [edx], 0x7e
jne 0x403216
mov edx, dword [esi + 0x7814]
cmp dword [edx + ebp*4], 0
je 0x40328b
cmp byte [esi + 0x781c], 0
je 0x403240
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 + 0x14]
test al, dl
mov eax, dword [esp + 0x3c]
je 0x40328b
mov edx, dword [edi - 4]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x403257
fld dword [ecx + ebx]
fmul qword [edi]
fadd dword [ebx]
jmp 0x403259
fld qword [edi]
test edx, edx
fstp dword [esp + 0x3c]
je 0x40326b
fld dword [ecx + ebx]
fmul qword [edi + 8]
fadd dword [ebx]
jmp 0x40326e
fld qword [edi + 8]
fld dword [esp + 0x3c]
add dword [esp + 0x34], 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 0x403200
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
mov al, byte [esi + 0x781c]
test al, al
jne 0x4032bd
cmp dword [esi + 0x30], 1
jne 0x4032bb
mov dword [esi + 0x48c], ecx
test al, al
jbe 0x4032c9
test edi, edi
jne 0x4032c9
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.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 eax, dword [str.ADCBLOCK]
mov dword [esi + 0x5804], eax
mov ecx, dword [0x442174]
mov dword [esi + 0x7804], 0xc
mov dword [esi + 0x5808], ecx
mov dword [esi + 0x580c], 1
mov eax, dword [esi + 0x7804]
lea ecx, [eax + 4]
mov dword [esi + 0x7804], ecx
or dword [esi + 0x580c], 2
mov edx, dword [esi + 0x7804]
add esp, 0xc
cmp byte [esi + 0x781c], 0
lea ecx, [edx + esi + 0x5804]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
je 0x403389
mov dword [eax + esi + 0x5804], 0
xor eax, eax
xor edi, edi
cmp dword [esi + 0x2c], eax
mov dword [esp + 0x34], eax
jle 0x403401
mov edx, dword [esp + 0x30]
cmp word [edx], 0x7e
jne 0x4033ac
mov ecx, dword [esi + 0x7814]
cmp dword [ecx + edi*4], 0
je 0x4033f9
mov bl, byte [esi + 0x781c]
test bl, bl
je 0x4033cd
mov eax, edi
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
mov eax, dword [esp + 0x34]
shl edx, cl
test bl, dl
je 0x4033f9
mov ecx, dword [esi + 0x7808]
cmp dword [ecx], edi
jne 0x4033e2
mov edx, dword [esp + 0x38]
mov dword [edx + esi + 0x5804], eax
mov ecx, dword [esi + 0x780c]
mov edx, dword [ecx + edi*4]
mov ecx, dword [esp + 0x3c]
mov dword [ecx + eax*4], edx
add eax, 1
mov dword [esp + 0x34], eax
add edi, 1
cmp edi, dword [esi + 0x2c]
jl 0x403396
mov ecx, dword [esp + 0x30]
lea edx, [eax*4]
add dword [esi + 0x7804], edx
or dword [esi + 0x580c], 4
cmp word [ecx], 0x7e
mov eax, dword [esi + 0x580c]
je 0x40342e
or eax, 0x10
mov dword [esi + 0x580c], eax
mov edx, dword [esi + 0x7804]
xor edi, edi
cmp dword [esi + 0x2c], edi
lea eax, [edx + esi + 0x5804]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edi
jle 0x4034bd
mov ecx, dword [esp + 0x30]
cmp word [ecx], 0x7e
jne 0x403460
mov edx, dword [esi + 0x7814]
cmp dword [edx + edi*4], 0
je 0x4034b5
mov bl, byte [esi + 0x781c]
test bl, bl
je 0x40347d
mov eax, edi
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
shl edx, cl
test bl, dl
je 0x4034b5
mov eax, dword [esi + 0x7810]
mov eax, dword [eax + edi*4]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [edx + ecx*4], eax
mov ebx, dword [esi + 0x580c]
or ebx, 0x10
je 0x4034ae
mov ebx, dword [esi + 0x7814]
cmp dword [ebx + edi*4], 0
jne 0x4034ae
or eax, 0x10
mov dword [edx + ecx*4], eax
add ecx, 1
mov dword [esp + 0x34], ecx
add edi, 1
cmp edi, dword [esi + 0x2c]
jl 0x40344a
mov ecx, dword [esp + 0x34]
push 0
push 0x20
lea edx, [ecx*4]
add dword [esi + 0x7804], edx
mov eax, dword [esi + 0x7804]
push 2
cdq
add dword [esi + 0x4e8], eax
mov eax, dword [esp + 0x3c]
push 0
adc dword [esi + 0x4ec], edx
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x40350e
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x20
ret 0x10
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x20
lea ecx, [esi + 0x448]
push ecx
push eax
call edi
push 0
lea edx, [esp + 0x14]
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 0
lea ecx, [esp + 0x14]
push ecx
push 0x34
lea eax, [esi + 0x49c]
push eax
push edx
call edi
mov ecx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push 0x20
push ebp
push ecx
call edi
xor ebp, ebp
test dword [esi + 0x48c], 0x1ff
jle 0x40359d
lea ebx, [esi + 0x4f0]
mov eax, dword [esi + 0x24]
push 0
lea edx, [esp + 0x14]
push edx
push 0x14
push ebx
push eax
call edi
mov ecx, dword [esi + 0x48c]
add ebp, 1
and ecx, 0x1ff
add ebx, 0x14
cmp ebp, ecx
jl 0x403577
mov eax, dword [esi + 0x7804]
mov ecx, dword [esi + 0x24]
push 0
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esi + 0x5804]
push eax
push ecx
call edi
mov ecx, dword [esi + 0x24]
push 0
lea edx, [esp + 0x14]
push edx
push 0x28
lea eax, [esi + 0x18f0]
push eax
push ecx
call edi
mov ecx, dword [esi + 0x24]
push 0
lea edx, [esp + 0x14]
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
mov byte [esi + 0x781c], 0
call fcn.00402ea0
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 0x10