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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff8fc
mov eax, 0x52ef10
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x68]
call fcn.0049b3b8
push 0x84
call fcn.0049a138
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4241fa
mov word [ebp - 0x34], 0x14
mov edx, dword [ebp - 0x10]
push edx
call fcn.00402970
pop ecx
mov word [ebp - 0x34], 8
mov ecx, dword [ebp - 0x10]
jmp 0x4241fd
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x60], ecx
mov word [ebp - 0x34], 0x20
mov eax, dword [ebp - 0x60]
push eax
lea edx, [ebp - 0xc]
push edx
call fcn.00403024
inc dword [ebp - 0x28]
add esp, 8
mov word [ebp - 0x34], 0x2c
xor eax, eax
mov edx, ebx
and dl, 0xfc
mov dword [0x53a330], eax
mov byte [0x53a2f0], dl
push 0x53a2f4
call sym.TJDevice.dll__InitCommpara
pop ecx
mov eax, dword [0x53a35c]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
xor eax, eax
mov dl, byte [ebp + 0x6c]
mov al, bl
mov dword [0x53a340], edx
and eax, 3
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov dword [0x53a358], ecx
mov byte [ebp - 0x61], 0
lea edx, [ebp - 0x68]
lea eax, [ebp - 0xc0]
mov dword [0x53a31c], edx
lea edx, [ebp - 0xa8]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
lea ecx, [ebp - 0x90]
xor esi, esi
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp - 0x70]
mov byte [eax], 0
mov edx, dword [ebp - 0x74]
mov byte [edx], 0
mov ecx, dword [ebp - 0x78]
mov byte [ecx], 0
inc esi
inc dword [ebp - 0x78]
inc dword [ebp - 0x74]
inc dword [ebp - 0x70]
cmp esi, 0x18
jl 0x424291
xor eax, eax
mov dword [ebp - 0x4c], eax
xor edx, edx
mov dword [ebp - 0x50], edx
xor ecx, ecx
mov dword [ebp - 0x54], ecx
push 0x63
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.0049af44
lea eax, [ebp - 0x122]
add esp, 0xc
mov dword [ebp - 0x70], eax
xor esi, esi
mov edx, dword [ebp - 0x58]
mov ecx, edx
shl edx, 5
sub edx, ecx
lea eax, [edx*4 + 0x4ad298]
lea edx, [ebp + 0x12]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], edx
mov ecx, dword [ebp - 0x78]
cmp byte [ecx], 1
jne 0x424330
xor eax, eax
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp + edx - 0xa8]
mov edx, dword [ebp - 0x74]
lea ebx, [esi + 1]
cmp ebx, dword [edx]
jne 0x424321
mov eax, esi
inc eax
mov byte [ecx], al
inc dword [ebp - 0x4c]
jmp 0x42432a
inc eax
add edx, 4
cmp eax, 0x18
jl 0x424310
mov edx, dword [ebp - 0x70]
mov byte [edx], 1
mov ecx, dword [ebp - 0x78]
cmp byte [ecx], 2
jne 0x424371
xor eax, eax
mov edx, dword [ebp - 0x54]
lea edx, [ebp + edx - 0xc0]
mov ecx, dword [ebp - 0x74]
mov ebx, dword [ecx]
lea edi, [esi + 1]
cmp ebx, edi
jne 0x42435a
mov eax, esi
inc eax
mov byte [edx], al
inc dword [ebp - 0x54]
jmp 0x424363
inc eax
add ecx, 4
cmp eax, 0x18
jl 0x424347
mov edx, dword [ebp - 0x70]
mov byte [edx + 0x30], 1
or byte [ebp - 0xc2], 2
mov ecx, dword [ebp - 0x78]
cmp byte [ecx + 0x18], 1
jne 0x4243aa
xor eax, eax
mov edx, dword [ebp - 0x50]
lea ecx, [ebp + edx - 0x90]
mov edx, dword [ebp - 0x74]
lea ebx, [esi + 1]
cmp ebx, dword [edx]
jne 0x42439a
mov eax, esi
inc eax
mov byte [ecx], al
inc dword [ebp - 0x50]
jmp 0x4243a3
inc eax
add edx, 4
cmp eax, 0x18
jl 0x424389
mov edx, dword [ebp - 0x70]
mov byte [edx + 0x18], 1
mov ecx, dword [ebp - 0x78]
cmp byte [ecx + 0x18], 2
jne 0x4243ec
xor eax, eax
mov edx, dword [ebp - 0x54]
lea edx, [ebp + edx - 0xc0]
mov ecx, dword [ebp - 0x74]
mov ebx, dword [ecx]
lea edi, [esi + 1]
cmp ebx, edi
jne 0x4243d5
mov eax, esi
inc eax
mov byte [edx], al
inc dword [ebp - 0x54]
jmp 0x4243de
inc eax
add ecx, 4
cmp eax, 0x18
jl 0x4243c2
mov edx, dword [ebp - 0x70]
mov byte [edx + 0x48], 1
or byte [ebp - 0xc2], 1
inc esi
inc dword [ebp - 0x70]
inc dword [ebp - 0x78]
cmp esi, 0x18
jl 0x4242f9
cmp byte [ebp + 0x10], 0
jbe 0x424690
cmp byte [ebp + 0x11], 0
jbe 0x424690
mov edx, dword [ebp - 0x58]
xor ebx, ebx
mov ecx, edx
xor esi, esi
shl edx, 5
xor eax, eax
sub edx, ecx
lea edx, [edx*4 + 0x4ad298]
mov dword [ebp - 0x70], edx
mov edx, dword [ebp - 0x70]
xor ecx, ecx
mov cl, byte [ebp + 0x10]
cmp ecx, dword [edx]
jne 0x42443b
lea ebx, [eax + 1]
jmp 0x424445
inc eax
add dword [ebp - 0x70], 4
cmp eax, 0x18
jl 0x42442a
cmp eax, 0x18
jne 0x424470
xor eax, eax
push eax
dec dword [ebp - 0x28]
mov edx, dword [ebp - 8]
push edx
call fcn.00402b2c
pop ecx
mov word [ebp - 0x34], 0x2c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x424b5b
xor eax, eax
mov edx, dword [ebp - 0x58]
mov ecx, edx
shl edx, 5
sub edx, ecx
lea edx, [edx*4 + 0x4ad298]
mov dword [ebp - 0x70], edx
mov edx, dword [ebp - 0x70]
xor ecx, ecx
mov cl, byte [ebp + 0x11]
cmp ecx, dword [edx]
jne 0x424497
lea esi, [eax + 1]
jmp 0x4244a1
inc eax
add dword [ebp - 0x70], 4
cmp eax, 0x18
jl 0x424486
cmp eax, 0x18
jne 0x4244cc
xor eax, eax
push eax
dec dword [ebp - 0x28]
mov edx, dword [ebp - 8]
push edx
call fcn.00402b2c
pop ecx
mov word [ebp - 0x34], 0x2c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x424b5b
cmp byte [ebp + 0x45], 0
jbe 0x4244fe
xor eax, eax
mov edx, dword [ebp - 0x58]
mov ecx, edx
shl edx, 5
sub edx, ecx
lea edx, [edx*4 + 0x4ad298]
mov dword [ebp - 0x70], edx
mov edx, dword [ebp - 0x70]
xor ecx, ecx
mov cl, byte [ebp + 0x44]
cmp ecx, dword [edx]
je 0x4244fe
inc eax
add dword [ebp - 0x70], 4
cmp eax, 0x18
jl 0x4244e8
cmp eax, 0x18
jne 0x424529
xor eax, eax
push eax
dec dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
push ecx
call fcn.00402b2c
pop ecx
mov word [ebp - 0x34], 0x2c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x424b5b
cmp esi, ebx
jne 0x424553
xor eax, eax
push eax
dec dword [ebp - 0x28]
mov edx, dword [ebp - 8]
push edx
call fcn.00402b2c
pop ecx
mov word [ebp - 0x34], 0x2c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x424b5b
cmp byte [ebp + 0x45], 0
jbe 0x42462c
cmp byte [ebp + 0xc], 9
jne 0x4245c8
push 2
push 0
lea ecx, [ebp - 0x6a]
push ecx
call fcn.0049af44
add esp, 0xc
mov byte [ebp - 0x6a], bl
lea eax, [ebp - 0x6a]
push eax
cmp byte [ebp + 0x45], 1
jne 0x424584
xor edx, edx
jmp 0x424589
mov edx, 1
push edx
push 0
push 0
lea ecx, [ebp - 0xa8]
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x90]
push eax
push ecx
mov eax, dword [ebp - 0x50]
push eax
push edx
push esi
push ebx
push 0x14
lea edx, [ebp - 0xc]
mov cl, byte [ebp + 0x60]
push ecx
mov eax, dword [ebp - 0x5c]
push eax
push 0x53a2f4
push edx
call fcn.0040c890
add esp, 0x3c
mov esi, eax
jmp 0x424669
mov dword [ebp - 0x54], 1
mov cl, byte [ebp + 0x44]
mov byte [ebp - 0xc0], cl
push 0
cmp byte [ebp + 0x45], 1
jne 0x4245e4
xor eax, eax
jmp 0x4245e9
mov eax, 1
push eax
lea ecx, [ebp - 0xc0]
mov edx, dword [ebp - 0x54]
push edx
push ecx
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0xa8]
push eax
push edx
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x90]
push ecx
push eax
push esi
push ebx
push 0x14
lea eax, [ebp - 0xc]
mov dl, byte [ebp + 0x60]
push edx
mov ecx, dword [ebp - 0x5c]
push ecx
push 0x53a2f4
push eax
call fcn.0040c890
add esp, 0x3c
mov esi, eax
jmp 0x424669
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0xa8]
push edx
push ecx
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x90]
push eax
push edx
push esi
push ebx
push 0x14
lea edx, [ebp - 0xc]
mov cl, byte [ebp + 0x60]
push ecx
mov eax, dword [ebp - 0x5c]
push eax
push 0x53a2f4
push edx
call fcn.0040c890
add esp, 0x3c
mov esi, eax
cmp byte [ebp + 0x60], 0
je 0x424688
push 0
push 0
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0xc]
push ecx
push 0x53a2f4
push eax
call sym.TJDevice.dll__PowerOnOff
add esp, 0x14
test esi, esi
jne 0x424690
mov byte [ebp - 0x61], 1
cmp byte [ebp + 0x42], 0
jbe 0x424b12
cmp byte [ebp + 0x43], 0
jbe 0x424b12
mov ebx, dword [ebp - 0x58]
xor edx, edx
mov esi, ebx
xor ecx, ecx
shl ebx, 5
xor eax, eax
sub ebx, esi
lea ebx, [ebx*4 + 0x4ad298]
mov dword [ebp - 0x70], ebx
mov esi, dword [ebp - 0x70]
xor ebx, ebx
mov bl, byte [ebp + 0x42]
cmp ebx, dword [esi]
jne 0x4246cf
lea edx, [eax + 1]
jmp 0x4246d9
inc eax
add dword [ebp - 0x70], 4
cmp eax, 0x18
jl 0x4246be
cmp eax, 0x18
jne 0x424704
xor eax, eax
push eax
dec dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
push ecx
call fcn.00402b2c
pop ecx
mov word [ebp - 0x34], 0x2c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x424b5b
xor eax, eax
mov ebx, dword [ebp - 0x58]
mov esi, ebx
shl ebx, 5
sub ebx, esi
lea ebx, [ebx*4 + 0x4ad298]
mov dword [ebp - 0x70], ebx
mov esi, dword [ebp - 0x70]
xor ebx, ebx
mov bl, byte [ebp + 0x43]
cmp ebx, dword [esi]
jne 0x42472b
lea ecx, [eax + 1]
jmp 0x424735
inc eax
add dword [ebp - 0x70], 4
cmp eax, 0x18
jl 0x42471a
cmp eax, 0x18
jne 0x424760
xor eax, eax
push eax
dec dword [ebp - 0x28]
mov edx, dword [ebp - 8]
push edx
call fcn.00402b2c
pop ecx
mov word [ebp - 0x34], 0x2c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x424b5b
cmp ecx, edx
jne 0x42478a
xor eax, eax
push eax
dec dword [ebp - 0x28]
mov edx, dword [ebp - 8]
push edx
call fcn.00402b2c
pop ecx
mov word [ebp - 0x34], 0x2c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x424b5b
mov byte [ebp - 0x124], dl
mov byte [ebp - 0x123], cl
push 0
call fcn.0040755c
pop ecx
push 0xc8
call sub.KERNEL32.DLL_Sleep
cmp byte [ebp + 0xc], 0xf
je 0x4247ba
cmp byte [ebp + 0xc], 3
je 0x4247ba
cmp byte [ebp + 0xc], 0x10
jne 0x4247fc
mov ecx, dword [0x539ee4]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x53542c]
call fcn.00429078
mov ebx, eax
mov eax, dword [sym.TJDevice.dll__frmprocess]
mov dword [eax], ebx
mov eax, ebx
call fcn.00429128
mov edx, dword [sym.TJDevice.dll__frmprocess]
push 0x100
push 0
mov ecx, dword [edx]
add ecx, 0x300
push ecx
call fcn.0049af44
add esp, 0xc
mov byte [0x53a335], 0
push 0
push 0
push 0
lea edx, [ebp - 0x124]
mov al, byte [edx + 0x62]
shl eax, 0x10
mov ax, word [edx + 0x60]
push eax
mov eax, 0x17
push dword [edx + eax*4]
dec eax
jns 0x42481f
push 0xfa0
lea edx, [ebp - 0xc]
mov cl, byte [ebp + 0x60]
push ecx
mov eax, dword [ebp - 0x5c]
push eax
push 0x53a2f4
push edx
call fcn.00415ff8
add esp, 0x84
mov esi, eax
test esi, esi
jne 0x424885
call fcn.004a2ec0
mov ebx, eax
jmp 0x424878
push 1
call sub.KERNEL32.DLL_Sleep
call fcn.00403fd0
cmp byte [0x53a32d], 0
jne 0x424881
call fcn.004a2ec0
sub eax, ebx
cmp eax, 0x1f40
jg 0x424881
cmp byte [0x53a335], 0
je 0x424855
mov byte [ebp - 0x61], 1
push 0xc8
call sub.KERNEL32.DLL_Sleep
cmp byte [ebp + 0xc], 0xf
je 0x4248a5
cmp byte [ebp + 0xc], 3
je 0x4248a5
cmp byte [ebp + 0xc], 0x10
jne 0x424b0a
cmp dword [ebp + 0x64], 0
je 0x424add
push 4
push 0
mov eax, dword [ebp + 0x64]
push eax
call fcn.0049af44
mov edx, dword [sym.TJDevice.dll__frmprocess]
mov eax, dword [ebp + 0x64]
mov esi, eax
xor eax, eax
mov ecx, dword [edx]
add esp, 0xc
add ecx, 0x300
mov edi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x64]
push eax
call fcn.0049b078
pop ecx
test eax, eax
jne 0x424944
mov edx, dword [sym.TJDevice.dll__frmprocess]
mov ecx, dword [edx]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x424931
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
mov word [ebp - 0x34], 0x98
mov edx, 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x34], 0x8c
push 1
call fcn.0040755c
pop ecx
mov word [ebp - 0x34], 0x2c
jmp 0x424b40
push 0x12c
push 0
lea eax, [ebp - 0x704]
push eax
call fcn.0049af44
mov edx, dword [sym.TJDevice.dll__frmprocess]
add esp, 0xc
xor eax, eax
lea esi, [ebp - 0x704]
mov ecx, dword [edx]
add ecx, 0x409
mov edi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x5d8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x12c
push 0
push eax
call fcn.0049af44
mov edx, dword [sym.TJDevice.dll__frmprocess]
add esp, 0xc
xor eax, eax
lea esi, [ebp - 0x5d8]
mov ecx, dword [edx]
add ecx, 0x535
mov edi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x4ac]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x12c
push 0
push eax
call fcn.0049af44
mov edx, dword [sym.TJDevice.dll__frmprocess]
add esp, 0xc
xor eax, eax
lea esi, [ebp - 0x4ac]
mov ecx, dword [edx]
add ecx, 0x661
mov edi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x380]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x12c
push 0
push eax
call fcn.0049af44
mov edx, dword [sym.TJDevice.dll__frmprocess]
add esp, 0xc
xor eax, eax
lea esi, [ebp - 0x380]
mov ecx, dword [edx]
add ecx, 0x78d
mov edi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x254]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x12c
push 0
push eax
call fcn.0049af44
add esp, 0xc
mov edx, dword [sym.TJDevice.dll__frmprocess]
mov ecx, dword [edx]
add ecx, 0x78d
mov edi, ecx
lea esi, [ebp - 0x380]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x128], 1
lea edx, [ebp - 0x704]
mov al, byte [edx + 0x5dc]
push eax
mov eax, 0x176
push dword [edx + eax*4]
dec eax
jns 0x424aca
mov ecx, dword [sym.TJDevice.dll__frmprocess]
mov eax, dword [ecx]
call fcn.00429a84
mov edx, dword [sym.TJDevice.dll__frmprocess]
mov ebx, dword [edx]
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x424b0a
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x34], 0xb0
mov edx, 3
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x34], 0xa4
push 1
call fcn.0040755c
pop ecx
mov edx, dword [ebp - 0x60]
push edx
call fcn.00402b2c
pop ecx
mov al, byte [ebp - 0x61]
push eax
dec dword [ebp - 0x28]
mov edx, dword [ebp - 8]
push edx
call fcn.00402b2c
pop ecx
mov word [ebp - 0x34], 0x2c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x424b5b
xor eax, eax
push eax
dec dword [ebp - 0x28]
mov edx, dword [ebp - 8]
push edx
call fcn.00402b2c
pop ecx
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret