Function at 0x401b22
Capabilities:
Create thread

Disassembly:
jmp 0x40f6f0
push 0xffffffffffffffff
push 0x49d4b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
lea ecx, [esp + 0xb4]
mov dword [esp + 0x18], edi
mov dword [esp + 0x58], 0x4a6560
call fcn.004014bf
mov esi, 1
mov dword [esp + 0xb4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x18], esi
push edi
lea eax, [esp + 0x64]
push edi
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0xfc], edi
call fcn.00401b13
push edi
lea ecx, [esp + 0x64]
mov dword [esp + 0xf4], esi
call fcn.00401b8b
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x58], 0x4a655c
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xf0], 2
cmp eax, edi
jne 0x40f7ba
push esi
push str.tmp.txt
call fcn.00452465
add esp, 8
cmp eax, edi
je 0x40f7ba
push esi
push eax
lea ecx, [esp + 0x68]
call fcn.004014b0
lea ecx, [esp + 0x60]
call fcn.00401c71
lea eax, [esp + 0x60]
test eax, eax
jne 0x40f7cd
mov ecx, dword [esp + 0x58]
push edi
push 2
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x60]
call fcn.00402536
mov al, byte [esp + 0x13]
push edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.00401a2d
mov cl, byte [esp + 0x13]
push edi
mov byte [esp + 0x44], cl
lea ecx, [esp + 0x44]
mov byte [esp + 0xf4], 3
call fcn.00401a2d
lea edx, [esp + 0x40]
lea eax, [esp + 0x13]
push edx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x60]
mov bl, 4
push ecx
push edx
mov byte [esp + 0x100], bl
call fcn.00401a96
add esp, 8
push eax
call fcn.004018f7
add esp, 8
push eax
call fcn.00401a96
mov eax, dword [esp + 0x3c]
add esp, 8
cmp eax, edi
jbe 0x40f93f
call fcn.004010dc
push 0xd4
call fcn.00475bfb
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0xf0], 5
je 0x40f86a
push edi
mov ecx, eax
call fcn.00401555
mov esi, eax
jmp 0x40f86c
xor esi, esi
push edi
push 0x4a7000
mov byte [esp + 0xf8], bl
mov dword [esi + 0x5c], 2
call fcn.00401a41
add esp, 8
cmp eax, edi
jne 0x40f8a2
lea eax, [esp + 0x24]
push eax
push edi
push esi
push 0x4018a7
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x40f8a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xb8]
cmp esi, edi
je 0x40f8c0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0xf4], 3
call fcn.00401a2d
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xf4], 2
call fcn.00401a2d
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0xb4]
mov dword [esp + 0x18], ecx
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x58], 0x4a655c
lea ecx, [esp + 0x60]
mov dword [esp + 0xf0], 6
call fcn.00402446
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xf0], 0xffffffff
mov edx, dword [ecx + 4]
lea ecx, [esp + 0xb4]
mov dword [esp + edx + 0x58], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
call fcn.00401c12
jmp 0x410023
mov dword [esp + 0x28], method.CCommandLineInfo.virtual_0
mov eax, dword [0x4c2da4]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xf0], 8
call fcn.0040178f
push edi
mov ecx, ebp
mov byte [esp + 0xf4], 9
call fcn.00401eab
call fcn.0047b29b
cmp eax, edi
je 0x40f985
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov esi, eax
jmp 0x40f987
xor esi, esi
mov ecx, dword [ebp + 0x1f4]
mov eax, dword [esi + 0x14c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0x147
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], eax
call ebx
lea edx, [esp + 0x14]
lea ecx, [ebp + 0x1d8]
push edx
push eax
call fcn.0048f974
push 0x4c17cc
lea ecx, [esp + 0x18]
call fcn.0046c2f4
test eax, eax
jl 0x40f9d6
mov dword [esi + 0x14c], edi
jmp 0x40f9f2
push 0x4c17c8
lea ecx, [esp + 0x18]
call fcn.0046c2f4
test eax, eax
jl 0x40f9f2
mov dword [esi + 0x14c], 1
mov eax, dword [esi + 0x14c]
cmp eax, edi
je 0x40fcb1
cmp eax, 2
jne 0x40fa12
cmp dword [ebp + 0x8c], 1
je 0x40fcb1
cmp eax, 3
jne 0x40fae2
mov dword [esi + 0x14c], eax
call fcn.004014c9
test eax, eax
je 0x40fb43
mov eax, dword [ebp + 0xa0]
cmp eax, edi
jne 0x40fac9
push 0x2b0
call fcn.00475bfb
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov byte [esp + 0xf0], 0xb
je 0x40fa63
push edi
mov ecx, eax
call fcn.00402572
jmp 0x40fa65
xor eax, eax
mov dword [ebp + 0xa0], eax
mov dword [eax + 0x210], ebp
mov eax, dword [ebp + 0xa0]
mov byte [esp + 0xf0], 9
mov dword [eax + 0x290], edi
mov ecx, dword [ebp + 0xa0]
mov dword [ecx + 0x294], 0xffffffff
mov ecx, dword [ebp + 0xa0]
mov edx, dword [ecx]
call dword [edx + 0xb8]
mov ecx, dword [ebp + 0xa0]
cmp ecx, edi
je 0x40fab4
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0xa0], edi
mov dword [esi + 0x14c], ecx
jmp 0x40fed0
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x1f4], 1
mov dword [esi + 0x14c], ecx
jmp 0x40fed0
cmp eax, 1
je 0x40fafc
cmp eax, 2
jne 0x40fed0
cmp dword [ebp + 0x8c], edi
jne 0x40fed0
mov dword [esi + 0x14c], 1
mov edx, dword [ebp + 0x1f4]
push edi
push edi
push 0x147
push edx
call ebx
cmp eax, dword [ebp + 0x580]
jge 0x40fb31
cmp eax, edi
jl 0x40fb31
mov ecx, dword [ebp + 0x578]
je 0x40fb33
mov ecx, dword [ecx]
dec eax
jne 0x40fb2a
jmp 0x40fb33
xor ecx, ecx
mov eax, dword [ecx + 8]
push eax
call fcn.0040112c
add esp, 4
test eax, eax
jne 0x40fb5f
push 1
mov ecx, ebp
call fcn.00401eab
push edi
push edi
push str.Please__see_whether_Touch_Contoller_is_connected_or_not._0x020003_
mov ecx, ebp
call fcn.00478469
jmp 0x40fed0
mov eax, dword [ebp + 0xa0]
cmp eax, edi
jne 0x40fc98
push 0x2b0
call fcn.00475bfb
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov byte [esp + 0xf0], 0xc
je 0x40fb94
push edi
mov ecx, eax
call fcn.00402572
jmp 0x40fb96
xor eax, eax
mov dword [ebp + 0xa0], eax
mov dword [eax + 0x210], ebp
mov ecx, dword [ebp + 0xa0]
push edi
push edi
push 0x147
mov dword [ecx + 0x290], edi
mov edx, dword [ebp + 0x1f4]
push edx
mov byte [esp + 0x100], 9
call ebx
cmp eax, dword [ebp + 0x580]
jge 0x40fbe1
cmp eax, edi
jl 0x40fbe1
mov ecx, dword [ebp + 0x578]
je 0x40fbe3
mov ecx, dword [ecx]
dec eax
jne 0x40fbda
jmp 0x40fbe3
xor ecx, ecx
mov eax, dword [ebp + 0xa0]
mov ecx, dword [ecx + 8]
lea edx, [esp + 0x14]
mov dword [eax + 0x294], ecx
mov ecx, dword [ebp + 0xa0]
push edx
add ecx, 0x2ac
call fcn.0047abf5
mov eax, dword [ebp + 0x1f4]
push edi
push edi
push 0x147
push eax
call ebx
cmp eax, dword [ebp + 0x564]
jge 0x40fc33
cmp eax, edi
jl 0x40fc33
mov ecx, dword [ebp + 0x55c]
je 0x40fc35
mov ecx, dword [ecx]
dec eax
jne 0x40fc2c
jmp 0x40fc35
xor ecx, ecx
mov eax, dword [ecx + 8]
cmp eax, edi
jne 0x40fc53
cmp dword [0x4c95bc], 3
je 0x40fc64
mov ecx, dword [ebp + 0xa0]
mov dword [ecx + 0x288], edi
jmp 0x40fc64
cmp eax, 1
jne 0x40fc64
mov edx, dword [ebp + 0xa0]
mov dword [edx + 0x288], eax
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ecx]
call dword [eax + 0xb8]
mov ecx, dword [ebp + 0xa0]
cmp ecx, edi
je 0x40fc83
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esp + 0x18]
mov dword [ebp + 0xa0], edi
mov dword [esi + 0x14c], eax
jmp 0x40fed0
mov dword [eax + 0x1f4], 1
mov eax, dword [esp + 0x18]
mov dword [esi + 0x14c], eax
jmp 0x40fed0
mov dword [esi + 0x14c], edi
mov ecx, dword [esp + 0x14]
movsx eax, byte [ecx + 3]
sub eax, 0x31
js 0x40febb
cmp eax, 7
jg 0x40febb
push eax
call fcn.004015be
add esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x40febb
mov edx, eax
push edx
call fcn.00402167
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004013ca
cmp eax, 0xffffffff
jne 0x40fd46
push 1
mov ecx, ebp
call fcn.00401eab
push 0
push 0
push str.Port_Open_Error___0x020001_
call fcn.00485c6d
jmp 0x40fea0
push eax
lea ecx, [esp + 0x2c]
call fcn.00401b6d
mov eax, dword [ebp + 0xa0]
xor esi, esi
cmp eax, esi
jne 0x40fe96
push 0x2b0
call fcn.00475bfb
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, esi
mov byte [esp + 0xf0], 0xa
je 0x40fd87
push esi
mov ecx, eax
call fcn.00402572
jmp 0x40fd89
xor eax, eax
mov dword [ebp + 0xa0], eax
mov edx, dword [ebp + 0x1f4]
push esi
push esi
push 0x147
push edx
mov byte [esp + 0x100], 9
call ebx
cmp eax, dword [ebp + 0x564]
jge 0x40fdc2
cmp eax, esi
jl 0x40fdc2
mov ecx, dword [ebp + 0x55c]
je 0x40fdc4
mov ecx, dword [ecx]
dec eax
jne 0x40fdbb
jmp 0x40fdc4
xor ecx, ecx
mov eax, dword [ecx + 8]
cmp eax, esi
jne 0x40fde2
cmp dword [0x4c95bc], 3
je 0x40fdf0
mov eax, dword [ebp + 0xa0]
mov dword [eax + 0x288], esi
jmp 0x40fe31
cmp eax, 1
je 0x40fdf0
cmp dword [0x4c95bc], 3
jne 0x40fe31
mov ecx, dword [ebp + 0xa0]
mov edi, 1
push esi
push esi
mov dword [ecx + 0x288], edi
mov edx, dword [ebp + 0x1f4]
push 0x147
push edx
call ebx
cmp eax, dword [ebp + 0x564]
jge 0x40fe2c
cmp eax, esi
jl 0x40fe2c
mov ecx, dword [ebp + 0x55c]
je 0x40fe2e
mov ecx, dword [ecx]
dec eax
jne 0x40fe25
jmp 0x40fe2e
xor ecx, ecx
mov dword [ecx + 8], edi
mov eax, dword [ebp + 0xa0]
lea edx, [esp + 0x14]
push edx
mov dword [eax + 0x210], ebp
mov eax, dword [ebp + 0xa0]
mov dword [eax + 0x290], esi
mov ecx, dword [ebp + 0xa0]
mov dword [ecx + 0x294], 0xffffffff
mov ecx, dword [ebp + 0xa0]
add ecx, 0x2ac
call fcn.0047abf5
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ecx]
call dword [eax + 0xb8]
mov ecx, dword [ebp + 0xa0]
cmp ecx, esi
je 0x40fe8e
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [ebp + 0xa0], esi
jmp 0x40fea0
mov dword [eax + 0x1f4], 1
mov esi, dword [esp + 0x20]
push esi
call fcn.004021d0
push esi
call fcn.00401b90
mov esi, dword [esp + 0x24]
add esp, 8
xor edi, edi
jmp 0x40fed0
push 1
mov ecx, ebp
call fcn.00401eab
push edi
push edi
push str.Load_Driver_Error_____0x020000_
call fcn.00485c6d
mov eax, dword [esp + 0x18]
push 1
mov ecx, ebp
mov dword [esi + 0x14c], eax
call fcn.00401eab
lea ecx, [esp + 0x24]
mov byte [esp + 0xf0], 8
call fcn.0040228e
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], 7
call fcn.0047aabc
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x40ff2a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40ff21
cmp al, 0xff
je 0x40ff21
dec al
mov byte [ecx], al
jmp 0x40ff2a
push ecx
call fcn.00475c24
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], edi
cmp eax, edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
je 0x40ff5b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40ff52
cmp al, 0xff
je 0x40ff52
dec al
mov byte [ecx], al
jmp 0x40ff5b
push ecx
call fcn.00475c24
add esp, 4
mov edx, dword [esp + 0x58]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov eax, dword [edx + 4]
lea ecx, [esp + 0xb4]
mov dword [esp + 0x3c], ecx
mov dword [esp + eax + 0x58], 0x4a655c
mov ebx, 0xd
lea ecx, [esp + 0x60]
mov dword [esp + 0xf0], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x60], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov al, byte [esp + 0xa8]
mov byte [esp + 0xf0], 0xf
test al, al
je 0x40ffb9
lea ecx, [esp + 0x60]
call fcn.00401d25
mov ecx, dword [esp + 0xa4]
cmp ecx, edi
mov esi, ecx
je 0x40ffd6
push 1
call fcn.00401a2d
push esi
call fcn.00475c24
add esp, 4
lea ecx, [esp + 0xac]
call fcn.00401091
lea ecx, [esp + 0x60]
mov byte [esp + 0xf0], bl
call fcn.00401064
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0xb4]
mov dword [esp + 0xf0], 0xffffffff
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x58], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [esp + 0xb4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.0045225a
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe4
ret