Function at 0x422360
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ea00
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4cd070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
cmp edi, 0x464
ja 0x422492
je 0x422486
mov eax, edi
sub eax, 0x10
je 0x422400
sub eax, 1
jne case.default.0x4224a1
push str.system_shutdown._stop_update_progress_
push str.updateWnd
push 0x10e
push str.uiWechatUpdateWnd.cpp
push 2
call fcn.0040e400
push eax
call fcn.00402c30
mov eax, dword [esi + 0x2ec]
add esp, 0x18
test eax, eax
je 0x4223e8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.user_shutdown_system
push 0xb
call fcn.00415450
mov ecx, eax
call fcn.00418390
jmp 0x422a6b
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x64
je 0x422a77
mov al, byte [esi + 0x2f0]
test al, al
jne 0x422a77
push str.user_want_to_cancel_the_update_progress
push str.WeChatUpdateWnd
push 0x104
push str.uiWechatUpdateWnd.cpp
push 2
call fcn.0040e400
push eax
call fcn.00402c30
add esp, 4
mov edx, 0x3f8
mov ecx, esp
mov dword [ebp - 0x54], esp
call fcn.00406650
sub esp, 0x14
mov dword [ebp - 4], 0x16
mov edx, 0x3e8
mov ecx, esp
call fcn.00406650
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 4]
call fcn.0041e250
add esp, 0x28
mov dword [esi + 0x2d0], 0
xor eax, eax
jmp 0x422a83
push 0xa
call fcn.00422af0
jmp case.default.0x4224a1
lea eax, [edi - 0x465]
cmp eax, 7
ja case.default.0x4224a1
jmp dword [eax*4 + 0x422aa0]
sub esp, 0x14
mov edx, 0x84
mov ecx, esp
mov dword [ebp - 0x58], esp
call fcn.00406650
sub esp, 0x14
mov dword [ebp - 4], 0
mov edx, 0x83
mov dword [ebp - 0x54], esp
mov ecx, esp
call fcn.00406650
sub esp, 0x14
mov byte [ebp - 4], 1
mov edx, 0x68
mov dword [ebp - 0x5c], esp
mov ecx, esp
call fcn.00406650
sub esp, 0x14
mov byte [ebp - 4], 2
mov edx, 0x3e8
mov ecx, esp
call fcn.00406650
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 4]
call fcn.0041ecb0
add esp, 0x50
test al, al
je 0x422559
push str.user_confirmed_to_update
push str.WechatUpdateWnd
push 0x68
push str.uiWechatUpdateWnd.cpp
push 1
call fcn.0040e400
push eax
call fcn.00402c30
add esp, 0x18
mov ecx, esi
push 0
push 0
call fcn.00439635
push eax
push 0x421e70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2ec], eax
jmp case.default.0x4224a1
push str.user_canceled_to_update
push str.WechatUpdateWnd
push 0x6b
push str.uiWechatUpdateWnd.cpp
push 1
call fcn.0040e400
push eax
call fcn.00402c30
add esp, 0x18
push str.user_cancel_update
push 0xb
call fcn.00415450
mov ecx, eax
call fcn.00418390
jmp 0x422a6b
push 0x28
call fcn.00422af0
jmp case.default.0x4224a1
push 0x3c
call fcn.00422af0
push str.install_btn_1
lea ecx, [esi + 0x2c]
call fcn.00438130
mov dword [esi + 0x2c4], eax
mov ecx, eax
push 0
mov edx, dword [eax]
call dword [edx + 0xd8]
jmp case.default.0x4224a1
push 0x50
call fcn.00422af0
jmp case.default.0x4224a1
push 0x63
call fcn.00422af0
jmp case.default.0x4224a1
lea ecx, [esi + 0x2f0]
mov al, 1
xchg byte [ecx], al
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x4c]
movups xmmword [ebp - 0x4c], xmm0
call fcn.00405b40
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x38]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
call fcn.00405b40
push 0x3e9
mov byte [ebp - 4], 4
call fcn.00406500
lea eax, [ebp - 0x70]
push eax
call fcn.00415450
mov ecx, eax
call fcn.004196a0
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x422646
cmp word [edx], 0
jne 0x42264b
mov edx, 0x4aebf4
movups xmm0, xmmword [eax]
mov eax, dword [eax + 0x10]
sub esp, 0x14
mov ecx, esp
push edx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004063a0
add esp, 0x1c
lea ecx, [ebp - 0x70]
call fcn.00405df0
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x42267e
cmp word [edx], 0
jne 0x422683
mov edx, 0x4aebf4
mov ecx, dword [esi + 0x2cc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2bc]
push 1
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ecx, dword [esi + 0x2c0]
push 0
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ecx, dword [esi + 0x2c4]
push 0
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ecx, dword [esi + 0x2c8]
push 1
mov eax, dword [ecx]
call dword [eax + 0xcc]
call fcn.00415450
cmp dword [eax + 0xdc], 0xc8
jne 0x4226e9
push 0x64
mov ecx, esi
call fcn.00439740
lea ecx, [ebp - 0x38]
call fcn.00405df0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.00405df0
jmp case.default.0x4224a1
lea ecx, [esi + 0x2f0]
mov al, 1
xchg byte [ecx], al
call fcn.00415450
mov ecx, eax
call fcn.00415f20
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
mov edx, 0x3f7
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.00406650
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 5
lea ecx, [eax - 3]
cmp ecx, 8
ja case.0x422748.7
jmp dword [ecx*4 + 0x422ac0]
push str.pacth_not_exist
lea ecx, [ebp - 0x24]
call fcn.00406130
call fcn.00415450
cmp dword [eax + 0xdc], 0x190
je 0x422995
cmp dword [ebp + 0xc], 1
jne 0x422995
call fcn.00415450
cmp dword [eax + 0xe0], 0x3e9
je 0x4227a1
call fcn.00415450
cmp dword [eax + 0xe0], 0x3eb
jne 0x4228b7
cmp dword [ebp + 0x10], 0xa
jne 0x4228b7
sub esp, 0x14
mov ecx, esp
push 0xffffffffffffffff
push str.NeedUpdateType
call fcn.00405b70
mov ecx, 1
call fcn.0042cff0
add esp, 0x14
call fcn.00415450
mov ecx, eax
call fcn.00419cb0
call fcn.00415450
cmp dword [eax + 0xdc], 0xc8
jne 0x4227f7
call fcn.00415450
cmp dword [eax + 0xe0], 0x3eb
jne 0x422800
cmp byte [esi + 0x2e8], 0
je 0x42284a
mov dword [esi + 0x2d0], 1
jmp 0x422a07
push str.verify_md5_error
jmp 0x422754
push str.replace_file_error
jmp 0x422754
push str.replace_copy_file_error
jmp 0x422754
push eax
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0041f340
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00405df0
mov eax, esi
jmp 0x422a83
sub esp, 0x14
mov edx, 0x3f2
mov ecx, esp
mov dword [ebp - 0x50], esp
call fcn.00406650
sub esp, 0x14
mov byte [ebp - 4], 9
mov edx, 0x3f1
mov dword [ebp - 0x5c], esp
mov ecx, esp
call fcn.00406650
sub esp, 0x14
mov byte [ebp - 4], 0xa
mov edx, 0x3ee
mov dword [ebp - 0x58], esp
mov ecx, esp
call fcn.00406650
mov byte [ebp - 4], 0xb
sub esp, 0x14
mov edx, 0x3ef
mov ecx, esp
call fcn.00406650
mov byte [ebp - 4], 5
mov ecx, dword [esi + 4]
call fcn.0041ecb0
xor ecx, ecx
add esp, 0x50
test al, al
setne cl
inc ecx
jmp 0x422a01
call fcn.00415450
cmp dword [eax + 0xdc], 0x12c
je 0x42294e
call fcn.00415450
cmp dword [eax + 0xe0], 0x3e9
jne 0x4228f2
call fcn.00415450
mov ecx, eax
call fcn.00416780
cmp dword [eax + 0xb4], 0
je 0x42294e
call fcn.00415450
cmp dword [eax + 0xe0], 0x3eb
jne 0x422a07
sub esp, 0x14
mov edx, 0x3f2
mov ecx, esp
mov dword [ebp - 0x50], esp
call fcn.00406650
sub esp, 0x14
mov byte [ebp - 4], 0xf
mov edx, 0x3f1
mov dword [ebp - 0x5c], esp
mov ecx, esp
call fcn.00406650
sub esp, 0x14
mov byte [ebp - 4], 0x10
mov edx, 0x3ee
mov dword [ebp - 0x58], esp
mov ecx, esp
call fcn.00406650
mov byte [ebp - 4], 0x11
jmp 0x42288c
sub esp, 0x14
mov edx, 0x3f2
mov ecx, esp
mov dword [ebp - 0x50], esp
call fcn.00406650
sub esp, 0x14
mov byte [ebp - 4], 0xc
mov edx, 0x3f1
mov dword [ebp - 0x5c], esp
mov ecx, esp
call fcn.00406650
sub esp, 0x14
mov byte [ebp - 4], 0xd
mov edx, 0x3ee
mov dword [ebp - 0x58], esp
mov ecx, esp
call fcn.00406650
mov byte [ebp - 4], 0xe
jmp 0x42288c
sub esp, 0x14
mov edx, 0x3eb
mov ecx, esp
mov dword [ebp - 0x50], esp
call fcn.00406650
sub esp, 0x14
mov byte [ebp - 4], 6
mov edx, 0x3f1
mov dword [ebp - 0x5c], esp
mov ecx, esp
call fcn.00406650
sub esp, 0x14
mov byte [ebp - 4], 7
mov edx, 0x3ed
mov dword [ebp - 0x58], esp
mov ecx, esp
call fcn.00406650
sub esp, 0x14
mov byte [ebp - 4], 8
mov edx, 0x3ef
mov ecx, esp
call fcn.00406650
mov byte [ebp - 4], 5
mov ecx, dword [esi + 4]
call fcn.0041ecb0
xor ecx, ecx
add esp, 0x50
test al, al
mov edx, 2
cmovne ecx, edx
mov dword [esi + 0x2d0], ecx
push 0x64
mov ecx, esi
call fcn.00439740
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00405df0
jmp case.default.0x4224a1
cmp dword [esi + 0x2d8], 0
lea edx, [esi + 0x2d4]
setle al
test al, al
jne 0x422a6b
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0x50], esp
push edx
call fcn.00405bb0
sub esp, 0x14
mov dword [ebp - 4], 0x15
mov edx, 0x3ef
mov ecx, esp
call fcn.00406650
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 4]
call fcn.0041e250
add esp, 0x28
push 0x64
mov ecx, esi
call fcn.00439740
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x10]
push ecx
push edi
mov ecx, esi
call fcn.0041f340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464f19
mov esp, ebp
pop ebp
ret 0xc