Function at 0x401850
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.00401790
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.0041a120
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.0041a120
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 0x401900
cdq
idiv edi
mov dl, byte [esi + 0x781c]
test dl, dl
je 0x401967
movzx ecx, dl
test cl, 1
mov dword [esp + 0x10], ebp
je 0x40191e
mov dword [esp + 0x10], 1
test cl, 2
je 0x401927
inc dword [esp + 0x10]
test cl, 4
je 0x401930
inc dword [esp + 0x10]
test cl, 8
je 0x401939
inc dword [esp + 0x10]
test cl, 0x10
je 0x401942
inc dword [esp + 0x10]
test cl, 0x20
je 0x40194b
inc dword [esp + 0x10]
test cl, 0x40
je 0x401954
inc dword [esp + 0x10]
test cl, cl
jns 0x40195c
inc dword [esp + 0x10]
mov edi, dword [esp + 0x10]
mov ecx, eax
imul ecx, dword [esp + 0x10]
cmp edi, 1
jne 0x401974
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 + 0x4ff0]
mov dword [esi + 0x48c], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebp
fstp qword [esi + 0x490]
je 0x4019a1
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.0041a120
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 0x401ac0
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
mov edx, dword [esp + 0x2c]
cmp word [edx], 0x7e
jne 0x401a3a
mov edx, dword [esi + 0x7814]
cmp dword [edx + ebp*4], 0
je 0x401aa6
mov dl, byte [esi + 0x781c]
test dl, dl
je 0x401a65
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 + 0x30]
je 0x401aa6
mov edx, dword [edi - 4]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x34]
test edx, edx
je 0x401a7c
fld dword [ecx + ebx]
fmul qword [edi]
fadd dword [ebx]
jmp 0x401a7e
fld qword [edi]
test edx, edx
je 0x401a8c
fld dword [ecx + ebx]
fmul qword [edi + 8]
fadd dword [ebx]
jmp 0x401a8f
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 0x401a24
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov al, byte [esi + 0x781c]
test al, al
jne 0x401ad8
cmp dword [esi + 0x30], 1
jne 0x401ad6
mov dword [esi + 0x48c], ecx
test al, al
jbe 0x401ae4
test edi, edi
jne 0x401ae4
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.0041a120
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 + 0x7804], 8
mov dword [esi + 0x4ec], edx
mov ecx, dword [0x42f50c]
lea eax, [esi + 0x5804]
mov dword [eax], ecx
mov edx, dword [0x42f510]
mov dword [eax + 4], edx
mov cl, byte [0x42f514]
mov byte [eax + 8], cl
mov dword [esi + 0x7804], 0xc
mov dword [esi + 0x580c], 1
mov eax, dword [esi + 0x7804]
lea edx, [eax + 4]
mov dword [esi + 0x7804], edx
or dword [esi + 0x580c], 2
mov ecx, dword [esi + 0x7804]
lea edx, [ecx + esi + 0x5804]
mov cl, byte [esi + 0x781c]
add esp, 0xc
test cl, cl
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
je 0x401bae
mov dword [eax + esi + 0x5804], 0
mov eax, dword [esi + 0x2c]
xor ebp, ebp
xor edi, edi
test eax, eax
jle 0x401c21
lea esp, [esp]
mov eax, dword [esp + 0x2c]
cmp word [eax], 0x7e
jne 0x401bd6
mov ecx, dword [esi + 0x7814]
cmp dword [ecx + edi*4], 0
je 0x401c19
mov bl, byte [esi + 0x781c]
test bl, bl
je 0x401bf3
mov eax, edi
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
shl edx, cl
test bl, dl
je 0x401c19
mov eax, dword [esi + 0x7808]
cmp dword [eax], edi
jne 0x401c08
mov ecx, dword [esp + 0x34]
mov dword [ecx + esi + 0x5804], ebp
mov edx, dword [esi + 0x780c]
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 0x401bc0
mov ebx, dword [esi + 0x7804]
mov ecx, dword [esp + 0x2c]
lea edx, [ebp*4]
add ebx, edx
mov dword [esi + 0x7804], ebx
mov edi, dword [esi + 0x580c]
or edi, 4
mov dword [esi + 0x580c], edi
cmp word [ecx], 0x7e
mov eax, edi
je 0x401c5a
or eax, 0x10
mov dword [esi + 0x580c], eax
mov edx, dword [esi + 0x7804]
lea eax, [edx + esi + 0x5804]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x2c]
xor ebp, ebp
xor edi, edi
test eax, eax
jle 0x401cdf
mov ecx, dword [esp + 0x2c]
cmp word [ecx], 0x7e
jne 0x401c8c
mov edx, dword [esi + 0x7814]
cmp dword [edx + edi*4], 0
je 0x401cd7
mov bl, byte [esi + 0x781c]
test bl, bl
je 0x401ca9
mov eax, edi
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
shl edx, cl
test bl, dl
je 0x401cd7
mov eax, dword [esi + 0x7810]
mov eax, dword [eax + edi*4]
mov ecx, dword [esp + 0x34]
mov dword [ecx + ebp*4], eax
mov edx, dword [esi + 0x580c]
or edx, 0x10
je 0x401cd6
mov edx, dword [esi + 0x7814]
cmp dword [edx + edi*4], 0
jne 0x401cd6
or eax, 0x10
mov dword [ecx + ebp*4], eax
inc ebp
mov eax, dword [esi + 0x2c]
inc edi
cmp edi, eax
jl 0x401c76
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 + 0x7804]
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 + 0x7804], 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 0x401d41
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 0x401dd5
lea ebx, [esi + 0x4f0]
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 0x401db1
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 ecx, esi
mov byte [esi + 0x781c], 0
call fcn.004016d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 0x14