Function at 0x4ddda6
Capabilities:
Get common file path

Disassembly:
push 0x33c
mov eax, 0x5a98c4
call fcn.0056cecb
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.00560d40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4de19d
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp - 0x274]
call fcn.00409096
mov dword [ebp - 4], ebx
push str.ImagePath
lea esi, [ebp - 0x290]
call fcn.00409096
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.00409083
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.00409096
mov byte [ebp - 4], 6
push 0x201
mov edx, esi
lea ecx, [ebp - 0x334]
call fcn.0047932c
pop ecx
mov byte [ebp - 4], 7
mov edi, eax
lea esi, [ebp - 0x330]
call fcn.00479116
mov byte [ebp - 4], 6
lea esi, [ebp - 0x334]
call fcn.00479105
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x23c]
call fcn.004090d2
mov dword [ebp - 4], 4
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x290]
lea edx, [ebp - 0x330]
call fcn.0047983e
mov byte [ebp - 4], 0xc
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2d0]
lea ecx, [ebp - 0x258]
call fcn.0040ac9e
cmp dword [ebp - 0x248], ebx
jbe 0x4ddf7f
push 0x5c2724
lea eax, [ebp - 0x23c]
push eax
lea edi, [ebp - 0x258]
call fcn.00429316
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
push ebx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x274]
call fcn.0040ab69
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x23c]
call fcn.004090d2
mov esi, dword [ebp - 0x338]
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x274]
push eax
call fcn.004de35d
test al, al
jne 0x4ddf7b
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2e0]
call fcn.004051d8
mov byte [ebp - 4], 3
lea esi, [ebp - 0x32c]
call fcn.00479105
mov byte [ebp - 4], 2
lea esi, [ebp - 0x330]
call fcn.00479105
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.004090d2
mov byte [ebp - 4], bl
jmp 0x4de183
mov byte [esi + 0x30], 1
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2e0]
call fcn.004051d8
mov dword [ebp - 4], 4
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.0040ad38
mov byte [ebp - 4], 0x11
push str.HKEY_LOCAL_MACHINESystemCurrentControlSet_servicesOCUSBVID
lea esi, [ebp - 0x23c]
call fcn.00409096
mov byte [ebp - 4], 0x12
push 0x201
mov edx, esi
lea ecx, [ebp - 0x334]
call fcn.0047932c
pop ecx
mov byte [ebp - 4], 0x13
mov edi, eax
lea esi, [ebp - 0x32c]
call fcn.00479116
mov byte [ebp - 4], 0x12
lea esi, [ebp - 0x334]
call fcn.00479105
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x23c]
call fcn.004090d2
mov dword [ebp - 4], 4
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x290]
lea edx, [ebp - 0x32c]
call fcn.0047983e
mov byte [ebp - 4], 0x18
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2d0]
lea ecx, [ebp - 0x258]
call fcn.0040ac9e
cmp dword [ebp - 0x248], ebx
jbe 0x4de0a7
push 0x5c2724
lea eax, [ebp - 0x23c]
push eax
lea edi, [ebp - 0x258]
call fcn.00429316
pop ecx
pop ecx
mov byte [ebp - 4], 0x19
push ebx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x274]
call fcn.0040ab69
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x23c]
call fcn.004090d2
mov esi, dword [ebp - 0x338]
lea ecx, [esi + 0x34]
lea eax, [ebp - 0x274]
push eax
call fcn.004de35d
test al, al
jne 0x4de0a3
mov byte [ebp - 4], 0x17
jmp 0x4ddf3b
mov byte [esi + 0x50], 1
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x2e0]
call fcn.004051d8
mov dword [ebp - 4], 3
jmp 0x4ddf4a
lea ecx, [ebp - 0x290]
call fcn.004090d2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.004090d2
call fcn.0056cf27
ret