Function at 0x401753
Capabilities:
Get explorer pid

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x425250]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x64]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareGoogleUpdateClientState8A69D345_D564_463c_AFF1_A69D9E530F96
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0x74], 0x104
call edi
test eax, eax
jne 0x4017b7
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x5c]
push eax
push str.LastInstallerSuccessLaunchCmdLine
lea esi, [ebp - 0x64]
call fcn.00401351
add esp, 0xc
xor esi, esi
jmp 0x4017b9
xor al, al
test al, al
jne 0x401803
lea eax, [ebp - 0x64]
push eax
push 0x20019
push esi
push str.SoftwareGoogleUpdateClientState8A69D345_D564_463c_AFF1_A69D9E530F96
push ebx
mov dword [ebp - 0x74], 0x104
call edi
test eax, eax
jne 0x4017f6
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x5c]
push eax
push str.InstallerSuccessLaunchCmdLine
lea esi, [ebp - 0x64]
call fcn.00401351
add esp, 0xc
xor esi, esi
jmp 0x4017f8
xor al, al
test al, al
jne 0x401803
xor eax, eax
jmp 0x401988
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, esi
je 0x40181d
cmp eax, 1
jne 0x4017fc
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4017fc
push esi
push 0x40
push esi
push 2
push 6
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jne 0x401815
mov byte [ebp - 0x5d], al
call fcn.00401589
test al, al
je 0x401921
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00401605
pop ecx
pop ecx
test al, al
je 0x401815
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], esi
call dword [sym.imp.USER32.dll_GetShellWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x6c], esi
ja 0x40187e
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401815
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x6c]
call fcn.00401605
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
pop ecx
pop ecx
test al, al
je 0x401912
push dword [ebp - 0x64]
push dword [ebp - 0x70]
call fcn.0040b958
pop ecx
pop ecx
test eax, eax
jne 0x40190d
push dword [ebp - 0x6c]
push 1
push 0x440
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x80], eax
cmp eax, esi
je 0x40190d
lea ecx, [ebp - 0x7c]
push ecx
push 0xa
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4018f8
lea eax, [ebp - 0x78]
push eax
push 1
push 2
push esi
push 0xf
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4018f8
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4018f8
mov byte [ebp - 0x5d], 1
push dword [ebp - 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x7c]
call edi
push dword [ebp - 0x80]
call edi
push dword [ebp - 0x64]
call ebx
push dword [ebp - 0x70]
call ebx
cmp byte [ebp - 0x5d], 0
je 0x401815
lea eax, [ebp - 0x68]
push eax
push 0x422548
push 4
push esi
push 0x422538
xor bl, bl
mov dword [ebp - 0x68], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401964
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
lea edx, [ebp - 0x5c]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x401954
inc bl
mov eax, dword [ebp - 0x68]
cmp eax, esi
je 0x401964
mov dword [ebp - 0x68], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0x5d], 0
je 0x401970
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x68]
movzx edi, bl
cmp eax, esi
je 0x401986
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp + 0x1ac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ede
add ebp, 0x1b0
leave
ret