Function at 0x140004b50
Capabilities:
Create process on windows
Read file via mapping

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x110
lea rax, [r11 + 0x18]
mov dword [r11 + 0x18], 4
mov qword [rsp + 0x28], rax
lea r8, str.DisableDGTray
lea rax, [r11 + 0x10]
mov rbx, rcx
xor edi, edi
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [r11 + 0x10], edi
lea rdx, [0x1400a65a8]
mov rcx, 0xffffffff80000002
call fcn.140043e50
test eax, eax
je 0x140004bb3
cmp dword [rsp + 0x128], 1
je 0x140004e1b
jmp 0x140004bbf
cmp dword [0x1400da604], edi
jne 0x140004e1b
lea rcx, [rbx + 0x48]
lea rdx, str.GlobalTray_Icon_Memory_Map_Mutex
call fcn.140044550
test eax, eax
jne 0x140004c0b
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140004e1b
lea r9, str.Tray_Icon_Memory_Map_CreateMutex_failed.
mov edx, 0x60004008
mov r8d, 1
call fcn.140040490
mov rbx, qword [rsp + 0x120]
add rsp, 0x110
pop rdi
ret
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xe0]
call fcn.140040ba0
xor r9d, r9d
lea rax, str.GlobalDGTrayIconMemoryMap
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov dword [rsp + 0x20], 0x17ec0
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x140004c67
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140004e1b
lea r9, str.CreateFileMapping_failed.
jmp 0x140004bea
xor r9d, r9d
mov qword [rsp + 0x20], 0x17ec0
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x140004ca8
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140004e1b
lea r9, str.MapViewOfFile_failed.
jmp 0x140004bea
xor edx, edx
mov r8d, 0x17ec0
mov rcx, rax
call fcn.1400514f0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1400514f0
lea rax, [0x1400a6c48]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x80], rax
lea rcx, str.DGTrayIcon.exe
lea rax, [0x1400da408]
mov word [rsp + 0xb0], di
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140004dfe
mov rcx, qword [0x1400da4d8]
test rcx, rcx
je 0x140004d6a
mov rdx, qword [0x1400da408]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x140004d6a
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140004d6a
lea r8, str.Failed_to_assign_the_DGTrayIcon_process_to_the_process_terminator_job_object.
mov edx, 0x100
call fcn.140040750
mov r8d, 1
mov qword [rsp + 0x138], rdi
lea rdx, str.GlobalDGTrayIconInit
lea rcx, [rsp + 0x138]
call fcn.140043480
test eax, eax
jne 0x140004dad
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140004e1b
lea r9, str.CreateTheEvent_DGTrayIconInitEvent_failed.
mov edx, 0x60004005
jmp 0x140004bef
mov edx, 0x3e8
lea rcx, [rsp + 0x138]
call fcn.140043540
test eax, eax
je 0x140004de0
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140004de0
lea r8, str.The_awaited_DGTrayIconInitEvent_hasnt_arrived.
mov edx, 0x10000
call fcn.140040750
lea rcx, [rsp + 0x138]
call fcn.140043470
mov rbx, qword [rsp + 0x120]
add rsp, 0x110
pop rdi
ret
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140004e1b
lea r8, str.DGTrayIcon_process_failed_to_spawn.
mov edx, 0x100
call fcn.140040750
mov rbx, qword [rsp + 0x120]
add rsp, 0x110
pop rdi
ret