Function at 0x409880
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 0x442042
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 0x409985
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 0x409974
cmp dword [esp + 0x18], 7
jl 0x409968
test dword [esp + 0x20], 0x10000000
je 0x409968
call fcn.00408852
test eax, eax
je 0x409968
mov dword [0x452548], 0x408820
jmp 0x40998f
mov dword [0x452548], 0x4087f0
jmp 0x40998f
mov dword [0x452548], 0x4087c0
test eax, 0x800000
jne 0x40998f
mov dword [0x452548], 0x408780
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 0x409b5e
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [0x452544], eax
cmp eax, edi
je 0x409b5e
cmp bl, 0xfe
jae 0x409a26
movzx ebp, bl
lea ebx, [esi + 0x40]
nop
mov eax, dword [edi*4 + 0x4520a8]
push 0x30000
push 0
push 0x409390
push 0x452094
mov dword [0x452098], eax
push ebp
add eax, eax
push ebx
mov dword [0x45209c], eax
call dword [sym.imp.WINMM.DLL_waveInOpen]
test eax, eax
je 0x409a79
inc edi
cmp edi, 5
jl 0x4099f0
mov edi, dword [esp + 0x38]
cmp byte [esi + 0x78], 0
jne 0x409ac7
xor ebp, ebp
lea ebx, [esi + 0x40]
lea esp, [esp]
mov eax, dword [ebp*4 + 0x4520a8]
push 0x30000
push 0
push 0x409390
push 0x452094
mov dword [0x452098], eax
push 0xffffffffffffffff
add eax, eax
push ebx
mov dword [0x45209c], eax
call dword [sym.imp.WINMM.DLL_waveInOpen]
test eax, eax
je 0x409a9c
inc ebp
cmp ebp, 5
jl 0x409a40
jmp 0x409abd
mov ecx, dword [edi*4 + 0x452080]
add ecx, ecx
mov dword [esi + 0x44], ecx
mov edx, dword [edi*4 + 0x452080]
mov dword [esi + 0x48], edx
mov edi, dword [edi*4 + 0x4520a8]
mov byte [esi + 0x78], 1
jmp 0x409a2a
mov ecx, dword [ebp*4 + 0x452080]
add ecx, ecx
mov dword [esi + 0x44], ecx
mov edx, dword [ebp*4 + 0x452080]
mov dword [esi + 0x48], edx
mov edi, dword [ebp*4 + 0x4520a8]
mov byte [esi + 0x78], 1
cmp byte [esi + 0x78], 0
je 0x409b51
lea eax, [esp + 0x10]
push eax
push 0x800
push 1
push edi
call fcn.0041f970
add esp, 0x10
cmp dword [esp + 0x10], 0
mov dword [esi + 0x38], eax
jne 0x409b2b
push 0x7d00
push 0xfa2
push eax
call fcn.0041fa30
mov al, byte [esp + 0x4c]
add esp, 0xc
cmp al, 0xa
jae 0x409b16
mov edx, dword [esi + 0x38]
movzx ecx, al
push ecx
push 0xfaa
push edx
call fcn.0041fa30
add esp, 0xc
push 0x5df
call dword [sym.imp.MSVCR80.DLL_malloc]
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x409b5e
mov eax, dword [esi + 0x40]
push eax
mov dword [esi + 0x38], 0
call dword [sym.imp.WINMM.DLL_waveInClose]
mov ecx, dword [0x452544]
mov ebp, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ecx
call ebp
mov byte [esi + 0x78], 0
jmp 0x409b64
mov edx, dword [0x452544]
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 0x409d8e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
push 0
push 1
push 0
mov dword [0x452540], eax
call dword [sym.imp.KERNEL32.DLL_CreateWaitableTimerA]
mov ecx, dword [0x452540]
mov dword [esi + 0x80], eax
test ecx, ecx
je 0x409d81
test eax, eax
je 0x409d7e
cmp bl, 0xfe
jae 0x409c3e
movzx ebp, bl
xor edi, edi
lea ebx, [esi + 0x7c]
jmp 0x409bd0
mov eax, dword [edi*4 + 0x4520a8]
push 0x30000
push 0
push 0x4093b0
push 0x452094
mov dword [0x452098], eax
push ebp
add eax, eax
push ebx
mov dword [0x45209c], eax
call dword [sym.imp.WINMM.DLL_waveOutOpen]
test eax, eax
je 0x409c08
inc edi
cmp edi, 5
jl 0x409bd0
jmp 0x409c38
mov ecx, dword [edi*4 + 0x452080]
add ecx, ecx
mov dword [esi + 0x8c], ecx
mov edx, dword [edi*4 + 0x452080]
mov dword [esi + 0x90], edx
mov eax, dword [edi*4 + 0x4520a8]
mov dword [esi + 0x94], eax
mov byte [esi + 0xc4], 1
mov ebp, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esi + 0xc4], 0
jne 0x409cc8
xor edi, edi
lea ebx, [esi + 0x7c]
mov eax, dword [edi*4 + 0x4520a8]
push 0x30000
push 0
push 0x4093b0
push 0x452094
push 0xffffffffffffffff
lea ecx, [eax + eax]
push ebx
mov dword [0x452098], eax
mov dword [0x45209c], ecx
call dword [sym.imp.WINMM.DLL_waveOutOpen]
test eax, eax
je 0x409c8b
inc edi
cmp edi, 5
jl 0x409c50
jmp 0x409cbb
mov edx, dword [edi*4 + 0x452080]
add edx, edx
mov dword [esi + 0x8c], edx
mov eax, dword [edi*4 + 0x452080]
mov dword [esi + 0x90], eax
mov ecx, dword [edi*4 + 0x4520a8]
mov dword [esi + 0x94], ecx
mov byte [esi + 0xc4], 1
cmp byte [esi + 0xc4], 0
je 0x409d6d
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 0x409d18
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 0x409d41
mov eax, dword [esp + 0x38]
shr eax, 8
test al, al
jne 0x409d38
mov al, 1
mov edx, dword [0x452534]
mov byte [edx + 0xf], al
cmp dword [esi + 0xc0], 0
jne 0x409d8e
mov eax, dword [esi + 0x7c]
push eax
mov byte [esi + 0xc4], 0
call dword [sym.imp.WINMM.DLL_waveOutClose]
mov ecx, dword [0x452540]
push ecx
call ebp
mov edx, dword [esi + 0x80]
push edx
jmp 0x409d8c
mov eax, dword [0x452540]
push eax
call ebp
mov ecx, dword [esi + 0x80]
push ecx
jmp 0x409d8c
push ecx
call ebp
mov eax, dword [esi + 0x80]
test eax, eax
je 0x409d8e
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