Function at 0x422040
Capabilities:
Check if file exists
Get common file path
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x4d6f59
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x536f50]
xor eax, esp
mov dword [esp + 0x45c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x536f50]
xor eax, esp
push eax
lea eax, [esp + 0x474]
mov dword fs:[0], eax
mov esi, dword [esp + 0x484]
mov edi, dword [esp + 0x488]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0xf4]
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp eax, 2
jbe 0x4220e1
push 2
add eax, 0xfffffffe
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esi + 0xe0]
call fcn.00410880
mov ecx, dword [eax + 0x14]
push 2
push 0x4df58c
push ecx
mov ebx, 1
push ebp
mov ecx, eax
mov dword [esp + 0x48c], ebp
mov dword [esp + 0x2c], ebx
call fcn.00410570
mov byte [esp + 0x17], bl
test eax, eax
je 0x4220e6
mov byte [esp + 0x17], 0
test bl, 1
mov dword [esp + 0x47c], 0xffffffff
mov ebx, 8
je 0x42210e
cmp dword [esp + 0x5c], ebx
jb 0x42210e
mov edx, dword [esp + 0x48]
push edx
call fcn.004798f2
add esp, 4
cmp byte [esp + 0x17], 0
je 0x422285
cmp dword [esi + 0xc0], ebx
jb 0x422129
mov eax, dword [esi + 0xac]
jmp 0x42212f
lea eax, [esi + 0xac]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004d3da0
push 0x206
lea edx, [esp + 0x6e]
xor ecx, ecx
push ebp
push edx
mov dword [esp + 0x490], 1
mov word [esp + 0x74], cx
call fcn.0047a920
add esp, 0x14
lea eax, [esp + 0x60]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [esi + 0xf8], ebx
jb 0x42217f
mov eax, dword [esi + 0xe4]
jmp 0x422185
lea eax, [esi + 0xe4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea ecx, [esp + 0x64]
push ecx
call edi
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [esp + 0x48]
mov ebp, 0x10
cmp dword [esp + 0x5c], ebp
jae 0x4221b1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.0041a5f0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x27a]
push edx
mov word [esp + 0x27c], cx
call fcn.0047a920
add esp, 0x14
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [esi + 0xf8], ebx
jb 0x4221ff
mov esi, dword [esi + 0xe4]
jmp 0x422205
add esi, 0xe4
push esi
lea edx, [esp + 0x26c]
push edx
call edi
push str..dll
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x268]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422269
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x422262
push str.Install_7z
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x422262
call eax
movzx eax, al
mov dword [esp + 0x18], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x5c], ebp
jb 0x422575
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004798f2
add esp, 4
jmp 0x422575
mov edx, dword [edi + 0x14]
push 0xd
push 0x4df564
push edx
push ebp
mov ecx, edi
call fcn.004073e0
test eax, eax
je 0x42245c
mov eax, dword [edi + 0x14]
push ebx
push str.bdsrfdll
push eax
push ebp
mov ecx, edi
call fcn.004073e0
test eax, eax
je 0x42245c
push str.baidushurufadll
push edi
call fcn.004073c0
add esp, 8
test al, al
jne 0x42245c
push str.jzllqdll
push edi
call fcn.004073c0
add esp, 8
test al, al
je 0x422325
cmp dword [esi + 0xc0], ebx
jb 0x4222f2
mov esi, dword [esi + 0xac]
jmp 0x4222f8
add esi, 0xac
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebp
je 0x42231f
push str.SetupJuZi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x42231f
call eax
mov dword [esp + 0x18], 1
push esi
jmp 0x42256f
push str.dzsdll
push edi
call fcn.004073c0
add esp, 8
test al, al
je 0x422379
cmp dword [esi + 0xc0], ebx
jb 0x422347
mov esi, dword [esi + 0xac]
jmp 0x42234d
add esi, 0xac
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebp
je 0x422373
push str.SetupDaZhanShen
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x422373
call eax
movzx ecx, al
mov dword [esp + 0x18], ecx
push esi
jmp 0x42256f
push esi
call fcn.00421680
add esp, 4
test eax, eax
je 0x422575
push esi
call fcn.00420ea0
add esp, 4
test eax, eax
jne 0x4223e9
cmp dword [esi + 0x138], ebx
jb 0x4223a7
mov eax, dword [esi + 0x124]
jmp 0x4223ad
lea eax, [esi + 0x124]
cmp dword [esi + 0xc0], ebx
jb 0x4223cf
mov esi, dword [esi + 0xac]
push ebp
push eax
push esi
call fcn.0041f460
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x422575
push ebp
push eax
add esi, 0xac
push esi
call fcn.0041f460
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x422575
push esi
call fcn.00421290
add esp, 4
test eax, eax
jne 0x422575
cmp dword [0x535fa0], 0x10
mov eax, dword [0x535f8c]
jae 0x42240d
mov eax, 0x535f8c
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.004d3840
add esp, 8
mov dword [esp + 0x47c], 6
cmp dword [eax + 0x18], ebx
jb 0x422430
mov eax, dword [eax + 4]
jmp 0x422433
add eax, 4
lea ecx, [esi + 0x120]
push ecx
add esi, 0xa8
push esi
push eax
call fcn.00421ed0
add esp, 0xc
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], eax
call fcn.00401780
jmp 0x422575
cmp dword [esi + 0xc0], ebx
jb 0x42246c
mov eax, dword [esi + 0xac]
jmp 0x422472
lea eax, [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
test ebp, ebp
je 0x422575
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateSetupObject
push ebp
call ebx
push str.DestroySetupObject
push ebp
mov edi, eax
call ebx
mov dword [esp + 0x1c], eax
test edi, edi
je 0x42256e
test eax, eax
je 0x42256e
push 0
call edi
mov edi, eax
mov dword [esp + 0x20], vtable.CSetupCallback.0
mov dword [esp + 0x24], 0
add esi, 0xfc
push esi
lea edx, [esp + 0x2c]
push str._supply_id_:_
mov ebx, 2
push edx
mov dword [esp + 0x488], ebx
call fcn.0041b550
push 0x4df4c8
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x494], 3
call fcn.0041b480
add esp, 0x18
lea ecx, [esp + 0x28]
mov byte [esp + 0x47c], 5
call fcn.00401780
test edi, edi
je 0x422565
mov ecx, dword [edi]
mov eax, dword [ecx]
push 0
lea edx, [esp + 0x24]
push edx
push edi
call eax
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x422534
lea eax, [esp + 0x48]
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push eax
push edi
call edx
test eax, eax
jne 0x422560
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
push 0xffffffffffffffff
push edi
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x24], ebx
jne 0x422560
mov dword [esp + 0x18], 1
push edi
call dword [esp + 0x20]
lea ecx, [esp + 0x44]
call fcn.00401780
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x45c]
xor ecx, esp
call fcn.0047a885
add esp, 0x46c
ret