Function at 0x1400bc920
Capabilities:
Set global application hook

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x518
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xde
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x538]
mov rax, qword [0x14023ac40]
xor rax, rbp
mov qword [rbp + 0x4e8], rax
lea rcx, str.StartMenuDLL.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 8], rax
lea rdx, str.StartMenu:_hooking_Explorer
lea rcx, str.SoftwareOpenShellStartMenuSettingsLogStartup_LOCALAPPDATA_OpenShellStartupLog.txt
call qword [sym.imp.StartMenuDLL.dll_void___cdecl_DllLogToFile_wchar_t_const____ptr64__wchar_t_const____ptr64_]
mov qword [rbp + 0x28], 0
cmp dword [rbp + 0x510], 2
jne 0x1400bc9c0
call fcn.14009b929
movzx eax, ax
cmp eax, 0x602
jl 0x1400bc9c0
call fcn.14009b929
movzx eax, ax
cmp eax, 0x603
jg 0x1400bc9c0
mov dword [rbp + 0x4e4], 1
jmp 0x1400bc9ca
mov dword [rbp + 0x4e4], 0
movzx eax, byte [rbp + 0x4e4]
mov byte [rbp + 0x44], al
mov dword [rbp + 0x64], 0
jmp 0x1400bc9e5
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0x78
jge 0x1400bca91
movzx eax, byte [rbp + 0x44]
test eax, eax
je 0x1400bca2b
xor edx, edx
lea rcx, str.ApplicationManager_DesktopShellWindow
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x1400bca17
mov dword [rbp + 0x4e4], 1
jmp 0x1400bca21
mov dword [rbp + 0x4e4], 0
movzx eax, byte [rbp + 0x4e4]
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x44]
test eax, eax
jne 0x1400bca6d
xor r9d, r9d
lea r8, str.Progman
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x1400bca54
jmp 0x1400bca91
cmp dword [rbp + 0x510], 2
je 0x1400bca6d
cmp dword [rbp + 0x510], 3
je 0x1400bca6d
mov al, 1
jmp 0x1400bccc3
lea rdx, str.StartMenu:_cant_find_Progman__retrying
lea rcx, str.SoftwareOpenShellStartMenuSettingsLogStartup_LOCALAPPDATA_OpenShellStartupLog.txt
call qword [sym.imp.StartMenuDLL.dll_void___cdecl_DllLogToFile_wchar_t_const____ptr64__wchar_t_const____ptr64_]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400bc9dd
cmp qword [rbp + 0x28], 0
jne 0x1400bca9f
mov al, 1
jmp 0x1400bccc3
mov dword [rbp + 0x84], 0
lea rdx, [rbp + 0x84]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rbp + 0xa4], eax
mov r8d, dword [rbp + 0x84]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
je 0x1400bcb8a
mov byte [rbp + 0xe4], 0
mov r9d, 0x104
lea r8, [rbp + 0x110]
xor edx, edx
mov rcx, qword [rbp + 0xc8]
call fcn.14009d373
test eax, eax
je 0x1400bcb55
lea rcx, [rbp + 0x110]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, str.explorer.exe
mov rcx, rax
call fcn.14009fff6
test eax, eax
jne 0x1400bcb38
mov byte [rbp + 0xe4], 1
jmp 0x1400bcb53
lea r8, [rbp + 0x110]
lea rdx, str.StartMenu:_found_wrong_process__s
lea rcx, str.SoftwareOpenShellStartMenuSettingsLogStartup_LOCALAPPDATA_OpenShellStartupLog.txt
call qword [sym.imp.StartMenuDLL.dll_void___cdecl_DllLogToFile_wchar_t_const____ptr64__wchar_t_const____ptr64_]
jmp 0x1400bcb69
lea rdx, str.StartMenu:_failed_to_get_process_name
lea rcx, str.SoftwareOpenShellStartMenuSettingsLogStartup_LOCALAPPDATA_OpenShellStartupLog.txt
call qword [sym.imp.StartMenuDLL.dll_void___cdecl_DllLogToFile_wchar_t_const____ptr64__wchar_t_const____ptr64_]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rbp + 0xe4]
test eax, eax
jne 0x1400bcb88
xor al, al
jmp 0x1400bccc3
jmp 0x1400bcba5
mov r8d, dword [rbp + 0x84]
lea rdx, str.StartMenu:_failed_to_open_process__d
lea rcx, str.SoftwareOpenShellStartMenuSettingsLogStartup_LOCALAPPDATA_OpenShellStartupLog.txt
call qword [sym.imp.StartMenuDLL.dll_void___cdecl_DllLogToFile_wchar_t_const____ptr64__wchar_t_const____ptr64_]
mov dword [rbp + 0x334], 0
jmp 0x1400bcbbf
mov eax, dword [rbp + 0x334]
inc eax
mov dword [rbp + 0x334], eax
cmp dword [rbp + 0x334], 0xa
jge 0x1400bcc15
mov ecx, dword [rbp + 0x84]
call qword [sym.imp.StartMenuDLL.dll_struct_HWND______ptr64___cdecl_FindTaskBar_unsigned_long_int_]
test rax, rax
je 0x1400bcbdb
jmp 0x1400bcc15
cmp dword [rbp + 0x510], 2
je 0x1400bcbf4
cmp dword [rbp + 0x510], 3
je 0x1400bcbf4
xor al, al
jmp 0x1400bccc3
lea rdx, str.StartMenu:_cant_find_taskbar__retrying
lea rcx, str.SoftwareOpenShellStartMenuSettingsLogStartup_LOCALAPPDATA_OpenShellStartupLog.txt
call qword [sym.imp.StartMenuDLL.dll_void___cdecl_DllLogToFile_wchar_t_const____ptr64__wchar_t_const____ptr64_]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400bcbb1
cmp dword [rbp + 0x510], 0
jne 0x1400bcc3c
xor edx, edx
mov ecx, 0xffffffff
call qword [sym.imp.StartMenuDLL.dll_struct_HWND______ptr64___cdecl_ToggleStartMenu_int__bool_]
mov rcx, qword [rbp + 0x518]
mov qword [rcx], rax
mov al, 1
jmp 0x1400bccc3
xor edx, edx
mov rax, qword [sym.imp.StartMenuDLL.dll_struct_HWND______ptr64___ptr64_g_TaskBar]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rbp + 0xa4], eax
mov r9d, dword [rbp + 0xa4]
mov r8, qword [rbp + 8]
mov rdx, qword [sym.imp.StartMenuDLL.dll_long_long___int64____cdecl_HookInject_int__unsigned_long_long_unsigned___int64___long_long___int64__]
mov ecx, 3
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14023ec20], rax
cmp qword [0x14023ec20], 0
jne 0x1400bcca9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x354], eax
mov r8d, dword [rbp + 0x354]
lea rdx, str.StartMenu:_hook_failed:_0x_08X
lea rcx, str.SoftwareOpenShellStartMenuSettingsLogStartup_LOCALAPPDATA_OpenShellStartupLog.txt
call qword [sym.imp.StartMenuDLL.dll_void___cdecl_DllLogToFile_wchar_t_const____ptr64__wchar_t_const____ptr64_]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [sym.imp.StartMenuDLL.dll_struct_HWND______ptr64___ptr64_g_TaskBar]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_PostMessageW]
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1401ea050]
call fcn.14009f330
mov rax, rdi
mov rcx, qword [rbp + 0x4e8]
xor rcx, rbp
call fcn.14009d7b0
lea rsp, [rbp + 0x4f8]
pop rdi
pop rbp
ret