Function at 0x4b2de0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f650b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x203c
call fcn.004d3970
mov eax, dword [0x536ed4]
xor eax, esp
mov dword [esp + 0x2038], eax
push ebx
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x2050]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 4], 0
je 0x4b2e3c
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
jmp 0x4b31e1
mov eax, dword [edi + 8]
test eax, eax
je 0x4b31e1
xor ebx, ebx
cmp dword [eax + 0x514], ebx
jbe 0x4b2e96
xor esi, esi
add eax, 0x508
call fcn.0046dfa0
test eax, eax
je 0x4b2e82
mov eax, dword [edi + 8]
lea ecx, [eax + esi]
movzx eax, word [ecx + 0x5c8]
test eax, 0x200
jne 0x4b2e82
test al, 8
je 0x4b2e82
test byte [ecx + 0x5c0], 1
je 0x4b2e9d
mov eax, dword [edi + 8]
add ebx, 1
add esi, 0xac
cmp ebx, dword [eax + 0x514]
jb 0x4b2e53
mov eax, dword [edi + 8]
or dword [eax + 0x18], 0x40
mov ecx, dword [edi + 8]
test dword [ecx + 0x94], 0x20000
je 0x4b2eb2
push edi
call fcn.004b36a0
mov edx, dword [edi + 8]
test byte [edx + 0x1b], 1
je 0x4b2ec1
push edi
call fcn.004b3ff0
mov eax, dword [edi + 8]
mov esi, dword [eax + 0x1b70]
xor ebx, ebx
test esi, esi
je 0x4b2fa7
test esi, esi
mov eax, esi
je 0x4b30c1
mov eax, dword [eax + 8]
test eax, eax
mov esi, dword [esi]
je 0x4b2f5f
mov ecx, dword [eax + 0x10c]
cmp ecx, 8
je 0x4b2ef7
cmp ecx, 9
jne 0x4b2f49
cmp dword [eax + 0xb8], 0
je 0x4b2f49
mov ecx, dword [eax + 0x1ec]
test ecx, 0x1000
jne 0x4b2f32
mov edx, dword [eax + 0x1f0]
test edx, 0x20000000
jne 0x4b2f32
test byte [eax + 0x1f4], 1
je 0x4b2f2d
test ecx, 0x800
jne 0x4b2f32
test dl, 0x40
je 0x4b2f49
test cl, 1
jne 0x4b2f3f
test ecx, 0x400
je 0x4b2f49
mov ecx, dword [edi + 8]
or dword [ecx + 0x18], 0x20000
mov eax, dword [eax + 0x1f0]
test al, 1
je 0x4b2f5f
test eax, 0x100000
je 0x4b2f5f
mov ebx, 1
test esi, esi
jne 0x4b2ed4
test ebx, ebx
je 0x4b2fa7
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x50148c
call fcn.00401b10
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.RtHDVBg.exe
mov dword [esp + 0x2064], esi
call fcn.00401b10
mov dword [esp + 0x2060], 0xffffffff
call fcn.0044dd70
add esp, 8
mov edx, dword [edi]
mov eax, dword [edx + 0x44]
mov ecx, edi
call eax
mov eax, dword [edi + 8]
xor ebx, ebx
test dword [eax + 0xbc], 0x4000000
je 0x4b3009
lea esi, [eax + 0x508]
cmp esi, ebx
je 0x4b3009
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x4b2fea
mov ecx, eax
imul ecx, ecx, 0xac
cmp dword [ecx + esi + 0x150], ebx
je 0x4b2fea
push esi
call fcn.0046e3f0
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x4b3009
mov edx, eax
imul edx, edx, 0xac
cmp dword [edx + esi + 0x150], ebx
je 0x4b3009
push esi
call fcn.0046e3f0
push ebx
push ebx
call fcn.00451f60
push ebx
push 1
call fcn.00451f60
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x1000
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4b3181
lea eax, [esp + 0x44]
lea edx, [eax + 2]
jmp 0x4b3070
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b3070
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x42], 0x5c
jne 0x4b30a4
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b3090
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x42], bx
mov esi, 9
cmp word [esp + 0x1c], si
jne 0x4b30c6
push str.RTKVAA64.EXE
push 0x1000
lea edx, [esp + 0x4c]
push edx
jmp 0x4b30d5
jmp fcn.004bb5cf
push str.RTKVADDA.EXE
push 0x1000
lea eax, [esp + 0x4c]
push eax
call fcn.004d018a
add esp, 0xc
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00401b10
call fcn.0044d520
add esp, 4
cmp eax, ebx
jne 0x4b3167
push 0x2000
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.004d1c40
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4b3167
push str.RealtekAudioAP
lea edx, [esp + 0x48]
push 0x1000
push edx
call fcn.004d018a
add esp, 0xc
cmp word [esp + 0x1c], si
jne 0x4b3150
push str.RTKVAA64.EXE
push 0x1000
lea eax, [esp + 0x4c]
push eax
jmp 0x4b315f
push str.RTKVADDA.EXE
push 0x1000
lea ecx, [esp + 0x4c]
push ecx
call fcn.004d018a
add esp, 0xc
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b3181
mov eax, dword [edi + 8]
or dword [eax + 0x18], 0x20000000
mov eax, dword [edi + 8]
test dword [eax + 0xc8], 0x400
je 0x4b31cf
mov ecx, dword [0x50bfc4]
mov edx, dword [0x50bfc8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x50bfcc]
push 4
mov dword [eax + 4], edx
mov edx, dword [0x50bfd0]
push 1
mov dword [eax + 8], ecx
push 0x21
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov dword [eax + 0xc], edx
call fcn.004585a0
add esp, 0x20
mov eax, dword [edi + 8]
test dword [eax + 0x1c], 0x2000
je 0x4b31e1
push edi
call fcn.004b5380
mov ecx, dword [esp + 0x2050]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2038]
xor ecx, esp
call fcn.004cf0b8
mov esp, ebp
pop ebp
ret