Function at 0x4e505e
Capabilities:
Get common file path

Disassembly:
push 0x33c
mov eax, 0x5a85ef
call fcn.0056bee1
mov dword [ebp - 0x338], ecx
xor eax, eax
mov word [ebp - 0x220], ax
push 0x206
xor ebx, ebx
push ebx
lea eax, [ebp - 0x21e]
push eax
call fcn.0055fda0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4e5457
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp - 0x274]
call fcn.004037ae
mov dword [ebp - 4], ebx
push str.ImagePath
lea esi, [ebp - 0x290]
call fcn.004037ae
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.0040379b
mov byte [ebp - 4], 2
mov dword [ebp - 0x330], ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x32c], ebx
mov byte [ebp - 4], 4
mov byte [ebp - 4], 5
push str.HKEY_LOCAL_MACHINESystemCurrentControlSet_servicesRiftEnabler
lea esi, [ebp - 0x23c]
call fcn.004037ae
mov byte [ebp - 4], 6
push 0x201
mov edx, esi
lea ecx, [ebp - 0x334]
call fcn.0047dc6d
pop ecx
mov byte [ebp - 4], 7
mov edi, eax
lea esi, [ebp - 0x330]
call fcn.0047da57
mov byte [ebp - 4], 6
lea esi, [ebp - 0x334]
call fcn.0047da46
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x23c]
call fcn.004037d0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x330]
call fcn.0047e469
mov byte [ebp - 4], 0xc
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2d0]
lea ecx, [ebp - 0x258]
call fcn.004044c6
cmp dword [ebp - 0x248], ebx
jbe 0x4e5238
push 0x5c8a58
lea eax, [ebp - 0x23c]
push eax
lea edi, [ebp - 0x258]
call fcn.0042bba8
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
push ebx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x274]
call fcn.0040eb9d
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x23c]
call fcn.004037d0
mov esi, dword [ebp - 0x338]
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x274]
push eax
call fcn.004e5617
test al, al
jne 0x4e5234
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2e0]
call fcn.00409e7a
mov byte [ebp - 4], 3
lea esi, [ebp - 0x32c]
call fcn.0047da46
mov byte [ebp - 4], 2
lea esi, [ebp - 0x330]
call fcn.0047da46
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.004037d0
mov byte [ebp - 4], bl
jmp 0x4e543d
mov byte [esi + 0x30], 1
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2e0]
call fcn.00409e7a
mov dword [ebp - 4], 4
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.00404560
mov byte [ebp - 4], 0x11
push str.HKEY_LOCAL_MACHINESystemCurrentControlSet_servicesOCUSBVID
lea esi, [ebp - 0x23c]
call fcn.004037ae
mov byte [ebp - 4], 0x12
push 0x201
mov edx, esi
lea ecx, [ebp - 0x334]
call fcn.0047dc6d
pop ecx
mov byte [ebp - 4], 0x13
mov edi, eax
lea esi, [ebp - 0x32c]
call fcn.0047da57
mov byte [ebp - 4], 0x12
lea esi, [ebp - 0x334]
call fcn.0047da46
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x23c]
call fcn.004037d0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x32c]
call fcn.0047e469
mov byte [ebp - 4], 0x18
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2d0]
lea ecx, [ebp - 0x258]
call fcn.004044c6
cmp dword [ebp - 0x248], ebx
jbe 0x4e5361
push 0x5c8a58
lea eax, [ebp - 0x23c]
push eax
lea edi, [ebp - 0x258]
call fcn.0042bba8
pop ecx
pop ecx
mov byte [ebp - 4], 0x19
push ebx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x274]
call fcn.0040eb9d
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x23c]
call fcn.004037d0
mov esi, dword [ebp - 0x338]
lea ecx, [esi + 0x34]
lea eax, [ebp - 0x274]
push eax
call fcn.004e5617
test al, al
jne 0x4e535d
mov byte [ebp - 4], 0x17
jmp 0x4e51f4
mov byte [esi + 0x50], 1
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x2e0]
call fcn.00409e7a
mov dword [ebp - 4], 3
jmp 0x4e5203
lea ecx, [ebp - 0x290]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.004037d0
call fcn.0056bf3d
ret