Function at 0x406fb3
Capabilities:
Check if file exists
Check os version
Compare security identifiers
Create process on windows
Enumerate processes
Get common file path

Disassembly:
push ebp
sub esp, 0xeb4
lea ebp, [esp - 4]
mov eax, dword [0x463060]
xor eax, ebp
mov dword [ebp + 0xeb4], eax
push 0x130
mov eax, 0x44fcb5
call fcn.0042ec8d
cmp dword [0x464798], 8
mov eax, dword [0x464784]
jae 0x406fed
mov eax, 0x464784
push eax
mov esi, 0x104
lea eax, [ebp + 0xba8]
push esi
push eax
call fcn.0042c2c6
add esp, 0xc
push str.KuaiZip.exe
lea eax, [ebp + 0xba8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0xba8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40702d
xor eax, eax
jmp 0x407b72
push str.kuaizipUpdateChecker.dll
lea eax, [ebp - 0x68]
push 0x464780
push eax
call fcn.0040386a
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x208
mov word [ebp + 0x794], ax
lea eax, [ebp + 0x796]
push ebx
push eax
call fcn.0042e560
add esp, 0x18
push esi
lea eax, [ebp + 0x794]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea eax, [ebp + 0x794]
push eax
lea esi, [ebp + 0x568]
call fcn.0040216b
push str._regsvr32.exe
mov eax, esi
push eax
mov byte [ebp - 4], 1
call fcn.0040174a
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x4070a0
lea eax, [ebp - 0x64]
push 0x45bc84
push eax
call fcn.0042d093
pop ecx
pop ecx
test eax, eax
je 0x407149
mov edi, 0x45bc88
push edi
lea esi, [ebp - 0xc0]
call fcn.0040216b
mov dword [ebp - 0x20], eax
push edi
lea esi, [ebp - 0x13c]
mov byte [ebp - 4], 2
call fcn.0040216b
lea ecx, [ebp - 0x68]
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 4], 3
call fcn.00405043
mov byte [ebp - 4], 4
push dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00405043
add esp, 0x18
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.004025ff
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x4c]
call fcn.004026e6
push ebx
push edi
lea esi, [ebp - 0x120]
call fcn.004026e6
push ebx
push edi
lea esi, [ebp - 0x13c]
call fcn.004026e6
push ebx
push edi
lea esi, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.004026e6
push 0x45bc8c
lea eax, [ebp + 0x568]
push eax
call fcn.0040174a
push str.__s
lea eax, [ebp + 0x568]
push eax
call fcn.0040174a
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x68]
lea ecx, [ebp + 0x568]
call fcn.0040229a
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
sub esp, 0x1c
mov ecx, eax
mov ebx, esp
mov dword [ebp - 0x20], esp
call fcn.00405106
lea ebx, [ebp - 0xc0]
call fcn.0040508e
add esp, 0x1c
push str.SYSTEM
push 6
mov byte [ebp - 4], 6
mov ecx, dword [eax + 0x14]
pop edi
call fcn.004021b0
neg eax
sbb al, al
xor ebx, ebx
push ebx
inc al
push 1
lea esi, [ebp - 0xc0]
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 1
call fcn.004026e6
cmp byte [ebp - 0x11], bl
je 0x4079ab
sub esp, 0x1c
lea eax, [ebp + 0x568]
mov esi, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040268b
lea edi, [ebp - 0xc0]
call fcn.004028c5
add esp, 0x1c
mov byte [ebp - 4], 7
cmp dword [eax + 0x18], 0x10
jb 0x40720d
mov esi, dword [eax + 4]
mov dword [ebp - 0x30], esi
jmp 0x407215
add eax, 4
mov dword [ebp - 0x30], eax
mov esi, eax
cmp esi, ebx
je 0x40799b
push 0x103
lea eax, [ebp + 0xdb1]
push ebx
push eax
mov byte [ebp + 0xdb0], bl
call fcn.0042e560
mov eax, esi
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40723d
sub eax, edi
cmp eax, 2
jbe 0x407268
cmp byte [esi + 1], 0x3a
jne 0x407268
push esi
lea eax, [ebp + 0xdb0]
push 0x104
push eax
call fcn.0042cdbf
add esp, 0xc
jmp 0x407296
push 0x104
lea eax, [ebp + 0xdb0]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp + 0xdb0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push esi
lea eax, [ebp + 0xdb0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edi, pe_nt_image_headers32
push edi
lea eax, [ebp + 4]
push ebx
push eax
call fcn.0042e560
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], 0x114
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
je 0x4072d0
cmp dword [ebp + 4], 6
jne 0x4072d0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x1c], ebx
jne 0x4074ff
push edi
lea eax, [ebp + 0x22c]
push ebx
push eax
call fcn.0042e560
add esp, 0xc
lea eax, [ebp + 0x228]
push eax
mov dword [ebp + 0x228], 0x114
call esi
test eax, eax
je 0x407319
cmp dword [ebp + 0x22c], 5
jne 0x407319
cmp dword [ebp + 0x230], ebx
je 0x40742d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push ebx
push ebx
xor edi, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x40736d
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov esi, 0x490
cmp dword [ebp - 0x24], ebx
jbe 0x40735f
lea edx, [ecx + 8]
cmp dword [edx], ebx
je 0x407357
inc eax
add edx, 0xc
cmp eax, dword [ebp - 0x24]
jb 0x407348
jmp 0x40735f
imul eax, eax, 0xc
mov edi, dword [eax + ecx]
xor esi, esi
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
cmp esi, ebx
je 0x40736d
mov eax, esi
jmp 0x40739d
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
jne 0x407390
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x40739d
lea ecx, [ebp - 0x28]
push ecx
push edi
call eax
test eax, eax
je 0x407388
xor eax, eax
cmp eax, ebx
je 0x407699
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4073bf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x407691
push 0x228
lea eax, [ebp + 0x340]
push ebx
push eax
xor edi, edi
mov dword [ebp - 0x10], 0x490
call fcn.0042e560
add esp, 0xc
lea eax, [ebp + 0x33c]
push eax
push esi
mov dword [ebp + 0x33c], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x4074ae
lea eax, [ebp + 0x360]
push str.explorer.exe
push eax
call fcn.0042cf38
pop ecx
pop ecx
test eax, eax
je 0x4074a3
lea eax, [ebp + 0x33c]
push eax
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4073fc
jmp 0x4074b7
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4073b4
push 0x228
lea eax, [ebp + 0x340]
push ebx
push eax
xor edi, edi
mov dword [ebp - 0x10], 0x490
call fcn.0042e560
add esp, 0xc
lea eax, [ebp + 0x33c]
push eax
push esi
mov dword [ebp + 0x33c], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x4074ae
lea eax, [ebp + 0x360]
push str.explorer.exe
push eax
call fcn.0042cf38
pop ecx
pop ecx
test eax, eax
je 0x4074a3
lea eax, [ebp + 0x33c]
push eax
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x407479
jmp 0x4074b7
mov edi, dword [ebp + 0x344]
mov dword [ebp - 0x10], ebx
jmp 0x4074b7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push edi
push ebx
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x4073b4
lea eax, [ebp - 0x28]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4074f4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
push edi
call esi
mov eax, dword [ebp - 0x10]
jmp 0x407691
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push ebx
push ebx
mov dword [ebp - 0x18], ebx
xor edi, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x407556
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov esi, 0x490
cmp dword [ebp - 0x24], ebx
jbe 0x407548
lea edx, [ecx + 8]
cmp dword [edx], ebx
je 0x407540
inc eax
add edx, 0xc
cmp eax, dword [ebp - 0x24]
jb 0x407531
jmp 0x407548
imul eax, eax, 0xc
mov edi, dword [eax + ecx]
xor esi, esi
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
cmp esi, ebx
je 0x407556
mov eax, esi
jmp 0x407586
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
jne 0x407579
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x407586
lea ecx, [ebp - 0x18]
push ecx
push edi
call eax
test eax, eax
je 0x407571
xor eax, eax
cmp eax, ebx
je 0x40766a
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4075a8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x407662
push 0x228
lea eax, [ebp + 0x340]
push ebx
push eax
xor edi, edi
mov dword [ebp - 0x10], 0x490
call fcn.0042e560
add esp, 0xc
lea eax, [ebp + 0x33c]
push eax
push esi
mov dword [ebp + 0x33c], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x407616
lea eax, [ebp + 0x360]
push str.explorer.exe
push eax
call fcn.0042cf38
pop ecx
pop ecx
test eax, eax
je 0x40760b
lea eax, [ebp + 0x33c]
push eax
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4075e1
jmp 0x40761f
mov edi, dword [ebp + 0x344]
mov dword [ebp - 0x10], ebx
jmp 0x40761f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push edi
push ebx
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x40759d
lea eax, [ebp - 0x18]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40765c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
push edi
call esi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x40798d
lea eax, [ebp + 0x584]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push 0x13
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
mov eax, dword [ebp - 0x18]
je 0x40768c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
xor eax, eax
cmp eax, ebx
jne 0x40798d
push 0x40
lea eax, [ebp - 0x100]
push ebx
push eax
mov dword [ebp - 0x104], 0x44
call fcn.0042e560
xor eax, eax
mov dword [ebp - 0x40], ebx
add esp, 0xc
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
mov esi, dword [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp + 0x584]
push eax
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], ebx
mov byte [ebp + 0x584], bl
mov byte [ebp + 0x585], bl
mov byte [ebp + 0x586], bl
mov byte [ebp + 0x587], bl
mov byte [ebp + 0x588], bl
mov byte [ebp + 0x589], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x407789
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x407730
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x407789
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40777e
mov dword [ebp - 0x2c], ebx
cmp dword [edi], ebx
jbe 0x40777e
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40777a
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
add esi, 8
cmp eax, dword [edi]
jb 0x40775c
jmp 0x40777e
mov byte [ebp - 0x11], 1
cmp edi, ebx
je 0x407789
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp dword [ebp - 0x18], ebx
je 0x407797
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x11], bl
jne 0x4078a2
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x40780a
push pe_nt_image_headers32
lea eax, [ebp + 0x118]
push ebx
push eax
call fcn.0042e560
add esp, 0xc
lea eax, [ebp + 0x114]
push eax
mov dword [ebp + 0x114], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x407805
cmp dword [ebp + 0x118], 6
jne 0x407805
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x40783e
mov dword [ebp - 0x1c], ebx
jmp 0x407842
mov edx, dword [ebp - 0x20]
xor eax, eax
mov esi, 0x490
cmp dword [ebp - 0x2c], ebx
jbe 0x407836
lea ecx, [edx + 8]
cmp dword [ecx], ebx
je 0x40782b
inc eax
add ecx, 0xc
cmp eax, dword [ebp - 0x2c]
jb 0x40781c
jmp 0x407836
imul eax, eax, 0xc
mov eax, dword [eax + edx]
mov dword [ebp - 0x1c], eax
xor esi, esi
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
cmp eax, ebx
jne 0x4078a2
lea eax, [ebp - 0x10]
push eax
push 0xa
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp dword [ebp - 0x10], ebx
je 0x4078a2
lea eax, [ebp - 0x18]
push eax
push 1
push 1
push ebx
push 0x2000000
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x10]
cmp dword [ebp - 0x18], ebx
jne 0x407881
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4078a2
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xc
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4078a2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
push str.userenv.dll
mov dword [ebp - 0xfc], str.Winsta0Default
mov dword [ebp - 0x20], 0x30
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x407906
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call esi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x18]
mov edi, eax
call esi
mov dword [ebp - 0x1c], eax
cmp edi, ebx
je 0x407906
push ebx
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
je 0x407903
mov dword [ebp - 0x20], 0x430
jmp 0x407906
mov dword [ebp - 0x24], ebx
mov esi, 0x103
push esi
lea eax, [ebp + 0x239]
push ebx
push eax
mov byte [ebp + 0x238], bl
call fcn.0042e560
push dword [ebp - 0x30]
lea eax, [ebp + 0x238]
push esi
push eax
call fcn.0042cdbf
add esp, 0x18
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [ebp - 0x24]
lea eax, [ebp + 0x238]
push dword [ebp - 0x20]
push ebx
push ebx
push ebx
push eax
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
cmp dword [ebp - 0x40], ebx
je 0x407966
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x3c], ebx
je 0x407974
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x40797f
push dword [ebp - 0x24]
call dword [ebp - 0x1c]
cmp dword [ebp - 0x18], ebx
je 0x40798d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [ebp - 0x28], ebx
je 0x40799b
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0xc0]
call fcn.00401ccf
jmp 0x407a15
push 0x44
pop esi
push esi
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.0042e560
mov eax, dword [ebp + 0x56c]
add esp, 0xc
cmp dword [ebp + 0x580], 8
mov dword [ebp - 0x104], esi
jae 0x4079da
lea eax, [ebp + 0x56c]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x407a15
push 0xdbba0
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp + 0x568]
call fcn.004026e6
push ebx
push edi
lea esi, [ebp - 0x68]
call fcn.004026e6
push 0x38
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.0042e560
lea eax, [ebp + 0xba8]
mov dword [ebp - 0x94], eax
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x3c
mov dword [ebp - 0x90], str._AssociateAll
mov dword [ebp - 0x88], edi
mov dword [ebp - 0xa0], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x407026
push 0xffffffffffffffff
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [0x464798], 8
mov eax, dword [0x464784]
jae 0x407aa4
mov eax, 0x464784
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push eax
lea eax, [ebp + 0x9a0]
push eax
call esi
push str.KZipShell.dll
lea eax, [ebp + 0x9a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x9a0]
push 0x45bc84
push eax
call fcn.0042d093
pop ecx
test eax, eax
lea eax, [ebp + 0x9a0]
pop ecx
push eax
lea eax, [ebp + 0x58c]
je 0x407af1
push str.__s___s
jmp 0x407af6
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push str.regsvr32.exe
lea eax, [ebp + 0xba8]
push eax
call esi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.0042e560
lea eax, [ebp + 0xba8]
mov dword [ebp - 0x94], eax
lea eax, [ebp + 0x58c]
mov dword [ebp - 0x90], eax
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0xa0], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x407026
push 0xffffffffffffffff
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xeb4]
xor ecx, ebp
call fcn.0042bd77
add ebp, 0xeb8
leave
ret