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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417730
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x421018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
mov ecx, ebx
mov dword [ebp - 0x24], eax
call fcn.00402020
push 1
mov ecx, ebx
call fcn.004021a0
lea ecx, [ebx + 0x48]
lea eax, [ebx + 0x38]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jmp 0x402ba3
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 0x18], esi
cmp edi, esi
je 0x402c2d
cmp esi, esi
je 0x402bea
mov eax, esi
sub eax, edi
mov dword [ebp - 0x14], eax
jmp 0x402bc3
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi]
lea edx, [eax + edi + 4]
mov dword [edi], ecx
push edx
lea ecx, [edi + 4]
or eax, 0xffffffff
xor ebx, ebx
call fcn.00401650
add esi, 0x20
add edi, 0x20
cmp esi, dword [ebp - 0x18]
jne 0x402bc0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x402c2a
lea esi, [edi + 0x18]
cmp dword [esi], 0x10
jb 0x402c0f
mov eax, dword [esi - 0x14]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], 0
mov byte [esi - 0x14], 0
add esi, 0x20
lea edx, [esi - 0x18]
cmp edx, eax
jne 0x402bf7
mov dword [ecx + 4], edi
mov edx, dword [ebx + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebx + 8]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0x10]
push ecx
sub esp, 0x1c
mov esi, esp
mov dword [eax + 0xc], edx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov edi, 4
mov eax, str.0E8D
mov dword [ebp - 0x20], esp
mov byte [esi], 0
call fcn.00401580
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 4], 1
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov eax, str.0003
mov dword [ebp - 0x18], esp
mov byte [esi], 0
call fcn.00401580
or esi, 0xffffffff
mov dword [ebp - 4], esi
call fcn.00403000
mov ecx, dword [ebp - 0x10]
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004038d0
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x18], esp
push ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 2
call fcn.004038d0
push ebx
mov dword [ebp - 4], esi
call fcn.00402570
mov dword [ebx], eax
test eax, eax
jne 0x402e54
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x28]
lea ecx, [ebx + 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], esi
cmp edi, esi
je 0x402d70
cmp esi, esi
je 0x402d2d
mov eax, esi
sub eax, edi
mov dword [ebp - 0x18], eax
jmp 0x402d06
mov eax, dword [ebp - 0x18]
mov edx, dword [esi]
lea eax, [edi + eax + 4]
push eax
lea ecx, [edi + 4]
or eax, 0xffffffff
xor ebx, ebx
mov dword [edi], edx
call fcn.00401650
add esi, 0x20
add edi, 0x20
cmp esi, dword [ebp - 0x20]
jne 0x402d03
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
cmp edi, eax
je 0x402d6d
lea esi, [edi + 0x18]
cmp dword [esi], 0x10
jb 0x402d52
mov eax, dword [esi - 0x14]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], 0
mov byte [esi - 0x14], 0
add esi, 0x20
lea edx, [esi - 0x18]
cmp edx, eax
jne 0x402d3a
mov dword [ecx + 4], edi
mov edx, dword [ebx + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebx + 8]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 8], edx
mov edx, dword [ebx + 0x10]
push ecx
sub esp, 0x1c
mov esi, esp
mov dword [eax + 0xc], edx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov edi, 4
mov eax, str.0E8D
mov dword [ebp - 0x20], esp
mov byte [esi], 0
call fcn.00401580
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 4], edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov eax, str.2000
mov dword [ebp - 0x18], esp
mov byte [esi], 0
call fcn.00401580
or esi, 0xffffffff
mov dword [ebp - 4], esi
call fcn.00403000
mov ecx, dword [ebp - 0x14]
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004038d0
sub esp, 0x10
mov edx, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebx + 0x18]
push edx
mov dword [ebp - 4], 5
call fcn.004038d0
push ebx
mov dword [ebp - 4], esi
call fcn.00402570
mov dword [ebx], eax
test eax, eax
jne 0x402e54
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x24]
cmp eax, 0x4e20
jb 0x402ba0
push str.GetInsertComport:_Wait_insert_comport_timeout_
push 0x421108
call fcn.00404280
mov dword [ebx], 0
mov eax, dword [ebx]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4