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

Disassembly:
push 0xffffffffffffffff
push 0x447cfa
mov eax, dword fs:[0]
push eax
mov eax, 0x21d8
call fcn.00435100
mov eax, dword [0x457a00]
xor eax, esp
mov dword [esp + 0x21d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457a00]
xor eax, esp
push eax
lea eax, [esp + 0x21ec]
mov dword fs:[0], eax
push 0x21c8
lea eax, [esp + 0x2200]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0043dca0
push 8
call fcn.0042501f
xor ecx, ecx
add esp, 0x10
cmp eax, ecx
je 0x418303
mov ebx, eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0x18], ebx
jmp 0x418309
mov dword [esp + 0x18], ecx
mov ebx, ecx
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
mov dword [0x45b81c], ecx
mov byte [esp + 0x17], cl
mov byte [esp + 0x16], cl
mov cl, byte [esp + 0x21e4]
xor al, al
test cl, cl
mov byte [esp + 0x15], al
jbe 0x418459
movzx edi, al
imul edi, edi, 0x438
cmp dword [esp + edi + 0x28], 2
jne 0x418440
cmp byte [esp + 0x17], 0
jne 0x418440
lea edx, [esp + edi + 0x2c]
push str.AT_Port
push edx
call fcn.00430890
add esp, 8
test eax, eax
push 0x29c
jne 0x4183b8
call fcn.0042501f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x21f4], 0
je 0x41839d
movzx ecx, word [esp + edi + 0x24]
push ecx
mov esi, eax
call fcn.004216b0
jmp 0x41839f
xor eax, eax
mov dword [esp + 0x21f4], 0xffffffff
mov ecx, 0x7d0
mov dword [eax + 0x10], ecx
mov byte [eax + 0x15], 1
jmp 0x418406
call fcn.0042501f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x21f4], 1
je 0x4183e2
movzx edx, word [esp + edi + 0x24]
push edx
mov esi, eax
call fcn.004216b0
jmp 0x4183e4
xor eax, eax
mov dword [esp + 0x21f4], 0xffffffff
mov ecx, 0x7d0
mov dword [eax + 0x10], 0x1388
mov dword [eax + 0x18], 0x1c200
mov byte [eax + 0x15], 0
mov dword [eax + 0x180], 0x415630
mov edi, eax
mov dword [eax + 0xc], ecx
mov esi, edi
mov dword [eax + 8], ecx
call fcn.00422220
test al, al
je 0x41842c
mov dword [ebx], edi
mov byte [esp + 0x17], 1
jmp 0x418440
lea esi, [edi + 0x16c]
call fcn.00420fb0
push edi
call fcn.0042504a
add esp, 4
mov al, byte [esp + 0x15]
mov cl, byte [esp + 0x21e4]
add al, 1
cmp al, cl
mov byte [esp + 0x15], al
jb 0x418339
xor al, al
test cl, cl
mov byte [esp + 0x15], al
jbe 0x418573
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx edi, al
imul edi, edi, 0x438
cmp dword [esp + edi + 0x28], 1
jne 0x418555
cmp byte [esp + 0x16], 0
jne 0x418555
push 0x29c
call fcn.0042501f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x21f4], 2
je 0x4184bd
movzx ecx, word [esp + edi + 0x24]
push ecx
mov esi, eax
call fcn.004216b0
mov edi, eax
jmp 0x4184bf
xor edi, edi
mov dword [esp + 0x21f4], 0xffffffff
mov eax, 0x7d0
mov dword [edi + 8], eax
mov dword [edi + 0x10], 0x1388
mov dword [edi + 0xc], eax
mov dword [edi + 0x18], 0x1c200
mov dword [edi + 0x180], 0x415630
mov byte [edi + 0x15], 0
mov bl, 1
call ebp
mov dword [edi + 0x150], eax
jmp 0x418500
mov ecx, edi
call fcn.00421cf0
test al, al
jne 0x41851a
call ebp
sub eax, dword [edi + 0x150]
cmp eax, dword [edi + 8]
jbe 0x418500
jmp 0x41851c
xor bl, bl
test bl, bl
sete al
test al, al
je 0x418533
mov edx, dword [esp + 0x18]
mov dword [edx + 4], edi
mov byte [esp + 0x16], 1
jmp 0x418551
mov eax, dword [esp + 0x18]
lea esi, [edi + 0x16c]
mov dword [eax], 0xffffffff
call fcn.00420fb0
push edi
call fcn.0042504a
add esp, 4
mov ebx, dword [esp + 0x18]
mov al, byte [esp + 0x15]
add al, 1
cmp al, byte [esp + 0x21e4]
mov byte [esp + 0x15], al
jb 0x41846d
cmp byte [esp + 0x16], 0
jne 0x4185aa
push ebx
mov dword [0x45b81c], 0xffffffff
call fcn.0042504a
mov eax, dword [0x45b820]
add esp, 4
test eax, eax
mov dword [0x45b810], 0x450828
je 0x4185a5
push str.Fail_to_connect_usb_port._Please_check_usb_connection__and_whether_installed_usb_driver.
push 3
call eax
add esp, 8
or eax, 0xffffffff
jmp 0x4185cb
mov ecx, dword [esp + 0x20]
mov eax, 1
mov dword [0x45b81c], eax
mov dword [0x45b814], eax
mov dword [0x45b824], ebx
mov dword [0x45b818], ecx
mov eax, ebx
mov ecx, dword [esp + 0x21ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21d4]
xor ecx, esp
call fcn.0042fb8f
add esp, 0x21e4
ret