Function at 0x403450
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x421008]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x38]
push ebx
push esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x14], eax
call fcn.00403180
mov eax, dword [esp + 0x58]
cmp eax, 8
jb 0x403498
inc eax
push eax
push dword [esp + 0x48]
call fcn.00401a60
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
push str.SoftwareTencentWeChat
push 0x80000001
mov byte [esp + 0x23], 1
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x400
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4034ee
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
push eax
push 0
push 0
push str.NeedUpdateType
push dword [esp + 0x30]
call edi
push dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x403530
sub esp, 0x18
mov ecx, esp
push 0xe
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
push str.NeedUpdateType
mov word [ecx], ax
call fcn.00401870
lea ecx, [esp + 0x54]
call fcn.00403e80
mov eax, dword [esp + 0x54]
add esp, 0x18
movzx ecx, byte [esp + 0xf]
xor edx, edx
cmp eax, 0x64
lea eax, [esp + 0x160]
push 0x1f4
push edx
cmovge ecx, edx
push eax
mov dword [esp + 0x1c], ecx
call fcn.00408700
add esp, 0xc
lea eax, [esp + 0x98]
push 0xc8
push 0
push eax
call fcn.00408700
add esp, 0xc
mov dword [esp + 0x20], 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x40], 0x400
push eax
push 0xf003f
push 0
push str.SoftwareTencentWeChat
push 0x80000001
call ebx
test eax, eax
jne 0x4035b3
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push str.LANG_ID
push dword [esp + 0x30]
call edi
push dword [esp + 0x1c]
call esi
cmp dword [esp + 0x20], 4
lea eax, [esp + 0x98]
je 0x4035d6
mov dword [esp + 0x20], 1
push str.Runtime_Error
jmp 0x4035db
push 0x41e3a0
push eax
call fcn.00404d70
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xa0]
add esp, 8
lea edx, [esp + 0x160]
push eax
call fcn.00402b90
add esp, 4
test al, al
jne 0x403637
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x98]
push eax
lea edx, [esp + 0x164]
call fcn.00402d20
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0040655e
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov dword [esp + 0x7c], 7
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
call fcn.00402e40
sub esp, 0x18
mov dword [esp + 0x7c], 0
mov ecx, esp
xor eax, eax
xorps xmm0, xmm0
movq qword [esp + 0x74], xmm0
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0xa0]
push eax
call fcn.00401500
lea ecx, [esp + 0x74]
call fcn.00402600
mov edi, dword [esp + 0x78]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x74]
mov ecx, edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub ecx, esi
imul ecx
add esp, 0x18
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x403809
cmp esi, edi
je 0x403809
xor eax, eax
mov dword [esp + 0x58], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
call fcn.00401500
xor eax, eax
mov dword [esp + 0x38], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x2c], ax
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x88]
mov dword [esp + 0x3c], 0
push eax
call fcn.00401500
push 1
push str..__
lea ecx, [esp + 0x2c]
call fcn.00404950
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.00404a30
push 0xe
push str.WeChatWin.dll
mov ecx, eax
call fcn.00404950
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call ebx
test eax, eax
jne 0x403797
mov eax, dword [esp + 0x38]
cmp eax, 8
jb 0x403776
inc eax
push eax
push dword [esp + 0x28]
call fcn.00401a60
mov eax, dword [esp + 0x58]
cmp eax, 8
jb 0x40378a
inc eax
push eax
push dword [esp + 0x48]
call fcn.00401a60
add esi, 0x18
cmp esi, edi
jne 0x4036d0
jmp 0x403809
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x74]
call fcn.00404a30
push 1
push str..__
mov ecx, eax
call fcn.00404950
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.00404a30
mov eax, dword [esp + 0x38]
cmp eax, 8
jb 0x4037de
inc eax
push eax
push dword [esp + 0x28]
call fcn.00401a60
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], 0
cmp eax, 8
jb 0x403809
inc eax
push eax
push dword [esp + 0x48]
call fcn.00401a60
cmp dword [esp + 0x78], 0
jne 0x403825
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x74]
call fcn.00404a30
cmp dword [esp + 0x7c], 8
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
cmp byte [esp + 0x10], 0
lea ecx, [esp + 0x24]
je 0x403a17
xor eax, eax
mov dword [esp + 0x38], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x40], 0
call fcn.00404a30
push 0xe
push str.WeChatWin.dll
mov ecx, eax
call fcn.00404950
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x4038cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x38], 8
lea ecx, [esp + 0x24]
push eax
cmovae ecx, dword [esp + 0x28]
push ecx
call ebx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x164]
test eax, eax
setne al
movzx eax, al
push eax
call fcn.00402af0
add esp, 8
jmp 0x403913
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StartWechat
push esi
call edi
test eax, eax
jne 0x40393e
push str.StartWachat
push esi
call edi
test eax, eax
jne 0x40393e
cmp dword [esp + 0x20], 1
push eax
lea eax, [esp + 0x164]
push 0x41dc10
jne 0x403905
push str.Invalid_file___s__errCode:_d._Click__OK__to_get_the_latest_version_from_the_store
jmp 0x40390a
push 0x41dcd8
push eax
call fcn.00404d50
add esp, 0x10
push 1
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x168]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x403937
call fcn.00402b50
xor esi, esi
jmp 0x4039fa
push dword [esp + 0x14]
push dword [esp + 0x1c]
call eax
add esp, 8
mov dword [esp + 0x1c], 0
lea edx, [esp + 0x1c]
mov ecx, str.NeedUpdateType
mov esi, eax
call fcn.00403be0
test al, al
je 0x4039fa
cmp dword [esp + 0x1c], 0x64
jl 0x4039fa
lea ecx, [esp + 0x44]
call fcn.00403180
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
call ebx
test eax, eax
je 0x4039f1
call fcn.004041b0
test al, al
jne 0x4039f1
push 0xc8
lea eax, [esp + 0x35c]
push 0
push eax
call fcn.00408700
add esp, 0xc
lea eax, [esp + 0x358]
push 0xa
push 0x64
push eax
push dword [esp + 0x28]
call fcn.0040b594
add esp, 0x10
lea eax, [esp + 0x44]
cmp dword [esp + 0x58], 8
cmovae eax, dword [esp + 0x44]
push 1
push 0
push str.1002
push eax
push 0x41dbb4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x44]
call fcn.00401ac0
mov eax, dword [esp + 0x38]
cmp eax, 8
jb 0x403b62
inc eax
push eax
push dword [esp + 0x28]
call fcn.00401a60
jmp 0x403b62
call fcn.00403180
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call ebx
test eax, eax
je 0x403ac2
call fcn.004041b0
test al, al
jne 0x403b39
push 0xc8
lea eax, [esp + 0x35c]
push 0
push eax
call fcn.00408700
add esp, 0xc
lea eax, [esp + 0x358]
push 0xa
push 0x64
push eax
push dword [esp + 0x48]
call fcn.0040b594
add esp, 0x10
lea ecx, [esp + 0x44]
call fcn.00403330
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x403a84
mov ecx, dword [ecx]
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
push 1
cmovae eax, dword [esp + 0x28]
push ecx
push str.1001
push eax
push 0x41dbb4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x58]
cmp eax, 8
jb 0x403b39
inc eax
push eax
push dword [esp + 0x48]
call fcn.00401a60
jmp 0x403b39
cmp dword [esp + 0x20], 1
lea eax, [esp + 0x160]
jne 0x403ad7
push str.WeChatUpdate.exe_missing._Clicking__OK__to_navigate_to_official_website_http:__pc.weixin.qq.com___and_get_the_latest_version
jmp 0x403adc
push 0x41dec0
push eax
call fcn.00404d50
add esp, 8
lea eax, [esp + 0x98]
push 1
push eax
lea eax, [esp + 0x168]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x403b39
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push eax
push 0
push 0
push str.http:__pc.weixin.qq.com_
push 0x41dbb4
push 0
call esi
cmp eax, 0x20
jg 0x403b39
push 1
push 0
push str.http:__pc.weixin.qq.com_
push str.iexplore.exe
push 0x41dbb4
push 0
call esi
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, 8
jb 0x403b4f
inc eax
push eax
push dword [esp + 0x28]
call fcn.00401a60
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], esi
mov word [esp + 0x24], ax
lea ecx, [esp + 0x5c]
call fcn.00404750
mov eax, dword [esp + 0x94]
cmp eax, 8
jb 0x403b85
inc eax
push eax
push dword [esp + 0x84]
call fcn.00401a60
mov ecx, dword [esp + 0x7c]
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
cmp ecx, 8
jb 0x403bb9
inc ecx
push ecx
push dword [esp + 0x6c]
call fcn.00401a60
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040655e
mov esp, ebp
pop ebp
ret 0x10