Function at 0x140012350
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0x470], rax
cmp qword [rcx + 0x120], 0
mov rdi, rcx
jne 0x1400123c9
lea rbx, [rcx + 0x20]
mov r9d, 1
mov rcx, qword [rcx + 8]
lea rsi, str.Window_of_class__ls_has_not_been_created._Exiting
mov qword [rsp + 0x28], rbx
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcHostWin32.cpp
mov r8d, 0xff
mov qword [rsp + 0x20], rsi
call fcn.14001c680
mov r8, rbx
mov rdx, rsi
mov ecx, 5
call fcn.14000bf70
xor al, al
jmp 0x1400126ae
call fcn.14001cd10
test al, 1
je 0x140012527
xor edx, edx
mov qword [rsp + 0x498], rbp
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.140024e90
xor ebx, ebx
lea rax, [rsp + 0x50]
mov rsi, rdi
sub rsi, rax
lea ebp, [rbx + 0x5f]
lea rax, [rsi + rbx*2]
movzx ecx, word [rsp + rax + 0x190]
test cx, cx
je 0x140012432
cmp cx, 0x5c
jne 0x14001241c
movzx eax, bp
jmp 0x140012421
call fcn.14005d5c0
mov word [rsp + rbx*2 + 0x50], ax
inc rbx
cmp rbx, 0x103
jb 0x140012400
mov dword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, eax
lea rdx, [rsp + 0x40]
call fcn.14001bbf0
mov r9d, dword [rdi + 0x128]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8, str.GlobalNvContainer_u_session_u__s
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x260]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140012b80
lea r8, [rsp + 0x260]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbp, qword [rsp + 0x498]
mov qword [rdi + 0x738], rax
test rax, rax
je 0x1400124dd
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x260]
mov qword [rsp + 0x28], rax
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcHostWin32.cpp
lea rax, str.Use_external_event__ls_for_quitting
mov r9d, 3
mov r8d, 0x126
mov qword [rsp + 0x20], rax
call fcn.14001c680
jmp 0x140012527
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rdi + 8]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcHostWin32.cpp
mov dword [rsp + 0x38], eax
mov r9d, 2
mov rax, qword [rdi + 0x740]
mov r8d, 0x131
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x260]
mov qword [rsp + 0x28], rax
lea rax, str.Child_container_is_unable_to_use_external_event__ls_for_quitting__parent___p_._Error__u
mov qword [rsp + 0x20], rax
call fcn.14001c680
cmp qword [rdi + 0x738], 0
jne 0x14001259c
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x738], rax
test rax, rax
jne 0x14001259c
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rdi + 8]
lea rbx, str.Failed_to_create_quit_event._Error__u
mov dword [rsp + 0x28], eax
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcHostWin32.cpp
mov r9d, 1
mov qword [rsp + 0x20], rbx
mov r8d, 0x13d
call fcn.14001c680
call sub.KERNEL32.dll_GetLastError
mov r8d, eax
mov rdx, rbx
mov ecx, 6
call fcn.14000bf70
xor al, al
jmp 0x1400126ae
cmp qword [rdi + 0x740], 0
je 0x140012606
mov qword [rsp + 0x28], 0
lea r8, [0x1400129a0]
mov r9, rdi
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x748], rax
test rax, rax
jne 0x140012606
mov rcx, qword [rdi + 8]
lea rax, str.Failed_to_create_parent_process_tracking_thread.
mov r9d, 1
mov qword [rsp + 0x20], rax
mov r8d, 0x147
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcHostWin32.cpp
call fcn.14001c680
xor al, al
jmp 0x1400126ae
mov rcx, rdi
call fcn.14000a550
mov rcx, qword [rdi + 8]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcHostWin32.cpp
movzx esi, al
mov r9d, 3
lea rax, str.Base_host_main_completed__setting_quit_event
mov r8d, 0x14e
mov qword [rsp + 0x20], rax
call fcn.14001c680
mov rcx, qword [rdi + 0x738]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rdi + 0x120]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
cmp qword [rdi + 0x130], 0
je 0x140012677
call fcn.14001b770
mov rcx, qword [rdi + 0x130]
mov qword [rcx + 0x18], rax
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x20]
call qword [case.0x14001e91b.0]
cmp qword [rdi + 0x130], 0
je 0x1400126aa
mov rbx, qword [rdi + 0x130]
call fcn.14001b770
sub eax, dword [rbx + 0x18]
cmp dword [rbx + 0x14], eax
cmovae eax, dword [rbx + 0x14]
mov dword [rbx + 0x14], eax
movzx eax, sil
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140023310
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret