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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
mov esi, ecx
mov ebp, 2
call ebx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
je 0x555b5c
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.0050ab70
cmp eax, 1
jge 0x555b2f
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + 0x204]
cmp ebp, eax
jbe 0x555b1d
lea eax, [esp + 0x13]
push 1
push eax
mov ecx, edi
mov byte [esp + 0x1b], 2
call fcn.0050b600
test eax, eax
jne 0x555b01
mov ecx, edi
call fcn.00508240
push str.TradeContext:_ping_error
push 1
push 0x596558
call fcn.004aa400
add esp, 0xc
mov ecx, esi
push 1
push 6
call fcn.00555210
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10
ret
add ebp, 0x4e20
mov dword [esi + 0x204], ebp
call ebx
add esi, 0x380
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x14]
push 1
push ecx
mov ecx, edi
call fcn.0050ae20
test eax, eax
jne 0x555b74
push str.TradeContext:_command_reading_error
push 1
push 0x596558
call fcn.004aa400
add esp, 0xc
mov ecx, edi
call fcn.00508240
push 1
push 2
mov ecx, esi
call fcn.00555210
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x10
ret
call ebx
add eax, 0x4e20
mov dword [esi + 0x204], eax
call ebx
lea edx, [esi + 0x380]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x14]
and eax, 0xff
sub eax, 0xd
je 0x555cb9
sub eax, 0xb1
je 0x555c9f
dec eax
je 0x555bf2
push 0
push 2
mov ecx, esi
call fcn.00555210
mov eax, dword [esp + 0x14]
and eax, 0xff
push eax
push str.TradeContext:_unknown_command__02X
push 1
push 0x596558
call fcn.004aa400
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
push 5
push ecx
mov ecx, edi
call fcn.0050ae20
cmp eax, 1
jne 0x555c4e
mov edx, dword [esi + 0x270]
mov eax, dword [esp + 0x18]
cmp edx, eax
jne 0x555c4e
mov eax, dword [esi + 0x288]
test eax, eax
je 0x555c38
mov ecx, dword [esp + 0x1c]
and ecx, 0xff
push ecx
push 0x32
mov edx, dword [0x5a0c34]
push edx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push esi
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esi + 0x288]
test eax, eax
je 0x555c6a
push 2
push 0x32
mov ecx, dword [0x5a0c34]
push ecx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 2
mov ecx, esi
call fcn.00555210
push str.TradeContext:_reject_notification_reading_error
push 1
push 0x596558
call fcn.004aa400
add esp, 0xc
mov ebp, 2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, esi
call fcn.00555e70
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0
push 6
mov ecx, esi
call fcn.00555210
mov ecx, edi
call fcn.00508240
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret