Function at 0x401c90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, esi
call fcn.00401bd0
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.00423970
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.00423970
mov edi, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
add esp, 0x18
cmp edi, ebp
mov ebx, 0x14
mov dword [esi + 0x480], ebx
mov dword [esi + 0x484], ebp
mov dword [esi + 0x488], 7
mov dword [esp + 0x10], edi
mov eax, ecx
je 0x401d3c
cdq
idiv edi
mov dl, byte [esi + 0x781c]
test dl, dl
je 0x401da5
movzx ecx, dl
mov edx, 1
test dl, cl
mov dword [esp + 0x10], ebp
je 0x401d5a
mov dword [esp + 0x10], edx
test cl, 2
je 0x401d63
add dword [esp + 0x10], edx
test cl, 4
je 0x401d6c
add dword [esp + 0x10], edx
test cl, 8
je 0x401d75
add dword [esp + 0x10], edx
test cl, 0x10
je 0x401d7e
add dword [esp + 0x10], edx
test cl, 0x20
je 0x401d87
add dword [esp + 0x10], edx
test cl, 0x40
je 0x401d90
add dword [esp + 0x10], edx
test cl, cl
jns 0x401d98
add dword [esp + 0x10], edx
mov edi, dword [esp + 0x10]
mov ecx, eax
imul ecx, dword [esp + 0x10]
jmp 0x401daa
mov edx, 1
cmp edi, edx
jne 0x401db6
mov dword [esp + 0x10], ebp
mov ecx, eax
mov edi, ebp
fld dword [esi + 0x4ff0]
mov eax, dword [esp + 0x3c]
fidiv dword [esp + 0x30]
mov edx, edi
shl edx, 0x10
or edx, ecx
cmp eax, ebp
mov dword [esi + 0x48c], edx
fstp qword [esi + 0x490]
je 0x401de3
fld dword [eax]
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 ebx
mov dword [ecx + 0xc], eax
push str.CHANNELS_INFO_HEADER
mov dword [ecx + 0x10], eax
push ecx
mov dword [ecx + 0x14], eax
call fcn.00423970
xor ecx, ecx
add esp, 0xc
cmp dword [esi + 0x2c], ecx
mov dword [esi + 0x4b4], ebx
mov dword [esi + 0x4b8], ebp
mov dword [esi + 0x4bc], 3
mov dword [esp + 0x30], ecx
jle 0x401f07
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
mov edx, dword [esp + 0x2c]
cmp word [edx], 0x7e
jne 0x401e78
mov edx, dword [esi + 0x7814]
cmp dword [edx + ebp*4], 0
je 0x401eed
cmp byte [esi + 0x781c], 0
je 0x401ea2
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 0x401eed
mov edx, dword [edi - 4]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x34]
test edx, edx
je 0x401eb9
fld dword [ecx + ebx]
fmul qword [edi]
fadd dword [ebx]
jmp 0x401ebb
fld qword [edi]
test edx, edx
fstp dword [esp + 0x3c]
je 0x401ecd
fld dword [ecx + ebx]
fmul qword [edi + 8]
fadd dword [ebx]
jmp 0x401ed0
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 0x401e62
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov al, byte [esi + 0x781c]
test al, al
jne 0x401f1f
cmp dword [esi + 0x30], 1
jne 0x401f1d
mov dword [esi + 0x48c], ecx
test al, al
jbe 0x401f2b
test edi, edi
jne 0x401f2b
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.00423970
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 [0x43d5f0]
mov dword [esi + 0x5804], eax
mov ecx, dword [0x43d5f4]
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 + 0x34], eax
mov dword [esp + 0x3c], ecx
je 0x401feb
mov dword [eax + esi + 0x5804], 0
xor eax, eax
xor edi, edi
cmp dword [esi + 0x2c], eax
mov dword [esp + 0x30], eax
jle 0x40206b
jmp 0x402000
mov edx, dword [esp + 0x2c]
cmp word [edx], 0x7e
jne 0x402016
mov ecx, dword [esi + 0x7814]
cmp dword [ecx + edi*4], 0
je 0x402063
mov bl, byte [esi + 0x781c]
test bl, bl
je 0x402037
mov eax, edi
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
mov eax, dword [esp + 0x30]
shl edx, cl
test bl, dl
je 0x402063
mov ecx, dword [esi + 0x7808]
cmp dword [ecx], edi
jne 0x40204c
mov edx, dword [esp + 0x34]
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 + 0x30], eax
add edi, 1
cmp edi, dword [esi + 0x2c]
jl 0x402000
mov ecx, dword [esp + 0x2c]
lea edx, [eax*4]
add dword [esi + 0x7804], edx
or dword [esi + 0x580c], 4
cmp word [ecx], 0x7e
mov eax, dword [esi + 0x580c]
je 0x402098
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 + 0x34], eax
mov dword [esp + 0x30], edi
jle 0x402127
mov ecx, dword [esp + 0x2c]
cmp word [ecx], 0x7e
jne 0x4020ca
mov edx, dword [esi + 0x7814]
cmp dword [edx + edi*4], 0
je 0x40211f
mov bl, byte [esi + 0x781c]
test bl, bl
je 0x4020e7
mov eax, edi
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
shl edx, cl
test bl, dl
je 0x40211f
mov eax, dword [esi + 0x7810]
mov eax, dword [eax + edi*4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [edx + ecx*4], eax
mov ebx, dword [esi + 0x580c]
or ebx, 0x10
je 0x402118
mov ebx, dword [esi + 0x7814]
cmp dword [ebx + edi*4], 0
jne 0x402118
or eax, 0x10
mov dword [edx + ecx*4], eax
add ecx, 1
mov dword [esp + 0x30], ecx
add edi, 1
cmp edi, dword [esi + 0x2c]
jl 0x4020b4
mov ecx, dword [esp + 0x30]
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 + 0x38]
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 0x402179
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0x14
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x20
lea ecx, [esi + 0x448]
push ecx
push eax
call edi
push 0
lea edx, [esp + 0x18]
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 + 0x18]
push ecx
push 0x34
lea eax, [esi + 0x49c]
push eax
push edx
call edi
mov ecx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x18]
push eax
push 0x20
push ebp
push ecx
call edi
xor ebp, ebp
test dword [esi + 0x48c], 0x1ff
jle 0x402208
lea ebx, [esi + 0x4f0]
mov eax, dword [esi + 0x24]
push 0
lea edx, [esp + 0x18]
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 0x4021e2
mov eax, dword [esi + 0x7804]
mov ecx, dword [esi + 0x24]
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esi + 0x5804]
push eax
push ecx
call edi
mov ecx, dword [esi + 0x24]
push 0
lea edx, [esp + 0x18]
push edx
push 0x28
lea eax, [esi + 0x18f0]
push eax
push ecx
call edi
mov ecx, dword [esi + 0x24]
push 0
lea edx, [esp + 0x18]
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 ecx, esi
mov byte [esi + 0x781c], 0
call fcn.00401b10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 0x14