Function at 0x401630
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.00412760
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.00412760
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 0x4016d9
cdq
idiv edi
mov dl, byte [esi + 0x3324]
test dl, dl
je 0x401740
movzx ecx, dl
test cl, 1
mov dword [esp + 0x10], ebp
je 0x4016f7
mov dword [esp + 0x10], 1
test cl, 2
je 0x401700
inc dword [esp + 0x10]
test cl, 4
je 0x401709
inc dword [esp + 0x10]
test cl, 8
je 0x401712
inc dword [esp + 0x10]
test cl, 0x10
je 0x40171b
inc dword [esp + 0x10]
test cl, 0x20
je 0x401724
inc dword [esp + 0x10]
test cl, 0x40
je 0x40172d
inc dword [esp + 0x10]
test cl, cl
jns 0x401735
inc dword [esp + 0x10]
mov edi, dword [esp + 0x10]
mov ecx, eax
imul ecx, dword [esp + 0x10]
cmp edi, 1
jne 0x40174d
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 0x40177a
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.00412760
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 + 0x30], ecx
jle 0x401898
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
lea ecx, [ecx]
mov edx, dword [esi + 0x3320]
cmp dword [edx + ebp*4], 0
jne 0x401812
cmp dword [esi + 0x2c], 0x20
jl 0x40187e
mov dl, byte [esi + 0x3324]
test dl, dl
je 0x40183d
mov eax, ebp
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
mov al, byte [esi + 0x3324]
shl edx, cl
mov ecx, dword [esp + 0x38]
test al, dl
mov eax, dword [esp + 0x3c]
je 0x40187e
mov edx, dword [edi - 4]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x34]
test edx, edx
je 0x401854
fld dword [ecx + ebx]
fmul qword [edi]
fadd dword [ebx]
jmp 0x401856
fld qword [edi]
test edx, edx
je 0x401864
fld dword [ecx + ebx]
fmul qword [edi + 8]
fadd dword [ebx]
jmp 0x401867
fld qword [edi + 8]
mov edx, dword [esp + 0x30]
fxch st(1)
fstp qword [eax]
inc edx
add eax, 0x14
fstp qword [eax - 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], eax
mov edx, dword [esi + 0x2c]
inc ebp
add ebx, 4
add edi, 0x14
cmp ebp, edx
jl 0x401800
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov al, byte [esi + 0x3324]
test al, al
jne 0x4018b0
cmp dword [esi + 0x30], 1
jne 0x4018ae
mov dword [esi + 0x48c], ecx
test al, al
jbe 0x4018bc
test edi, edi
jne 0x4018bc
mov dword [esi + 0x48c], ecx
lea ebp, [esi + 0x4d0]
mov eax, 0x20202020
mov ecx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
push 0xd
mov dword [ecx + 0x10], eax
push str.CHANNELS_INFO
push ebp
mov dword [ecx + 0x14], eax
call fcn.00412760
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 + 0x3314], 8
mov dword [esi + 0x4ec], edx
mov edx, dword [str.ADCBLOCK]
lea eax, [esi + 0x2314]
mov dword [eax], edx
mov ecx, dword [0x4274e4]
mov dword [eax + 4], ecx
mov dl, byte [0x4274e8]
mov byte [eax + 8], dl
mov dword [esi + 0x3314], 0xc
mov dword [esi + 0x231c], 1
mov eax, dword [esi + 0x3314]
lea ecx, [eax + 4]
mov dword [esi + 0x3314], ecx
or dword [esi + 0x231c], 2
mov edx, dword [esi + 0x3314]
lea ecx, [edx + esi + 0x2314]
mov dword [esp + 0x48], ecx
mov cl, byte [esi + 0x3324]
add esp, 0xc
test cl, cl
mov dword [esp + 0x34], eax
je 0x401986
mov dword [eax + esi + 0x2314], 0
mov eax, dword [esi + 0x2c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x30], edi
jle 0x4019fc
mov edx, dword [esi + 0x3320]
cmp dword [edx + edi*4], 0
jne 0x4019a5
cmp dword [esi + 0x2c], 0x20
jl 0x4019f4
mov bl, byte [esi + 0x3324]
test bl, bl
je 0x4019c2
mov eax, edi
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
shl edx, cl
test bl, dl
je 0x4019f4
mov eax, dword [esi + 0x3318]
cmp dword [eax], edi
jne 0x4019db
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [ecx + esi + 0x2314], edx
mov eax, dword [esi + 0x331c]
mov ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov dword [edx + eax*4], ecx
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x2c]
inc edi
cmp edi, eax
jl 0x401993
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0x3314]
lea ecx, [eax*4]
add edx, ecx
mov ecx, dword [esi + 0x4e8]
push 0
push 0x20
mov eax, edx
mov dword [esi + 0x3314], edx
cdq
push 2
add ecx, eax
mov eax, dword [esi + 0x4ec]
push 0
push 0
adc eax, edx
mov edx, dword [esp + 0x40]
push 0x40000000
push edx
mov dword [esi + 0x4e8], ecx
mov dword [esi + 0x4ec], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x401a62
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
mov eax, dword [esi + 0x48c]
xor ebp, ebp
test eax, 0x1ff
jle 0x401af4
lea ebx, [esi + 0x4f0]
lea esp, [esp]
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]
inc ebp
and ecx, 0x1ff
add ebx, 0x14
cmp ebp, ecx
jl 0x401ad0
mov eax, dword [esi + 0x3314]
mov ecx, dword [esi + 0x24]
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esi + 0x2314]
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]
pop edi
mov byte [esi + 0x3324], 0
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 0x14