Function at 0x10034a50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072530
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x164
mov eax, dword [0x1008e46c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x2c]
call fcn.1002aa40
mov dword [ebp - 0x38], 6
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 8]
and eax, 8
je 0x10034d76
lea eax, [ebp - 0x170]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x310
call fcn.1001cea0
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
jmp 0x10034afb
push 0
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1003c510
lea eax, [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x310
call fcn.1001cee0
push eax
lea ecx, [ebp - 0x2c]
call fcn.1002aa60
movzx ecx, al
test ecx, ecx
je 0x10034d76
lea ecx, [ebp - 0x2c]
call fcn.1003c4f0
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
and eax, 0xff000000
shr eax, 0x18
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x44]
and eax, 0xff0000
shr eax, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
and eax, 0xfffe
shr eax, 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
imul eax, eax, 0x3e8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x10034c31
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x48]
jbe 0x10034c31
mov ecx, dword [ebp - 0x18]
add ecx, 0xfc
call fcn.1001b580
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax + 0x54]
jae 0x10034bc4
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push str.Waiting_Di_timeout:Di_port:Axis_io:_d:_d
push 0xc8
lea edx, [ebp - 0x114]
push edx
call fcn.10046e3a
add esp, 0x14
jmp 0x10034c12
cmp dword [ebp - 0x38], 0xff
jne 0x10034bec
mov eax, dword [ebp - 0x3c]
push eax
push str.Waiting_Di_timeout:Di_port:Device_io:_d
push 0xc8
lea ecx, [ebp - 0x114]
push ecx
call fcn.10046e3a
add esp, 0x10
jmp 0x10034c12
cmp dword [ebp - 0x38], 0xfe
jne 0x10034c12
mov eax, dword [ebp - 0x3c]
push eax
push str.Waiting_Di_timeout:Di_port:Ext_Io:_d
push 0xc8
lea ecx, [ebp - 0x114]
push ecx
call fcn.10046e3a
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xfc
call fcn.1001b460
mov eax, 0x8100022f
jmp 0x10034fb6
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax + 0x54]
jae 0x10034c86
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3c
call fcn.1003b9a0
cmp dword [eax], 0
je 0x10034c81
lea eax, [ebp - 0x3d]
push eax
movzx ecx, word [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x3c
call fcn.1003b9a0
mov eax, dword [eax]
push eax
call sym.ADVMOT.dll_Acm_AxDiGetBit
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10034c81
mov eax, dword [ebp - 0x1c]
jmp 0x10034fb6
jmp 0x10034d59
cmp dword [ebp - 0x38], 0xff
jne 0x10034cba
lea eax, [ebp - 0x3d]
push eax
movzx ecx, word [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x14]
push eax
call sym.ADVMOT.dll_Acm_DaqDiGetBit
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10034cb5
mov eax, dword [ebp - 0x1c]
jmp 0x10034fb6
jmp 0x10034d59
cmp dword [ebp - 0x38], 0xfe
jne 0x10034d3c
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x12e8], 0
je 0x10034d26
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x12e8]
call edx
mov dword [ebp - 0x174], eax
mov al, byte [ebp - 0x174]
mov byte [ebp - 0x3d], al
jmp 0x10034d26
mov dword [ebp - 4], 0xffffffff
jmp 0x10034d3a
jmp 0x10034d59
push 0x1007a060
mov ecx, dword [ebp - 0x18]
add ecx, 0xfc
call fcn.1001b460
mov eax, 0x800000c8
jmp 0x10034fb6
mov eax, dword [ebp - 0x44]
and eax, 1
movzx ecx, byte [ebp - 0x3d]
xor ecx, eax
je 0x10034d71
mov eax, 0x10000000
jmp 0x10034fb6
jmp 0x10034aea
mov eax, dword [ebp + 8]
and eax, 2
je 0x10034f8f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x28], 0
jmp 0x10034d9c
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x54]
jae 0x10034e88
mov eax, 1
mov ecx, dword [ebp - 0x28]
shl eax, cl
and eax, dword [ebp + 0xc]
jne 0x10034dd8
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x112c
call fcn.1003c2c0
movzx ecx, word [eax]
cmp ecx, 6
jne 0x10034e83
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3c
call fcn.1003b9a0
cmp dword [eax], 0
je 0x10034e73
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x3c
call fcn.1003b9a0
mov edx, dword [eax]
push edx
call sym.ADVMOT.dll_Acm_AxGetState
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10034e16
jmp 0x10034e88
movzx eax, word [ebp - 0x30]
cmp eax, 1
jne 0x10034e40
mov eax, 1
mov ecx, dword [ebp - 0x28]
shl eax, cl
and eax, dword [ebp + 0xc]
je 0x10034e3e
mov eax, 1
mov ecx, dword [ebp - 0x28]
shl eax, cl
xor eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
jmp 0x10034e71
movzx eax, word [ebp - 0x30]
cmp eax, 3
jne 0x10034e71
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3c
call fcn.1003b9a0
mov ecx, dword [eax]
push ecx
call sym.ADVMOT.dll_Acm_GetLastError
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
jmp 0x10034fb6
jmp 0x10034e83
mov eax, 1
mov ecx, dword [ebp - 0x28]
shl eax, cl
xor eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
jmp 0x10034d93
cmp dword [ebp + 0xc], 0
je 0x10034e98
mov eax, 0x10000000
jmp 0x10034fb6
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x4c], 0
je 0x10034f8f
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x330], 4
je 0x10034ec1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x330], 5
jne 0x10034f8f
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x4c]
push edx
call sym.ADVMOT.dll_Acm_GpGetState
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10034ee2
mov eax, dword [ebp - 0x1c]
jmp 0x10034fb6
mov eax, dword [ebp - 0x18]
mov cx, word [ebp - 0x30]
mov word [eax + 0x50], cx
movzx eax, word [ebp - 0x30]
cmp eax, 3
jne 0x10034f15
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x4c]
push ecx
call sym.ADVMOT.dll_Acm_GetLastError
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
jmp 0x10034fb6
movzx eax, word [ebp - 0x30]
test eax, eax
jne 0x10034f1f
jmp 0x10034f32
movzx eax, word [ebp - 0x30]
cmp eax, 1
je 0x10034f32
mov eax, 0x10000000
jmp 0x10034fb6
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x4c]
push edx
call sym.ADVMOT.dll_Acm_GpGetPathStatus
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10034f6c
cmp dword [ebp - 0x1c], 0x80000054
je 0x10034f65
mov eax, dword [ebp - 0x1c]
jmp 0x10034fb6
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x20], 1
jb 0x10034f8f
mov ecx, dword [ebp - 0x18]
call fcn.10030a30
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10034f88
mov eax, dword [ebp - 0x1c]
jmp 0x10034fb6
mov dword [ebp - 0x1c], 0x10000000
mov eax, dword [ebp + 8]
and eax, 4
je 0x10034fb3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffff
jbe 0x10034fb3
mov dword [ebp - 0x1c], 0x10000000
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100420d4
mov esp, ebp
pop ebp
ret 0xc