Function at 0x409c40
Capabilities:
Access peb ldr_data
Capture microphone audio
Check os version
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x442662
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
xor eax, eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esp + 0x30], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
xor ecx, ecx
mov byte [esi + 0x34], al
cpuid
lea edi, [esp + 0x18]
pxor xmm0, xmm0
movq qword [esp + 0x1c], xmm0
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov eax, 1
mov dword [edi + 0xc], edx
mov byte [esp + 0x30], 3
cmp dword [esp + 0x18], eax
jl 0x409d45
xor ecx, ecx
cpuid
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, dword [esp + 0x24]
test eax, 0x4000000
je 0x409d34
cmp dword [esp + 0x18], 7
jl 0x409d28
test dword [esp + 0x20], 0x10000000
je 0x409d28
call fcn.004010e2
test eax, eax
je 0x409d28
mov dword [0x453580], 0x4010b0
jmp 0x409d4f
mov dword [0x453580], 0x401080
jmp 0x409d4f
mov dword [0x453580], 0x401050
test eax, 0x800000
jne 0x409d4f
mov dword [0x453580], 0x401010
mov bl, byte [esp + 0x38]
pxor xmm0, xmm0
movq qword [esi], xmm0
movq qword [esi + 8], xmm0
movq qword [esi + 0x10], xmm0
movq qword [esi + 0x18], xmm0
movq qword [esi + 0x20], xmm0
xor edi, edi
movq qword [esi + 0x28], xmm0
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov byte [esi + 0x78], 0
cmp bl, 0xff
jae 0x409f1e
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x45357c], eax
cmp eax, edi
je 0x409f1e
cmp bl, 0xfe
jae 0x409de6
movzx ebp, bl
lea ebx, [esi + 0x40]
nop
mov eax, dword [edi*4 + 0x453498]
push 0x30000
push 0
push 0x4096a0
push 0x453484
mov dword [0x453488], eax
push ebp
add eax, eax
push ebx
mov dword [0x45348c], eax
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x409e39
inc edi
cmp edi, 5
jl 0x409db0
mov edi, dword [esp + 0x38]
cmp byte [esi + 0x78], 0
jne 0x409e87
xor ebp, ebp
lea ebx, [esi + 0x40]
lea esp, [esp]
mov eax, dword [ebp*4 + 0x453498]
push 0x30000
push 0
push 0x4096a0
push 0x453484
mov dword [0x453488], eax
push 0xffffffffffffffff
add eax, eax
push ebx
mov dword [0x45348c], eax
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x409e5c
inc ebp
cmp ebp, 5
jl 0x409e00
jmp 0x409e7d
mov ecx, dword [edi*4 + 0x453470]
add ecx, ecx
mov dword [esi + 0x44], ecx
mov edx, dword [edi*4 + 0x453470]
mov dword [esi + 0x48], edx
mov edi, dword [edi*4 + 0x453498]
mov byte [esi + 0x78], 1
jmp 0x409dea
mov ecx, dword [ebp*4 + 0x453470]
add ecx, ecx
mov dword [esi + 0x44], ecx
mov edx, dword [ebp*4 + 0x453470]
mov dword [esi + 0x48], edx
mov edi, dword [ebp*4 + 0x453498]
mov byte [esi + 0x78], 1
cmp byte [esi + 0x78], 0
je 0x409f11
lea eax, [esp + 0x10]
push eax
push 0x800
push 1
push edi
call fcn.0041fe40
add esp, 0x10
cmp dword [esp + 0x10], 0
mov dword [esi + 0x38], eax
jne 0x409eeb
push 0x7d00
push 0xfa2
push eax
call fcn.0041ff00
mov al, byte [esp + 0x4c]
add esp, 0xc
cmp al, 0xa
jae 0x409ed6
mov edx, dword [esi + 0x38]
movzx ecx, al
push ecx
push 0xfaa
push edx
call fcn.0041ff00
add esp, 0xc
push 0x5df
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x409f1e
mov eax, dword [esi + 0x40]
push eax
mov dword [esi + 0x38], 0
call dword [sym.imp.WINMM.dll_waveInClose]
mov ecx, dword [0x45357c]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebp
mov byte [esi + 0x78], 0
jmp 0x409f24
mov edx, dword [0x45357c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [esp + 0x3c]
mov byte [esi + 0xc4], 0
cmp bl, 0xff
jae 0x40a14e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 1
push 0
mov dword [0x453578], eax
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov ecx, dword [0x453578]
mov dword [esi + 0x80], eax
test ecx, ecx
je 0x40a141
test eax, eax
je 0x40a13e
cmp bl, 0xfe
jae 0x409ffe
movzx ebp, bl
xor edi, edi
lea ebx, [esi + 0x7c]
jmp 0x409f90
mov eax, dword [edi*4 + 0x453498]
push 0x30000
push 0
push 0x4096c0
push 0x453484
mov dword [0x453488], eax
push ebp
add eax, eax
push ebx
mov dword [0x45348c], eax
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
je 0x409fc8
inc edi
cmp edi, 5
jl 0x409f90
jmp 0x409ff8
mov ecx, dword [edi*4 + 0x453470]
add ecx, ecx
mov dword [esi + 0x8c], ecx
mov edx, dword [edi*4 + 0x453470]
mov dword [esi + 0x90], edx
mov eax, dword [edi*4 + 0x453498]
mov dword [esi + 0x94], eax
mov byte [esi + 0xc4], 1
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0xc4], 0
jne 0x40a088
xor edi, edi
lea ebx, [esi + 0x7c]
mov eax, dword [edi*4 + 0x453498]
push 0x30000
push 0
push 0x4096c0
push 0x453484
push 0xffffffffffffffff
lea ecx, [eax + eax]
push ebx
mov dword [0x453488], eax
mov dword [0x45348c], ecx
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
je 0x40a04b
inc edi
cmp edi, 5
jl 0x40a010
jmp 0x40a07b
mov edx, dword [edi*4 + 0x453470]
add edx, edx
mov dword [esi + 0x8c], edx
mov eax, dword [edi*4 + 0x453470]
mov dword [esi + 0x90], eax
mov ecx, dword [edi*4 + 0x453498]
mov dword [esi + 0x94], ecx
mov byte [esi + 0xc4], 1
cmp byte [esi + 0xc4], 0
je 0x40a12d
mov edx, dword [esi + 0x7c]
push edx
call dword [sym.imp.WINMM.dll_waveOutReset]
mov eax, dword [esi + 0x90]
add eax, eax
push 0x20
push eax
call dword [sym.imp.MSVCR80.dll__aligned_malloc]
mov dword [esi + 0xc0], eax
mov al, byte [esp + 0x4c]
add esp, 8
test al, al
je 0x40a0d8
movzx ecx, al
shl cx, 8
mov edx, 0xff
or cx, dx
mov edx, dword [esi + 0x7c]
movzx eax, cx
mov ecx, eax
shl ecx, 0x10
or ecx, eax
push ecx
push edx
call dword [sym.imp.WINMM.dll_waveOutSetVolume]
mov ecx, dword [esi + 0x7c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveOutGetVolume]
test eax, eax
jne 0x40a101
mov eax, dword [esp + 0x38]
shr eax, 8
test al, al
jne 0x40a0f8
mov al, 1
mov edx, dword [0x45356c]
mov byte [edx + 0xf], al
cmp dword [esi + 0xc0], 0
jne 0x40a14e
mov eax, dword [esi + 0x7c]
push eax
mov byte [esi + 0xc4], 0
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [0x453578]
push ecx
call ebp
mov edx, dword [esi + 0x80]
push edx
jmp 0x40a14c
mov eax, dword [0x453578]
push eax
call ebp
mov ecx, dword [esi + 0x80]
push ecx
jmp 0x40a14c
push ecx
call ebp
mov eax, dword [esi + 0x80]
test eax, eax
je 0x40a14e
push eax
call ebp
mov ecx, dword [esp + 0x28]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10