Function at 0x4091d6
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x244
mov eax, 0x41cddb
call fcn.0041b8a8
sub ebx, ebx
push ebx
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x248], esp
push eax
mov edi, str.successfulSets
call fcn.00402d3a
lea eax, [ebp - 0x248]
push eax
call fcn.004010bd
add esp, 0x10
push ebx
push 1
push ecx
mov dword [ebp - 4], ebx
mov eax, esp
mov dword [ebp - 0x24c], esp
push eax
mov edi, str.sawChromeShutdown
call fcn.00402d3a
call fcn.0040116d
add esp, 0xc
push 0x423044
lea esi, [ebp - 0x248]
push eax
pop edi
call fcn.0040a377
cmp eax, 0xffffffff
je 0x40942a
cmp edi, ebx
jne 0x40942a
push str.Checking_for_Chrome_windows...
call fcn.0040709d
pop ecx
lea eax, [ebp - 0x244]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x24c], esp
push eax
mov edi, str._findchromewins
call fcn.00402d3a
push ecx
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x244], esp
push eax
mov edi, str.YSearchSetTool.exe
call fcn.00402d3a
mov byte [ebp - 4], bl
call fcn.00407298
add esp, 0xc
cmp eax, ebx
jl 0x40941d
push 0xffffffffffffffff
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x24c], 0xa
jne 0x409411
push str.Found_no_chrome_windows...
call fcn.0040709d
pop ecx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x244], eax
cmp eax, 0xffffffff
je 0x40942a
mov esi, 0x22c
push esi
lea eax, [ebp - 0x23c]
push ebx
push eax
mov byte [ebp - 0x23d], bl
call fcn.0040e690
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x244]
mov dword [ebp - 0x23c], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, eax
je 0x409407
lea eax, [ebp - 0x218]
push str.chrome.exe
push eax
call fcn.0040dc1e
pop ecx
pop ecx
or eax, eax
je 0x4093c3
push str.Found_a_chrome_process...
call fcn.0040709d
pop ecx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [ebp + 8], 5
jne 0x4093a2
push dword [ebp - 0x234]
push ebx
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
pop edi
cmp edi, ebx
je 0x4093bc
push str.Killing_a_chrome_process_with_no_window_
call fcn.0040709d
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call esi
jmp 0x4093bc
cmp byte [ebp - 0x23d], bl
jne 0x4093bc
inc dword [ebp + 8]
push dword [ebp + 8]
push str.Saw_a_chrome_process_with_no_window____Will_terminate_when__d_is_5
call fcn.0040709d
pop ecx
pop ecx
mov byte [ebp - 0x23d], 1
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
or eax, eax
jne 0x409337
cmp byte [ebp - 0x23d], bl
jne 0x409407
push ebx
push 1
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x250], esp
push eax
mov edi, str.sawChromeShutdown
call fcn.00402d3a
call fcn.0040128c
add esp, 0x10
push dword [ebp - 0x244]
call esi
jmp 0x40942a
push str.Found_a_chrome_window...
call fcn.0040709d
jmp 0x409429
push eax
push str.Error_launching_proc_to_look_for_Chrome_windows:__x
call fcn.0040709d
pop ecx
pop ecx
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
call fcn.00402daa
mov eax, dword [ebp + 8]
call fcn.0041b8f2
ret