Function at 0x4145d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4407b4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x45a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00412210
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00412210
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.00412210
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00412210
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x45314c
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], str.ByodRobotNest.sys
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], str.ByodRobot.dll
mov ecx, dword [ebp - 0x10]
call fcn.00415bd0
test eax, eax
je 0x414694
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], str.ByodRobotNest64.sys
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], str.ByodRobot64.dll
jmp 0x4146a8
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], str.ByodRobotNest32.sys
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], str.ByodRobot32.dll
mov dword [ebp - 0x14], 0x104
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004122a0
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00412230
mov dword [ebp - 0x14], 0x208
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.004122a0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4531f4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.00412230
mov dword [ebp - 0x14], 0x208
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.004122a0
mov dword [ebp - 0x18], eax
push str..._sys_
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.0040a610
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00412230
push str.drivers_
mov edx, dword [ebp - 0x10]
add edx, 0x14
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00415ee0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00412130
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00412150
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret