Function at 0x4475e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460b56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x469dd0
mov dword [esp + 0x34], 0xb
call fcn.0045adb0
lea ecx, [esi + 0x2b0]
test eax, eax
jge 0x447792
call fcn.00457d10
lea edi, [esi + 0x160]
push 1
mov ecx, edi
mov ebx, eax
call fcn.00444af0
push 1
mov ecx, edi
call fcn.004453a0
push 0
mov ecx, edi
call fcn.00445480
mov ebp, dword [sym.imp.RTX_RTSS.SYS_Sleep]
push 0xa
call ebp
push 0
mov ecx, edi
call fcn.004451e0
push 0xa
call ebp
mov eax, dword [esi + 0x3d4]
mov edi, dword [sym.imp.RTX_RTSS.SYS_TerminateThread]
test eax, eax
je 0x44767d
push 0
push eax
call edi
mov eax, dword [esi + 0x3d0]
test eax, eax
je 0x44768c
push 0
push eax
call edi
mov eax, dword [esi + 0x3cc]
test eax, eax
je 0x44769b
push 0
push eax
call edi
mov ebp, dword [sym.imp.RTX_RTSS.SYS_GetLastError]
lea edi, [ebx + 0xd3fe0]
mov dword [esp + 0x10], 0xbb8
mov bl, 0xd
mov eax, dword [edi - 0x2ee0]
test eax, eax
je 0x44771e
push eax
call dword [sym.imp.RTX_RTSS.SYS_RtFreeContiguousMemory]
test eax, eax
jne 0x44771e
call ebp
push eax
mov eax, dword [edi - 0x2ee0]
push eax
mov ecx, esi
call fcn.0045ada0
push eax
lea ecx, [esp + 0x24]
push str.XiODeviceMotion__d___could_not_free_to_the_transmit_contiguous_memory_0x_08X___error__d_
push ecx
call fcn.00457740
add esp, 0x14
mov ecx, eax
mov byte [esp + 0x34], 0xc
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___w___s_n
push 2
push 0x486aa0
call fcn.00457eb0
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0xb
call fcn.004577c0
mov eax, dword [edi]
test eax, eax
je 0x447782
push eax
call dword [sym.imp.RTX_RTSS.SYS_RtFreeContiguousMemory]
test eax, eax
jne 0x447782
call ebp
mov edx, dword [edi]
push eax
push edx
mov ecx, esi
call fcn.0045ada0
push eax
lea eax, [esp + 0x2c]
push str.XiODeviceMotion__d___could_not_free_to_the_receive_contiguous_memory_0x_08X___error__d_
push eax
call fcn.00457740
add esp, 0x14
mov ecx, eax
mov byte [esp + 0x34], bl
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___w___s_n
push 2
push 0x486aa0
call fcn.00457eb0
add esp, 0x14
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 0xb
call fcn.004577c0
add edi, 4
sub dword [esp + 0x10], 1
jne 0x4476b1
jmp 0x44780b
call fcn.00457d10
mov ecx, esi
mov edi, eax
call fcn.0045adb0
imul eax, eax, 0x1738
cmp dword [eax + edi + 0x1e4], 0
mov ebx, dword [sym.imp.RTX_RTSS.SYS_TerminateThread]
lea edi, [eax + edi + 0x178]
je 0x4477cc
mov eax, dword [esi + 0x3e4]
test eax, eax
je 0x4477cc
push 0
push eax
call ebx
cmp dword [edi + 0xa4], 0
je 0x4477e4
mov eax, dword [esi + 0x3d8]
test eax, eax
je 0x4477e4
push 0
push eax
call ebx
cmp dword [edi + 0xa8], 0
je 0x4477fc
mov eax, dword [esi + 0x3dc]
test eax, eax
je 0x4477fc
push 0
push eax
call ebx
mov eax, dword [esi + 0x3e0]
test eax, eax
je 0x44780b
push 0
push eax
call ebx
lea ecx, [esi + 0x1dc40]
mov byte [esp + 0x34], 0xa
call fcn.00458880
push 0x4475d0
push 0x90
push 0x114
lea ecx, [esi + 0x14100]
push ecx
mov byte [esp + 0x44], 9
call fcn.0045b2e6
push 0x4475d0
push 0x90
push 0x114
lea edx, [esi + 0xa5c0]
push edx
mov byte [esp + 0x44], 8
call fcn.0045b2e6
push 0x43f8b0
push 0x90
push 0x118
lea eax, [esi + 0x840]
push eax
mov byte [esp + 0x44], 7
call fcn.0045b2e6
lea ecx, [esi + 0x728]
mov byte [esp + 0x34], 6
call fcn.004587a0
lea ecx, [esi + 0x614]
mov byte [esp + 0x34], 5
call fcn.00458880
lea ecx, [esi + 0x500]
mov byte [esp + 0x34], 4
call fcn.00458880
lea ecx, [esi + 0x3e8]
mov byte [esp + 0x34], 3
call fcn.004587a0
lea ecx, [esi + 0x2b0]
mov byte [esp + 0x34], 2
call fcn.00458a50
push fcn.00417eb0
push 9
push 0x10
lea ecx, [esi + 0x220]
push ecx
mov byte [esp + 0x44], 1
call fcn.0045b2e6
push fcn.00417eb0
push 9
push 0x10
lea edx, [esi + 0x190]
push edx
mov byte [esp + 0x44], 0
call fcn.0045b2e6
mov ecx, esi
mov dword [esp + 0x34], 0xffffffff
call fcn.0043ead0
mov ecx, dword [esp + 0x2c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret