Function at 0x4016a0
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]
lea eax, [esi + 0x448]
mov edx, eax
mov ecx, 0x20202020
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
push 9
mov dword [edx + 0x10], ecx
push str.ADCLABFFS
push eax
mov dword [edx + 0x14], ecx
call fcn.00416550
lea eax, [esi + 0x468]
xor ebp, ebp
mov dword [esi + 0x460], ebp
mov dword [esi + 0x464], ebp
mov edx, eax
mov ecx, 0x20202020
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
push 0xe
mov dword [edx + 0x10], ecx
push str.SAMPLES_FORMAT
push eax
mov dword [edx + 0x14], ecx
call fcn.00416550
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 0x401749
cdq
idiv edi
mov dl, byte [esi + 0x4328]
test dl, dl
je 0x4017b0
movzx ecx, dl
test cl, 1
mov dword [esp + 0x10], ebp
je 0x401767
mov dword [esp + 0x10], 1
test cl, 2
je 0x401770
inc dword [esp + 0x10]
test cl, 4
je 0x401779
inc dword [esp + 0x10]
test cl, 8
je 0x401782
inc dword [esp + 0x10]
test cl, 0x10
je 0x40178b
inc dword [esp + 0x10]
test cl, 0x20
je 0x401794
inc dword [esp + 0x10]
test cl, 0x40
je 0x40179d
inc dword [esp + 0x10]
test cl, cl
jns 0x4017a5
inc dword [esp + 0x10]
mov edi, dword [esp + 0x10]
mov ecx, eax
imul ecx, dword [esp + 0x10]
cmp edi, 1
jne 0x4017bd
mov dword [esp + 0x10], ebp
mov ecx, eax
mov edi, ebp
fild dword [esp + 0x30]
mov eax, edi
shl eax, 0x10
or eax, ecx
fdivr dword [esi + 0x1b00]
mov dword [esi + 0x48c], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebp
fstp qword [esi + 0x490]
je 0x4017ea
fld dword [eax]
fstp qword [esi + 0x490]
mov byte [esi + 0x498], 1
mov byte [esi + 0x499], 0
mov byte [esi + 0x49a], 0
lea eax, [esi + 0x49c]
mov edx, eax
mov ecx, 0x20202020
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
push ebx
mov dword [edx + 0x10], ecx
push str.CHANNELS_INFO_HEADER
push eax
mov dword [edx + 0x14], ecx
call fcn.00416550
mov eax, dword [esi + 0x2c]
xor ecx, ecx
add esp, 0xc
test eax, eax
mov dword [esi + 0x4b4], ebx
mov dword [esi + 0x4b8], ebp
mov dword [esi + 0x4bc], 3
mov dword [esp + 0x3c], ecx
jle 0x401908
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x4f4]
sub ecx, ebx
mov dword [esp + 0x30], eax
mov edi, eax
mov dword [esp + 0x38], ecx
lea ecx, [ecx]
mov edx, dword [esi + 0x4324]
cmp dword [edx + ebp*4], 0
jne 0x401882
cmp dword [esi + 0x2c], 0x20
jl 0x4018ee
mov dl, byte [esi + 0x4328]
test dl, dl
je 0x4018ad
mov eax, ebp
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
mov al, byte [esi + 0x4328]
shl edx, cl
mov ecx, dword [esp + 0x38]
test al, dl
mov eax, dword [esp + 0x30]
je 0x4018ee
mov edx, dword [edi - 4]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x34]
test edx, edx
je 0x4018c4
fld dword [ecx + ebx]
fmul qword [edi]
fadd dword [ebx]
jmp 0x4018c6
fld qword [edi]
test edx, edx
je 0x4018d4
fld dword [ecx + ebx]
fmul qword [edi + 8]
fadd dword [ebx]
jmp 0x4018d7
fld qword [edi + 8]
mov edx, dword [esp + 0x3c]
fxch st(1)
fstp qword [eax]
inc edx
add eax, 0x14
fstp qword [eax - 0xc]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], eax
mov edx, dword [esi + 0x2c]
inc ebp
add ebx, 4
add edi, 0x14
cmp ebp, edx
jl 0x401870
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov al, byte [esi + 0x4328]
test al, al
jne 0x401920
cmp dword [esi + 0x30], 1
jne 0x40191e
mov dword [esi + 0x48c], ecx
test al, al
jbe 0x40192c
test edi, edi
jne 0x40192c
mov dword [esi + 0x48c], ecx
lea eax, [esi + 0x4d0]
mov edx, eax
mov ecx, 0x20202020
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
push 0xd
mov dword [edx + 0x10], ecx
push str.CHANNELS_INFO
push eax
mov dword [edx + 0x14], ecx
call fcn.00416550
mov eax, dword [esi + 0x48c]
and eax, 0x1ff
lea eax, [eax + eax*4]
shl eax, 2
cdq
mov dword [esi + 0x4e8], eax
mov dword [esi + 0x4314], 8
mov dword [esi + 0x4ec], edx
mov ecx, dword [0x42b4dc]
lea eax, [esi + 0x2314]
mov dword [eax], ecx
mov edx, dword [0x42b4e0]
mov dword [eax + 4], edx
mov cl, byte [0x42b4e4]
mov byte [eax + 8], cl
mov dword [esi + 0x4314], 0xc
mov dword [esi + 0x231c], 1
mov eax, dword [esi + 0x4314]
lea edx, [eax + 4]
mov dword [esi + 0x4314], edx
or dword [esi + 0x231c], 2
mov ecx, dword [esi + 0x4314]
lea edx, [ecx + esi + 0x2314]
mov cl, byte [esi + 0x4328]
add esp, 0xc
test cl, cl
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
je 0x4019f6
mov dword [eax + esi + 0x2314], 0
mov eax, dword [esi + 0x2c]
xor ebp, ebp
xor edi, edi
test eax, eax
jle 0x401a5e
mov eax, dword [esi + 0x4324]
cmp dword [eax + edi*4], 0
jne 0x401a13
cmp dword [esi + 0x2c], 0x20
jl 0x401a56
mov bl, byte [esi + 0x4328]
test bl, bl
je 0x401a30
mov eax, edi
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
shl edx, cl
test bl, dl
je 0x401a56
mov eax, dword [esi + 0x4318]
cmp dword [eax], edi
jne 0x401a45
mov ecx, dword [esp + 0x34]
mov dword [ecx + esi + 0x2314], ebp
mov edx, dword [esi + 0x431c]
mov eax, dword [edx + edi*4]
mov ecx, dword [esp + 0x30]
mov dword [ecx + ebp*4], eax
inc ebp
mov eax, dword [esi + 0x2c]
inc edi
cmp edi, eax
jl 0x401a01
mov edi, dword [esi + 0x4314]
lea edx, [ebp*4]
add edi, edx
mov dword [esi + 0x4314], edi
or dword [esi + 0x231c], 4
mov eax, dword [esi + 0x4314]
lea ecx, [eax + esi + 0x2314]
mov eax, dword [esi + 0x2c]
xor ebp, ebp
xor edi, edi
test eax, eax
mov dword [esp + 0x34], ecx
jle 0x401ae8
jmp 0x401aa0
mov edx, dword [esi + 0x4324]
cmp dword [edx + edi*4], 0
jne 0x401ab2
cmp dword [esi + 0x2c], 0x20
jl 0x401ae0
mov bl, byte [esi + 0x4328]
test bl, bl
je 0x401acf
mov eax, edi
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
shl edx, cl
test bl, dl
je 0x401ae0
mov eax, dword [esi + 0x4320]
mov ecx, dword [eax + edi*4]
mov edx, dword [esp + 0x34]
mov dword [edx + ebp*4], ecx
inc ebp
mov eax, dword [esi + 0x2c]
inc edi
cmp edi, eax
jl 0x401aa0
mov ebx, dword [esi + 0x4e8]
mov edi, dword [esi + 0x4ec]
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [ebp*4]
mov ebp, dword [esi + 0x4314]
push 0x20
add ebp, eax
push 2
push 0
mov eax, ebp
cdq
push 0
add ebx, eax
push 0x40000000
adc edi, edx
push ecx
mov dword [esi + 0x4314], ebp
mov dword [esi + 0x4e8], ebx
mov dword [esi + 0x4ec], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x401b4a
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 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
lea eax, [esi + 0x4d0]
push eax
push edx
call edi
mov eax, dword [esi + 0x48c]
xor ebp, ebp
test eax, 0x1ff
jle 0x401be4
lea ebx, [esi + 0x4f0]
lea ebx, [ebx]
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]
inc ebp
and edx, 0x1ff
add ebx, 0x14
cmp ebp, edx
jl 0x401bc0
mov ecx, dword [esi + 0x4314]
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esi + 0x2314]
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]
pop edi
mov byte [esi + 0x4328], 0
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 0x14