Function at 0x45aa50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4613d0
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [esp + 0xa8], ebx
jne 0x45aaab
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x102
push str.._rtxdevice.cpp
push 0x4684dc
push str.__s___e____s___d___error__d__n
push 1
push 0x486aa0
call fcn.00457eb0
add esp, 0x1c
xor al, al
jmp 0x45ad85
cmp dword [esp + 0xac], ebx
jne 0x45aac2
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x106
jmp 0x45aa86
push ebp
mov ebp, dword [esp + 0xb4]
cmp ebp, 0x7f
jbe 0x45aadd
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x10a
jmp 0x45aaf1
cmp dword [edi + 0x124], ebx
jge 0x45ab16
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x10e
push str.._rtxdevice.cpp
push 0x4684dc
push str.__s___e____s___d___error__d__n
push 1
push 0x486aa0
call fcn.00457eb0
add esp, 0x1c
xor al, al
jmp 0x45ad84
push esi
lea esi, [edi + 4]
mov ecx, esi
call fcn.00457d10
mov eax, dword [eax + 0x108]
mov ecx, dword [edi + 0x124]
push eax
push ecx
call dword [sym.imp.RTX_RTSS.SYS_RtQueryPciMsiCapability]
test eax, eax
je 0x45ac33
mov ecx, dword [edi + 0x124]
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x78], ecx
mov ecx, esi
mov dword [esp + 0x60], 2
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebp
call fcn.00457d10
mov edx, dword [eax + 0x108]
mov eax, dword [esp + 0xac]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
call dword [sym.imp.RTX_RTSS.SYS_RtGetCurrentProcessorNumber]
mov ecx, eax
mov edx, 1
shl edx, cl
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x88], edx
call dword [sym.imp.RTX_RTSS.SYS_RtAttachInterrupt]
mov dword [edi + 0x128], eax
cmp eax, ebx
jne 0x45abcc
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x122
jmp 0x45acec
mov ecx, esi
call fcn.00457d10
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.00457d10
mov ecx, dword [edi + 0x124]
mov edx, dword [esp + 0x10]
push ecx
movzx ecx, byte [edx + 0x148]
push ebp
push ecx
push eax
lea edx, [esp + 0x68]
push str._s_MSI__d__PRIORITY__d__BUS__d_
push edx
call fcn.00457740
add esp, 0x18
mov ecx, eax
mov dword [esp + 0xa4], ebx
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___i___s_n
push 4
push 0x486aa0
call fcn.00457eb0
lea ecx, [esp + 0x6c]
jmp 0x45ad6e
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
mov edx, dword [edi + 0x124]
mov dword [esp + 0x24], ecx
mov ecx, esi
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], edx
call fcn.00457d10
mov eax, dword [eax + 0x108]
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.00457d10
movzx ecx, byte [eax + 0x148]
mov dword [esp + 0x38], ecx
mov ecx, esi
call fcn.00457d10
movzx edx, byte [eax + 0x148]
mov eax, dword [esp + 0xac]
mov dword [esp + 0x3c], edx
mov byte [esp + 0x40], 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
call dword [sym.imp.RTX_RTSS.SYS_RtGetCurrentProcessorNumber]
mov ecx, eax
mov edx, 1
shl edx, cl
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x50], edx
call dword [sym.imp.RTX_RTSS.SYS_RtAttachInterrupt]
mov dword [edi + 0x128], eax
cmp eax, ebx
jne 0x45ad0e
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x13d
push str.._rtxdevice.cpp
push 0x4684dc
push str.__s___e____s___d___error__d__n
push 1
push 0x486aa0
call fcn.00457eb0
add esp, 0x1c
xor al, al
jmp 0x45ad83
mov ecx, esi
call fcn.00457d10
mov ecx, esi
mov ebx, eax
call fcn.00457d10
mov ecx, dword [edi + 0x124]
movzx edx, byte [ebx + 0x148]
push ecx
push ebp
push edx
push eax
lea eax, [esp + 0x60]
push str._s_INT__d__PRIORITY__d__BUS__d_
push eax
call fcn.00457740
add esp, 0x18
mov ecx, eax
mov dword [esp + 0xa4], 1
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___i___s_n
push 4
push 0x486aa0
call fcn.00457eb0
lea ecx, [esp + 0x64]
add esp, 0x14
mov dword [esp + 0xa4], 0xffffffff
call fcn.004577c0
mov al, 1
pop esi
pop ebp
mov ecx, dword [esp + 0x94]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 0x10