Function at 0x10018ce0
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x588
mov eax, dword [0x10064008]
xor eax, esp
mov dword [esp + 0x584], eax
push esi
push edi
mov edi, dword [0x1008a438]
mov dword [esp + 0xc], edi
mov eax, dword [edi + 8]
or eax, dword [edi + 0xc]
je 0x10018d7f
call fcn.10011f10
cmp dword [eax + 0xa8], 3
jl 0x10018d69
push edi
push str.KLHookShared.cpp
push 0x8a
push str.CKLHookShared::HookInstall
push 3
lea ecx, [esp + 0x84]
call fcn.10011880
mov esi, eax
push str.already_installed._m_hHookGM0x
mov ecx, esi
call fcn.10011a30
mov byte [esi + 0x100], 1
mov ecx, esi
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.10019b00
push eax
call fcn.10011f10
mov ecx, eax
call fcn.10011db0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x584]
xor ecx, esp
call fcn.1002e779
mov esp, ebp
pop ebp
ret
push 0
push dword [0x1008a434]
push 0x10018c20
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cdq
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
call fcn.10011f10
cmp dword [eax + 0xa8], 4
jl 0x10018df6
push edi
push str.KLHookShared.cpp
push 0x94
push str.CKLHookShared::HookInstall
push 4
lea ecx, [esp + 0x84]
call fcn.10011880
mov esi, eax
push str.hHookGM0x
mov ecx, esi
call fcn.10011a30
mov byte [esi + 0x100], 1
mov ecx, esi
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.10019b00
push eax
call fcn.10011f10
mov ecx, eax
call fcn.10011db0
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 8], 0
test esi, esi
je 0x10019092
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 8], 0
je 0x10019092
mov eax, dword [edi + 0x10]
or eax, dword [edi + 0x14]
jne 0x10019092
push 0x104
lea eax, [esp + 0x17c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x178]
call fcn.10017b00
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
push str.SoundBoosterHelper.exe
mov word [eax], cx
lea eax, [esp + 0x17c]
push eax
push str._s_s
push str.SoundBoosterHelper.exe
call edi
lea esi, [eax + 1]
lea eax, [esp + 0x184]
push eax
call edi
add eax, esi
push eax
lea eax, [esp + 0x390]
push eax
call fcn.10017be0
add esp, 0x14
lea eax, [esp + 0x28]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
push 0x44
push 0
push eax
call fcn.10030e90
add esp, 0xc
mov dword [esp + 0x28], 0x44
push str.SBHCompletionEvent
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [esp + 8], esi
test esi, esi
jne 0x10018f36
call fcn.10011f10
mov edi, dword [esp + 0xc]
cmp dword [eax + 0xa8], 2
jl 0x10018f3a
push edi
push str.KLHookShared.cpp
push 0xa8
push str.CKLHookShared::HookInstall
push 2
lea ecx, [esp + 0x84]
call fcn.10011880
mov esi, eax
push str.FAILED_TO_create_completion_event
mov ecx, esi
call fcn.10011a30
push esi
call fcn.10011f10
mov ecx, eax
call fcn.10011db0
mov esi, dword [esp + 8]
jmp 0x10018f3a
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10018fd8
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10019092
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10019087
call fcn.10011f10
cmp dword [eax + 0xa8], 2
jl 0x10019087
push edi
push str.KLHookShared.cpp
push 0xbc
push str.CKLHookShared::HookInstall
push 2
lea ecx, [esp + 0x84]
call fcn.10011880
mov esi, eax
push str.Could_not_install_64_bit_hook._Wait_for_completion_event_timed_out
mov ecx, esi
call fcn.10011a30
push esi
jmp 0x10019077
call fcn.10011f10
cmp dword [eax + 0xa8], 2
jl 0x1001902d
push edi
push str.KLHookShared.cpp
push 0xc1
push str.CKLHookShared::HookInstall
push 2
lea ecx, [esp + 0x84]
call fcn.10011880
mov esi, eax
push str.FAILED_TO_LAUNCH_SoundBoosterHelper.exe._GetLastError__
mov ecx, esi
call fcn.10011a30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.10011750
push eax
call fcn.10011f10
mov ecx, eax
call fcn.10011db0
call fcn.10011f10
cmp dword [eax + 0xa8], 2
jl 0x10019083
push edi
push str.KLHookShared.cpp
push 0xc2
push str.CKLHookShared::HookInstall
push 2
lea ecx, [esp + 0x84]
call fcn.10011880
mov esi, eax
push str.strCommand
mov ecx, esi
call fcn.10011a30
lea eax, [esp + 0x380]
mov ecx, esi
push eax
call fcn.10014e60
push eax
call fcn.10011f10
mov ecx, eax
call fcn.10011db0
mov esi, dword [esp + 8]
test esi, esi
je 0x10019092
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
or eax, dword [edi + 0xc]
je 0x100190b3
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x584]
xor ecx, esp
call fcn.1002e779
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x58c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.1002e779
mov esp, ebp
pop ebp
ret