Function at 0x41da00
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x55697b
mov eax, dword fs:[0]
push eax
mov eax, 0x10010
call fcn.00530550
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x1000c], eax
push ebx
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x10020]
mov dword fs:[0], eax
push 0x5703b8
lea ecx, [esp + 0x14]
mov dword [esp + 0x1002c], 1
call fcn.0040c150
push 0x7fff
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
mov byte [esp + 0x10030], 2
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
mov edi, dword [esp + 0x10030]
je 0x41dbc7
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x41da90
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41da90
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x1a], 0x5c
jne 0x41dac4
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41dab0
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x1a], bx
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x41dad0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41dad0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402fc0
push 1
push 0x570214
lea ecx, [esp + 0x18]
call fcn.0040bfc0
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.0040bfc0
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00402cf0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0041d030
add esp, 4
cmp eax, ebx
je 0x41dbc7
push 0x571270
lea ecx, [esp + 0x14]
call fcn.0040c0d0
mov ecx, dword [esp + 0x10034]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0040bfc0
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], 1
jle 0x41db76
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00402730
mov eax, dword [esp + 0x10]
push ebx
call fcn.0041c0d0
mov edx, dword [esp + 0x14]
add esp, 4
cmp edx, ebx
mov dword [esp + 0x14], eax
jne 0x41db8f
xor eax, eax
jmp 0x41dba9
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41db94
sub eax, esi
sar eax, 1
js 0x41dce1
cmp eax, dword [edx - 8]
jg 0x41dce1
cmp dword [esp + 0x14], ebx
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], bx
jne 0x41dd11
push 0xfffe
lea edx, [esp + 0x20]
push ebx
push edx
call fcn.0052d8f0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41dd11
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41dc00
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x1a], 0x5c
jne 0x41dc34
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41dc20
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x1a], bx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040c050
push str.RealtekAudioAP_
lea ecx, [esp + 0x14]
call fcn.0040c0d0
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.0040bfc0
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00402cf0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0041d030
add esp, 4
cmp eax, ebx
je 0x41dd11
push 0x571270
lea ecx, [esp + 0x14]
call fcn.0040c0d0
mov ecx, dword [esp + 0x10034]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0040bfc0
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], 1
jle 0x41dcc8
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00402730
mov eax, dword [esp + 0x10]
push ebx
call fcn.0041c0d0
mov edx, dword [esp + 0x14]
add esp, 4
cmp edx, ebx
mov dword [esp + 0x14], eax
jne 0x41dceb
xor eax, eax
jmp 0x41dd01
push 0x80070057
call fcn.00402660
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41dcf0
sub eax, esi
sar eax, 1
js 0x41dce1
cmp eax, dword [edx - 8]
jg 0x41dce1
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], bx
mov byte [esp + 0x10028], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41dd39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x10028], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41dd5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10028], 0xffffffff
mov eax, dword [esp + 0x10034]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41dd8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10020]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000c]
xor ecx, esp
call fcn.0052944d
add esp, 0x1001c
ret