Function at 0x401660
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x417262
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x41c060]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c060]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ecx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0xdc]
mov ebp, dword [esp + 0xd0]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xe0]
push ecx
xor edi, edi
mov ecx, 0x419f40
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], edi
call fcn.00401980
mov dword [esp + 0xc8], edi
mov dword [esp + 0x24], edi
lea edx, [esp + 0x1c]
mov byte [esp + 0xc8], 1
push edx
mov ecx, 0x419efc
mov dword [esp + 0x2c], 0x40
call fcn.00401980
lea esi, [esp + 0x2c]
lea ebx, [esp + 0x20]
mov byte [esp + 0xc8], 2
call fcn.004015d0
mov byte [esp + 0xc8], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00401d90
mov byte [esp + 0xc8], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401763
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push edi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x401816
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
lea edi, [esp + 0x2c]
lea esi, [esp + 0x40]
mov dword [esp + 0x28], ebx
call fcn.004013b0
test eax, eax
je 0x401877
push str..Common.cpp
push 0x131
push str.RtkAudioService
call fcn.00401000
mov edx, dword [0x41d414]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x41d414
call eax
add eax, 0x10
mov dword [ebp], eax
mov esi, ebp
call fcn.00401ec0
mov byte [esp + 0xc8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401808
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x4018e8
push ebx
jmp 0x4018e2
push str..Common.cpp
push 0x12e
push str.RtkAudioService
call fcn.00401000
mov eax, dword [0x41d414]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x41d414
call edx
add eax, 0x10
mov dword [ebp], eax
mov esi, ebp
call fcn.00401ec0
mov byte [esp + 0xc8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4018e8
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401880
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x3c]
mov ebx, eax
push ecx
lea eax, [esp + 0x20]
call fcn.00401e20
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00401c50
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0xc8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4018d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4018e8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401913
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00408c70
add esp, 0xb8
ret