Function at 0x448140
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x2b0]
mov dword [esp + 0x10], esi
call fcn.00457d10
mov edi, dword [ebp + 8]
lea ecx, [edi + edi*4]
lea ecx, [eax + ecx*8]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x10]
cmp eax, 0x1000
mov dword [esp + 0x3c], ecx
jl 0x4481ec
cmp eax, 0x2000
jge 0x44827a
lea edx, [edi + 0x19]
shl edx, 4
lea ebx, [edx + esi]
push 0x150000
push 0
mov ecx, ebx
call fcn.00446ac0
push 0
mov ecx, ebx
call fcn.004469e0
cmp eax, 0x150000
je 0x448205
call dword [sym.imp.RTX_RTSS.SYS_GetLastError]
push eax
push 0x5aa
push str..XiODeviceMotion.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
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
mov ecx, ebx
call fcn.00446ac0
mov eax, dword [esp + 0x3c]
push edi
mov ecx, esi
mov dword [eax + 0x10], 0x2000
call fcn.0045ada0
push eax
lea ecx, [esp + 0x38]
push str.XiODeviceMotion__d_Port__d___OK_device_detected_
push ecx
call fcn.00457740
add esp, 0x10
mov ecx, eax
mov dword [esp + 0xac], 0
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___i___s_n
push 4
push 0x486aa0
call fcn.00457eb0
add esp, 0x14
lea ecx, [esp + 0x30]
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
mov ecx, dword [esp + 0x3c]
cmp dword [ecx + 0x10], 0x3000
jge 0x448525
mov esi, dword [esp + 0x10]
lea edx, [edi + 0x19]
lea eax, [edi + 0x22]
shl edx, 4
shl eax, 4
add edx, esi
add eax, esi
xor ebx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
add esi, 0x180
jmp 0x4482b0
mov ecx, ebx
shl ecx, 0x10
push ecx
mov ecx, dword [esp + 0x18]
push ebx
call fcn.00446ac0
mov ecx, dword [esp + 0x14]
push 0x8000
push ebx
call fcn.00446c90
mov ecx, dword [esp + 0x20]
push 0
push ebx
call fcn.00446c90
push 0
push edi
mov ecx, esi
call fcn.00446330
push ebx
push edi
mov ecx, esi
call fcn.00446420
mov ecx, ebx
mov eax, 0x10001
shl eax, cl
mov dword [esp + 0x2c], 3
mov dword [esp + 0x18], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x24], eax
mov edi, edi
push 0x17
push edi
mov ecx, esi
call fcn.00446250
push 0xb0000
push edi
mov ecx, esi
call fcn.00446250
mov dword [esp + 0x40], 3
nop
push edi
mov ecx, esi
call fcn.004468d0
and eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x24]
jne 0x44835f
mov ecx, dword [esp + 0x20]
push ebx
call fcn.00446ba0
test eax, 0x8000
je 0x44835f
push edi
mov ecx, esi
call fcn.004467e0
test eax, eax
je 0x448379
push 1
call dword [sym.imp.RTX_RTSS.SYS_Sleep]
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
test eax, eax
jg 0x448330
jmp 0x448447
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov eax, edi
shl eax, 4
add eax, ebx
mov dword [esp + 0x40], eax
imul eax, eax, 0x1738
mov dword [edx + 0x10], 0x3000
push 0
mov dword [eax + ecx + 0x178], 0x1000
push edi
mov ecx, esi
call fcn.00446330
push 0x10001
push edi
mov ecx, esi
call fcn.00446510
push 1
push edi
mov ecx, esi
call fcn.00446600
push 0x1f
push edi
mov ecx, esi
call fcn.004466f0
push 0xe0000
push edi
mov ecx, esi
call fcn.00446250
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
push ebx
push edi
push edx
call fcn.0045ada0
push eax
lea eax, [esp + 0x40]
push str.XiODeviceMotion__d_Drive__d___OK_amplifier_connected__port__d__segment__d_
push eax
call fcn.00457740
add esp, 0x18
mov ecx, eax
mov dword [esp + 0xac], 1
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___i___s_n
push 4
push 0x486aa0
call fcn.00457eb0
add esp, 0x14
lea ecx, [esp + 0x30]
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
mov dword [esp + 0x2c], 0
push 1
call dword [sym.imp.RTX_RTSS.SYS_Sleep]
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
test eax, eax
jg 0x448310
inc ebx
cmp ebx, 0x10
jb 0x4482b0
mov ecx, dword [esp + 0x3c]
cmp dword [ecx + 0x10], 0x3000
je 0x4484ed
mov ecx, dword [esp + 0x10]
push edi
call fcn.0045ada0
push eax
lea edx, [esp + 0x38]
push str.XiODeviceMotion__d_Port__d___NG_amplifier_disconnection_
push edx
call fcn.00457740
add esp, 0x10
mov ecx, eax
mov dword [esp + 0xac], 2
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 + 0x30]
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
xor al, al
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x10]
mov ecx, esi
add ebx, 0x160
call fcn.00447fc0
push eax
mov ecx, ebx
call fcn.00445100
mov ecx, esi
call fcn.00447fc0
push eax
mov ecx, ebx
call fcn.00445560
push 1
call dword [sym.imp.RTX_RTSS.SYS_Sleep]
mov ecx, dword [esp + 0x3c]
cmp dword [ecx + 0x10], 0x4000
jge 0x44940e
mov ecx, dword [esp + 0x44]
mov eax, edi
shl eax, 4
mov dword [esp + 0x2c], eax
mov eax, edi
imul eax, eax, 0x17380
add eax, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x40]
xor esi, esi
mov dword [esp + 0x28], edx
add ebx, 0x178
lea esp, [esp]
cmp dword [ebx], 0x1000
jne 0x448f57
mov ecx, dword [esp + 0x10]
mov eax, esi
shl eax, 0x10
mov dword [esp + 0x48], eax
lea eax, [edi + 0x19]
shl eax, 4
add eax, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
lea ecx, [ecx]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
push edx
push esi
call fcn.00446ac0
movzx ecx, word [ebx + 0x140a]
mov edx, dword [esp + 0x1c]
movzx edx, word [edx*4 + 0x4694a8]
movzx eax, cx
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x1c]
shl eax, 8
or eax, dword [edx*4 + 0x469490]
inc ecx
push eax
mov word [ebx + 0x140a], cx
mov ecx, dword [esp + 0x18]
push esi
call fcn.00446c90
mov eax, dword [ebx + 0x13fc]
mov ecx, dword [esp + 0x1c]
imul eax, eax, 0x19
add eax, dword [ecx*4 + 0x469490]
mov ecx, dword [esp + 0x14]
shl eax, 5
movzx edx, word [eax + ebx + 0x126]
add eax, ebx
movzx eax, word [eax + 0x124]
shl edx, 0x10
or edx, eax
push edx
push esi
call fcn.00446e70
mov ecx, dword [ebx + 0x13fc]
mov edx, dword [esp + 0x1c]
imul ecx, ecx, 0x19
add ecx, dword [edx*4 + 0x469490]
shl ecx, 5
movzx edx, word [ecx + ebx + 0x128]
lea eax, [ecx + ebx]
movzx ecx, word [eax + 0x12a]
shl ecx, 0x10
or ecx, edx
push ecx
mov ecx, dword [esp + 0x18]
push esi
call fcn.00447050
mov eax, dword [ebx + 0x13fc]
mov ecx, dword [esp + 0x1c]
imul eax, eax, 0x19
add eax, dword [ecx*4 + 0x469490]
mov ecx, dword [esp + 0x14]
shl eax, 5
movzx edx, word [eax + ebx + 0x12e]
add eax, ebx
movzx eax, word [eax + 0x12c]
shl edx, 0x10
or edx, eax
push edx
push esi
call fcn.00447230
mov ecx, dword [ebx + 0x13fc]
mov edx, dword [esp + 0x1c]
imul ecx, ecx, 0x19
add ecx, dword [edx*4 + 0x469490]
shl ecx, 5
movzx edx, word [ecx + ebx + 0x130]
lea eax, [ecx + ebx]
movzx ecx, word [eax + 0x132]
shl ecx, 0x10
or ecx, edx
push ecx
mov ecx, dword [esp + 0x18]
push esi
call fcn.00447410
mov ecx, dword [esp + 0x10]
push 1
call fcn.00447f20
push esi
push edi
mov ecx, dword [esp + 0x18]
add ecx, 0x180
call fcn.00446420
mov ecx, dword [esp + 0x10]
push 0xe0010
push edi
add ecx, 0x180
call fcn.00446250
mov ecx, dword [esp + 0x10]
push 0xf0000
push edi
add ecx, 0x180
call fcn.00446250
call fcn.00458e00
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
call fcn.00458e00
sub eax, dword [esp + 0x30]
sbb edx, dword [esp + 0x34]
test edx, edx
ja 0x4487e5
jb 0x448742
cmp eax, 0x1f4
jae 0x4487e5
mov ecx, esi
mov eax, 0x10001
shl eax, cl
mov dword [esp + 0x18], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x20], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
push edi
add ecx, 0x180
call fcn.004468d0
and eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x20]
jne 0x448792
mov ecx, dword [esp + 0x10]
push edi
add ecx, 0x180
call fcn.004467e0
test eax, eax
je 0x44887e
mov ecx, dword [esp + 0x10]
push edi
add ecx, 0x180
call fcn.004468d0
mov edx, 0x10000
mov ecx, esi
shl edx, cl
test edx, eax
je 0x4487c4
mov ecx, dword [esp + 0x10]
push 0xe0004
push edi
add ecx, 0x180
call fcn.00446250
call fcn.00458e00
sub eax, dword [esp + 0x30]
sbb edx, dword [esp + 0x34]
mov dword [esp + 0x9c], edx
jne 0x4487e5
cmp eax, 0x1f4
jb 0x448760
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 3
jne 0x448868
mov edx, dword [esp + 0x1c]
mov eax, dword [edx*4 + 0x469490]
mov ecx, dword [esp + 0x28]
push eax
push esi
push edi
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0045ada0
push eax
lea edx, [esp + 0x9c]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d___NG_setting_parameter__B_02d
push edx
call fcn.00457740
add esp, 0x1c
mov ecx, eax
mov dword [esp + 0xac], 0xb
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___w___s_n
push 2
push 0x486aa0
call fcn.00457eb0
lea ecx, [esp + 0x9c]
add esp, 0x14
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
mov eax, dword [esp + 0x18]
cmp eax, 3
mov dword [esp + 0x24], eax
jl 0x4485a0
jmp 0x448f57
mov ecx, dword [esp + 0x14]
push esi
call fcn.00446ba0
mov ecx, dword [esp + 0x10]
and eax, 0xffc0
mov dword [esp + 0x18], eax
lea eax, [edi + 0x22]
shl eax, 4
add ecx, eax
push esi
mov dword [esp + 0x24], ecx
call fcn.00446ba0
and eax, 0xff7f
cmp dword [esp + 0x18], eax
je 0x448941
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 3
jne 0x448868
mov ecx, dword [esp + 0x20]
push esi
call fcn.00446ba0
mov ecx, dword [esp + 0x14]
push eax
push esi
call fcn.00446ba0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [edx*4 + 0x469490]
push eax
push esi
push edi
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0045ada0
push eax
lea edx, [esp + 0xac]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d___NG_setting_parameter__B_02d_D1D0_TX_0x_08X__RX_0x_08X_
push edx
call fcn.00457740
add esp, 0x24
mov ecx, eax
mov dword [esp + 0xac], 3
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___w___s_n
push 2
push 0x486aa0
call fcn.00457eb0
lea ecx, [esp + 0xa4]
jmp 0x448855
mov ecx, dword [esp + 0x20]
push esi
call fcn.00446ba0
test al, al
jns 0x4489e2
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 3
jne 0x448868
mov ecx, dword [esp + 0x20]
push esi
call fcn.00446ba0
mov ecx, dword [esp + 0x14]
push eax
push esi
call fcn.00446ba0
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax*4 + 0x469490]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edi
push edx
call fcn.0045ada0
push eax
lea eax, [esp + 0x8c]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d___NG_setting_parameter__B_02d.D1D0.TX_0x_08X_RX_0x_08X_
push eax
call fcn.00457740
add esp, 0x24
mov ecx, eax
mov dword [esp + 0xac], 4
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___w___s_n
push 2
push 0x486aa0
call fcn.00457eb0
lea ecx, [esp + 0x84]
jmp 0x448855
mov ecx, dword [esp + 0x1c]
cmp dword [ecx*4 + 0x469490], 0
jne 0x448a8c
mov ecx, dword [esp + 0x20]
push esi
call fcn.00446d80
test al, al
js 0x448a8c
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 3
jne 0x448868
mov ecx, dword [esp + 0x20]
push esi
call fcn.00447140
mov ecx, dword [esp + 0x20]
movzx edx, ax
push edx
push esi
call fcn.00446d80
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x30]
push esi
push edi
push eax
call fcn.0045ada0
push eax
lea ecx, [esp + 0x90]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d___NG_initialize_amplifier__B66.D3D2.RX_0x_08X__alarm__04X_
push ecx
call fcn.00457740
add esp, 0x20
mov ecx, eax
mov dword [esp + 0xac], 5
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___w___s_n
push 2
push 0x486aa0
call fcn.00457eb0
lea ecx, [esp + 0x8c]
jmp 0x448855
cmp dword [esp + 0x1c], 0
jle 0x448ec4
cmp dword [esp + 0x1c], 6
jae 0x448ec4
mov eax, dword [esp + 0x1c]
cmp dword [eax*4 + 0x4694a8], 0x42
je 0x448ec4
mov eax, dword [ebx + 0x13fc]
mov edx, dword [esp + 0x10]
imul eax, eax, 0x19
lea ecx, [edi + 0x22]
shl ecx, 4
add ecx, edx
mov edx, dword [esp + 0x1c]
add eax, dword [edx*4 + 0x4694a8]
push esi
shl eax, 5
add eax, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
call fcn.00446d80
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx + 0x126]
movzx ecx, word [ecx + 0x124]
shl edx, 0x10
or edx, ecx
cmp eax, edx
je 0x448bc1
mov edx, dword [esp + 0x24]
inc edx
cmp edx, 3
jne 0x448bc1
mov ecx, dword [ebx + 0x13fc]
mov eax, dword [esp + 0x1c]
imul ecx, ecx, 0x19
mov eax, dword [eax*4 + 0x4694a8]
add ecx, eax
shl ecx, 5
add ecx, ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
push esi
mov dword [esp + 0x1c], eax
call fcn.00446d80
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 0x124]
movzx eax, word [eax + 0x126]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push esi
push edi
push edx
call fcn.0045ada0
push eax
lea eax, [esp + 0x88]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d___B_02d.D3D2.TX_0x_04X_04X_RX_0x_08X_
push eax
call fcn.00457740
add esp, 0x28
mov ecx, eax
mov dword [esp + 0xac], 6
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 + 0x68]
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
mov ecx, dword [ebx + 0x13fc]
mov edx, dword [esp + 0x1c]
imul ecx, ecx, 0x19
add ecx, dword [edx*4 + 0x4694a8]
push esi
shl ecx, 5
add ecx, ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
call fcn.00446f60
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx + 0x12a]
movzx ecx, word [ecx + 0x128]
shl edx, 0x10
or edx, ecx
cmp eax, edx
je 0x448cc5
mov edx, dword [esp + 0x24]
inc edx
cmp edx, 3
jne 0x448cc5
mov ecx, dword [ebx + 0x13fc]
mov eax, dword [esp + 0x1c]
imul ecx, ecx, 0x19
mov eax, dword [eax*4 + 0x4694a8]
add ecx, eax
shl ecx, 5
add ecx, ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
push esi
mov dword [esp + 0x1c], eax
call fcn.00446f60
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 0x128]
movzx eax, word [eax + 0x12a]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push esi
push edi
push edx
call fcn.0045ada0
push eax
lea eax, [esp + 0xa0]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d___B_02d.D5D4.TX_0x_04X_04X_RX_0x_08X_
push eax
call fcn.00457740
add esp, 0x28
mov ecx, eax
mov dword [esp + 0xac], 7
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 + 0x80]
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
mov ecx, dword [ebx + 0x13fc]
mov edx, dword [esp + 0x1c]
imul ecx, ecx, 0x19
add ecx, dword [edx*4 + 0x4694a8]
push esi
shl ecx, 5
add ecx, ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
call fcn.00447140
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx + 0x12e]
movzx ecx, word [ecx + 0x12c]
shl edx, 0x10
or edx, ecx
cmp eax, edx
je 0x448dc3
mov edx, dword [esp + 0x24]
inc edx
cmp edx, 3
jne 0x448dc3
mov ecx, dword [ebx + 0x13fc]
mov eax, dword [esp + 0x1c]
imul ecx, ecx, 0x19
mov eax, dword [eax*4 + 0x4694a8]
add ecx, eax
shl ecx, 5
add ecx, ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
push esi
mov dword [esp + 0x1c], eax
call fcn.00447140
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 0x12c]
movzx eax, word [eax + 0x12e]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push esi
push edi
push edx
call fcn.0045ada0
push eax
lea eax, [esp + 0x78]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d___B_02d.D7D6.TX_0x_04X_04X_RX_0x_08X_
push eax
call fcn.00457740
add esp, 0x28
mov ecx, eax
mov dword [esp + 0xac], 8
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 + 0x58]
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
mov ecx, dword [ebx + 0x13fc]
mov edx, dword [esp + 0x1c]
imul ecx, ecx, 0x19
add ecx, dword [edx*4 + 0x4694a8]
push esi
shl ecx, 5
add ecx, ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
call fcn.00447320
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx + 0x132]
movzx ecx, word [ecx + 0x130]
shl edx, 0x10
or edx, ecx
cmp eax, edx
je 0x448ec4
mov edx, dword [esp + 0x24]
inc edx
cmp edx, 3
jne 0x448ec4
mov ecx, dword [ebx + 0x13fc]
mov eax, dword [esp + 0x1c]
imul ecx, ecx, 0x19
mov eax, dword [eax*4 + 0x4694a8]
add ecx, eax
shl ecx, 5
add ecx, ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
push esi
mov dword [esp + 0x1c], eax
call fcn.00447320
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 0x130]
movzx eax, word [eax + 0x132]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push esi
push edi
push edx
call fcn.0045ada0
push eax
lea eax, [esp + 0x80]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d___B_02d.D9D8.TX_0x_04X_04X_RX_0x_08X_
push eax
call fcn.00457740
add esp, 0x28
mov ecx, eax
mov dword [esp + 0xac], 9
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 + 0x60]
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 6
jne 0x448ed4
mov dword [ebx], 0x2000
mov edx, dword [esp + 0x1c]
mov eax, dword [edx*4 + 0x469490]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.00458e00
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
sbb edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x34]
push eax
push esi
push edi
push edx
call fcn.0045ada0
push eax
lea eax, [esp + 0x70]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d__time__I64uus__retry__d___OK_setting_parameter__B_02d
push eax
call fcn.00457740
add esp, 0x28
mov ecx, eax
mov dword [esp + 0xac], 0xa
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___i___s_n
push 4
push 0x486aa0
call fcn.00457eb0
add esp, 0x14
lea ecx, [esp + 0x50]
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
inc dword [esp + 0x28]
inc esi
add ebx, 0x1738
cmp esi, 0x10
jl 0x448570
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 6
jb 0x448555
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
xor esi, esi
add eax, 0x178
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
cmp dword [edx], 0x2000
jne 0x4492cd
mov eax, esi
shl eax, 0x10
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
lea edx, [edi + 0x19]
lea ecx, [eax + 0x180]
shl edx, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ecx
lea ebx, [edx + eax]
lea esp, [esp]
mov eax, dword [esp + 0x48]
push eax
push esi
mov ecx, ebx
call fcn.00446ac0
mov edx, dword [esp + 0x24]
movzx ecx, word [edx + 0x140a]
movzx eax, cx
shl eax, 0x10
or eax, 0x4114
inc ecx
push eax
mov word [edx + 0x140a], cx
push esi
mov ecx, ebx
call fcn.00446c90
push 0x2080
push esi
mov ecx, ebx
call fcn.00446e70
push 0
push esi
mov ecx, ebx
call fcn.00447050
push 0
push esi
mov ecx, ebx
call fcn.00447230
push 0
push esi
mov ecx, ebx
call fcn.00447410
mov ecx, dword [esp + 0x10]
push 1
call fcn.00447f20
mov ecx, dword [esp + 0x18]
push esi
push edi
call fcn.00446420
mov ecx, dword [esp + 0x18]
push 0xe0010
push edi
call fcn.00446250
mov ecx, dword [esp + 0x18]
push 0xf0000
push edi
call fcn.00446250
call fcn.00458e00
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
call fcn.00458e00
sub eax, dword [esp + 0x30]
sbb edx, dword [esp + 0x34]
test edx, edx
ja 0x449119
jb 0x449092
cmp eax, 0x1f4
jae 0x449119
mov ecx, esi
mov eax, 0x10001
shl eax, cl
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x20], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x18]
push edi
call fcn.004468d0
and eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x20]
jne 0x4490d6
mov ecx, dword [esp + 0x18]
push edi
call fcn.004467e0
test eax, eax
je 0x4491a0
mov ecx, dword [esp + 0x18]
push edi
call fcn.004468d0
mov edx, 0x10000
mov ecx, esi
shl edx, cl
test edx, eax
je 0x4490fc
mov ecx, dword [esp + 0x18]
push 0xe0004
push edi
call fcn.00446250
call fcn.00458e00
sub eax, dword [esp + 0x30]
sbb edx, dword [esp + 0x34]
mov dword [esp + 0x9c], edx
jne 0x449119
cmp eax, 0x1f4
jb 0x4490b0
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, 3
jne 0x44918a
mov ecx, dword [esp + 0x28]
push esi
push edi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0045ada0
push eax
lea edx, [esp + 0x70]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d___NG_setting_scan_
push edx
call fcn.00457740
add esp, 0x18
mov ecx, eax
mov dword [esp + 0xac], 0xe
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___w___s_n
push 2
push 0x486aa0
call fcn.00457eb0
lea ecx, [esp + 0x74]
add esp, 0x14
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
mov eax, dword [esp + 0x2c]
cmp eax, 3
mov dword [esp + 0x14], eax
jl 0x448fd0
jmp 0x4492cd
mov ecx, dword [esp + 0x10]
lea eax, [edi + 0x22]
shl eax, 4
add ecx, eax
push esi
mov dword [esp + 0x24], ecx
call fcn.00446d80
test eax, 0x400
jne 0x44924c
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, 3
jne 0x44918a
mov ecx, dword [esp + 0x20]
push esi
call fcn.00446d80
push eax
push esi
mov ecx, ebx
call fcn.00446d80
mov ecx, dword [esp + 0x24]
push eax
push esi
call fcn.00446ba0
push eax
push esi
mov ecx, ebx
call fcn.00446ba0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
push eax
push esi
push edi
push edx
call fcn.0045ada0
push eax
lea eax, [esp + 0x70]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d___NG_setting_scan__B20.D1D0.TX_0x_08X__B65.D1D0.RX_0x_08X__B20.D3D2.TX_0x_08X__B65.D3D2.RX_0x_08X_
push eax
call fcn.00457740
add esp, 0x28
mov ecx, eax
mov dword [esp + 0xac], 0xc
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___w___s_n
push 2
push 0x486aa0
call fcn.00457eb0
lea ecx, [esp + 0x64]
jmp 0x449177
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push ecx
mov dword [eax], 0x3000
call fcn.00458e00
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
sbb edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x30]
push eax
push esi
push edi
push edx
call fcn.0045ada0
push eax
lea eax, [esp + 0x74]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d__time__I64uus__retry__d___OK_enable_scan_mode_
push eax
call fcn.00457740
add esp, 0x24
mov ecx, eax
mov dword [esp + 0xac], 0xd
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___i___s_n
push 4
push 0x486aa0
call fcn.00457eb0
add esp, 0x14
lea ecx, [esp + 0x58]
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
add dword [esp + 0x24], 0x1738
inc dword [esp + 0x28]
inc esi
cmp esi, 0x10
jl 0x448f94
mov ecx, dword [esp + 0x40]
or edx, 0xffffffff
lea eax, [edx + 3]
add ecx, 0x18b0
mov esi, 0x3000
cmp dword [ecx - 0x1738], esi
jne 0x449303
lea edx, [eax - 2]
cmp dword [ecx], esi
jne 0x44930a
lea edx, [eax - 1]
cmp dword [ecx + 0x1738], esi
cmove edx, eax
cmp dword [ecx + 0x2e70], esi
jne 0x44931e
lea edx, [eax + 1]
add eax, 4
lea ebx, [eax - 2]
add ecx, 0x5ce0
cmp ebx, 0x10
jl 0x4492f8
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
test edx, edx
jl 0x44939e
mov ecx, edx
or ecx, 0x100
push ecx
push edi
lea ecx, [ebx + 0x160]
call fcn.00445aa0
push 3
lea esi, [ebx + 0x180]
push edi
mov ecx, esi
call fcn.00446330
mov edx, dword [esp + 0x2c]
push edx
push edi
mov ecx, esi
call fcn.00446420
push 0x10001
push edi
mov ecx, esi
call fcn.00446510
push 1
push edi
mov ecx, esi
call fcn.00446600
push 0x1388001f
push edi
mov ecx, esi
call fcn.004466f0
push 0xf0000
push edi
mov ecx, esi
call fcn.00446250
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x10], 0x4000
call fcn.00447fc0
push eax
push edi
mov ecx, ebx
call fcn.0045ada0
push eax
lea ecx, [esp + 0x5c]
push str.XiODeviceMotion__d_Port__d___OK_device_scannable__synchronous_0x_08X_
push ecx
call fcn.00457740
add esp, 0x14
mov ecx, eax
mov dword [esp + 0xac], 0xf
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___i___s_n
push 4
push 0x486aa0
call fcn.00457eb0
add esp, 0x14
lea ecx, [esp + 0x50]
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov eax, edi
shl eax, 4
mov dword [esp + 0x2c], eax
xor ebx, ebx
mov eax, edi
imul eax, eax, 0x17380
mov dword [edx + 0x14], ebx
lea esi, [eax + ecx + 0x1582]
jmp 0x449440
cmp dword [esi - 0x140a], 0x3000
jne 0x449546
mov dx, word [esi + 2]
inc word [esi]
mov ecx, 0x4054
movzx eax, cx
mov word [esi - 2], cx
mov ecx, 0xffc7
and dx, cx
mov ecx, 0x20c6
or dx, cx
xor ecx, ecx
mov word [esi + 6], cx
mov ecx, dword [esi - 0x13f2]
mov word [esi + 2], dx
xor edx, edx
and ecx, 0xffff0000
mov word [esi - 4], bx
mov word [esi + 4], dx
mov word [esi + 8], dx
cmp ecx, 0x2020000
jne 0x4494b3
mov edx, dword [esp + 0x3c]
and eax, 0xffd8
or eax, 0x18
mov word [esi - 2], ax
mov byte [edx + 0x18], 1
push 0x320
lea eax, [esi - 0x34e]
push 0
push eax
call fcn.00409680
mov ecx, dword [esp + 0x38]
add esp, 0xc
push ebx
add ecx, ebx
push edi
xor eax, eax
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x326], eax
mov dword [esi - 0x12f2], eax
mov dword [esi - 0x140a], 0x4000
call fcn.0045ada0
push eax
lea edx, [esp + 0x58]
push str.XiODeviceMotion__d__axis__d__port__d__segment__d__OK_scan_mode_
push edx
call fcn.00457740
add esp, 0x18
mov ecx, eax
mov dword [esp + 0xac], 0x10
call fcn.004577e0
push eax
push 0x4684dc
push str.__s___i___s_n
push 4
push 0x486aa0
call fcn.00457eb0
add esp, 0x14
lea ecx, [esp + 0x48]
mov dword [esp + 0xac], 0xffffffff
call fcn.004577c0
inc ebx
add esi, 0x1738
cmp ebx, 0x10
jl 0x449440
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4