Function at 0x4031e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
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.00403120
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.0041b7e0
lea eax, [esi + 0x468]
xor edi, edi
mov dword [esi + 0x460], edi
mov dword [esi + 0x464], edi
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.0041b7e0
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 0x40328f
cdq
idiv edi
mov dl, byte [esi + 0x781c]
test dl, dl
je 0x4032fa
movzx ecx, dl
test cl, 1
mov dword [esp + 0xc], 0
je 0x4032b1
mov dword [esp + 0xc], 1
test cl, 2
je 0x4032ba
inc dword [esp + 0xc]
test cl, 4
je 0x4032c3
inc dword [esp + 0xc]
test cl, 8
je 0x4032cc
inc dword [esp + 0xc]
test cl, 0x10
je 0x4032d5
inc dword [esp + 0xc]
test cl, 0x20
je 0x4032de
inc dword [esp + 0xc]
test cl, 0x40
je 0x4032e7
inc dword [esp + 0xc]
test cl, cl
jns 0x4032ef
inc dword [esp + 0xc]
mov edi, dword [esp + 0xc]
mov ecx, eax
imul ecx, dword [esp + 0xc]
cmp edi, 1
jne 0x40330d
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0xc]
mov ecx, eax
fild dword [esp + 0x30]
mov eax, edi
shl eax, 0x10
or eax, ecx
test ebx, ebx
fdivr dword [esi + 0x4ff0]
mov dword [esi + 0x48c], eax
fstp qword [esi + 0x490]
je 0x403336
fld dword [ebx]
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 ebp
mov dword [edx + 0x10], ecx
push str.CHANNELS_INFO_HEADER
push eax
mov dword [edx + 0x14], ecx
call fcn.0041b7e0
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x4b4], ebp
xor ebp, ebp
xor ecx, ecx
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x4b8], ebp
mov dword [esi + 0x4bc], 3
mov dword [esp + 0x14], ecx
jle 0x40345c
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
jmp 0x4033c0
mov edx, dword [esp + 0x2c]
cmp word [edx], 0x7e
jne 0x4033d6
mov edx, dword [esi + 0x7814]
cmp dword [edx + ebp*4], 0
je 0x403442
mov dl, byte [esi + 0x781c]
test dl, dl
je 0x403401
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 0x403442
mov edx, dword [edi - 4]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x34]
test edx, edx
je 0x403418
fld dword [ecx + ebx]
fmul qword [edi]
fadd dword [ebx]
jmp 0x40341a
fld qword [edi]
test edx, edx
je 0x403428
fld dword [ecx + ebx]
fmul qword [edi + 8]
fadd dword [ebx]
jmp 0x40342b
fld qword [edi + 8]
mov edx, dword [esp + 0x14]
fxch st(1)
fstp qword [eax]
inc edx
add eax, 0x14
fstp qword [eax - 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], eax
mov edx, dword [esi + 0x2c]
inc ebp
add ebx, 4
add edi, 0x14
cmp ebp, edx
jl 0x4033c0
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov al, byte [esi + 0x781c]
test al, al
jne 0x403474
cmp dword [esi + 0x30], 1
jne 0x403472
mov dword [esi + 0x48c], ecx
test al, al
jbe 0x403480
test edi, edi
jne 0x403480
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.0041b7e0
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 [str.ADCBLOCK]
lea eax, [esi + 0x5804]
mov dword [eax], ecx
mov edx, dword [0x432a68]
mov dword [eax + 4], edx
mov cl, byte [0x432a6c]
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 0x40354a
mov dword [eax + esi + 0x5804], 0
mov eax, dword [esi + 0x2c]
xor ebp, ebp
xor edi, edi
test eax, eax
jle 0x4035b6
mov eax, dword [esp + 0x2c]
cmp word [eax], 0x7e
jne 0x40356b
mov ecx, dword [esi + 0x7814]
cmp dword [ecx + edi*4], 0
je 0x4035ae
mov bl, byte [esi + 0x781c]
test bl, bl
je 0x403588
mov eax, edi
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
shl edx, cl
test bl, dl
je 0x4035ae
mov eax, dword [esi + 0x7808]
cmp dword [eax], edi
jne 0x40359d
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 0x403555
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 0x4035ef
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 0x403679
jmp 0x403610
mov ecx, dword [esp + 0x2c]
cmp word [ecx], 0x7e
jne 0x403626
mov edx, dword [esi + 0x7814]
cmp dword [edx + edi*4], 0
je 0x403671
mov bl, byte [esi + 0x781c]
test bl, bl
je 0x403643
mov eax, edi
cdq
idiv dword [esi + 0x34]
mov edx, 1
mov ecx, eax
shl edx, cl
test bl, dl
je 0x403671
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 0x403670
mov edx, dword [esi + 0x7814]
cmp dword [edx + edi*4], 0
jne 0x403670
or eax, 0x10
mov dword [ecx + ebp*4], eax
inc ebp
mov eax, dword [esi + 0x2c]
inc edi
cmp edi, eax
jl 0x403610
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 0x4036da
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x14]
push edx
push 0x20
lea ecx, [esi + 0x448]
push ecx
push eax
call edi
mov ecx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push 0x34
lea eax, [esi + 0x468]
push eax
push ecx
call edi
push 0
lea edx, [esp + 0x14]
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 + 0x14]
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 0x403774
lea ebx, [esi + 0x4f0]
lea ebx, [ebx]
mov ecx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
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 0x403750
mov ecx, dword [esi + 0x7804]
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esi + 0x5804]
push eax
push edx
call edi
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push 0x28
lea ecx, [esi + 0x18f0]
push ecx
push edx
call edi
mov edx, dword [esi + 0x24]
push 0
lea eax, [esp + 0x14]
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 eax, esi
mov byte [esi + 0x781c], 0
call fcn.00403060
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x10