Function at 0x140008020
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, rcx
xor esi, esi
cmp byte [0x140028d90], sil
je 0x140008099
mov qword [rax - 0x58], rsi
mov dword [rax - 0x60], 0x80
mov dword [rax - 0x68], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x30], rax
lea rdx, str.DSE_Manager:_Running_in_non_ui_mode._n
lea rcx, [rbp + 0x30]
call fcn.140001110
nop
cmp rbx, 0xffffffffffffffff
je 0x140008099
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140007da0
test ax, ax
jne 0x140008109
cmp byte [0x140028d90], al
je 0x140008101
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x30], rax
lea rdx, str.DSE_Manager:_ERROR:_Failed_to_register_new_window_class._n
lea rcx, [rbp + 0x30]
call fcn.140001110
nop
cmp rbx, 0xffffffffffffffff
je 0x140008101
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x140008928
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 0xfff0bdc0
mov dword [rsp + 0x20], 0xfff0bdc0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140021298]
mov ecx, 0x8000000
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x140028dc0], rax
test rax, rax
jne 0x1400081a9
cmp byte [0x140028d90], al
je 0x140008101
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x30], rax
lea rdx, str.DSE_Manager:_ERROR_:_Failed_to_create_new_window._n
lea rcx, [rbp + 0x30]
call fcn.140001110
nop
jmp 0x1400080f2
xor eax, eax
mov qword [0x140028d98], rax
mov qword [0x140028da0], rax
mov qword [0x140028da8], rax
mov qword [0x140028db0], rax
mov qword [0x140028db8], rax
lea rcx, [0x140028d98]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp byte [0x140028d90], 0
je 0x140008237
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x30], rax
lea rdx, str.DSE_Manager:_Creating_event_to_get_notified_from_KMD._n
lea rcx, [rbp + 0x30]
call fcn.140001110
nop
cmp rbx, 0xffffffffffffffff
je 0x140008237
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, str.DSE_Manager_DOPP_Tracking_Modeset
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x140028dc8], rax
test rax, rax
jne 0x1400082ac
cmp byte [0x140028d90], al
je 0x140008101
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x30], rax
lea rdx, str.DSE_Manager:_ERROR:_Failed_to_create_event_to_get_notified_from_KMD._n
lea rcx, [rbp + 0x30]
call fcn.140001110
nop
jmp 0x1400080f2
cmp byte [0x140028d90], 0
je 0x140008308
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x30], rax
lea rdx, str.DSE_Manager:_Registering_event_to_get_notified_from_KMD._n
lea rcx, [rbp + 0x30]
call fcn.140001110
nop
cmp rbx, 0xffffffffffffffff
je 0x140008308
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, 1
call fcn.140002ac0
test al, al
jne 0x140008368
cmp byte [0x140028d90], al
je 0x140008101
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x30], rax
lea rdx, str.DSE_Manager:_ERROR:_Failed_to_register_event_to_get_notified_from_KMD._n
lea rcx, [rbp + 0x30]
call fcn.140001110
nop
jmp 0x1400080f2
cmp byte [0x140028d90], 0
je 0x1400083c4
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x30], rax
lea rdx, str.DSE_Manager:_Creating_thread._n
lea rcx, [rbp + 0x30]
call fcn.140001110
nop
cmp rbx, 0xffffffffffffffff
je 0x1400083c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x140006200]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14000843d
cmp byte [0x140028d90], al
je 0x140008101
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x30], rax
lea rdx, str.DSE_Manager:_ERROR:_Failed_to_create_thread._n
lea rcx, [rbp + 0x30]
call fcn.140001110
nop
jmp 0x1400080f2
lea rcx, [rbp + 0x30]
call fcn.140006070
nop
call fcn.140007ed0
cmp byte [0x140028d90], 0
je 0x1400084a8
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x38], rax
lea rdx, str.DSE_Manager:_Waiting_for_thread_to_finish._n
lea rcx, [rbp + 0x38]
call fcn.140001110
nop
cmp rbx, 0xffffffffffffffff
je 0x1400084a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 1
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xffffffff
jne 0x140008515
cmp byte [0x140028d90], 0
je 0x1400088a7
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x38], rax
lea rdx, str.DSE_Manager:_ERROR:_WaitForSingleObjectEx_failed._n
lea rcx, [rbp + 0x38]
call fcn.140001110
nop
jmp 0x140008898
test eax, eax
jne 0x140008637
mov dword [rbp + 0x28], esi
lea rdx, [rbp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x140008585
cmp byte [0x140028d90], al
je 0x1400088a7
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x38], rax
lea rdx, str.DSE_Manager:_ERROR:_Unable_to_get_the_thread_termination_code._n
lea rcx, [rbp + 0x38]
call fcn.140001110
nop
jmp 0x140008898
cmp dword [rbp + 0x28], 0xffffffff
jne 0x1400085e1
cmp byte [0x140028d90], 0
je 0x1400088a7
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x38], rax
lea rdx, str.DSE_Manager:_ERROR:_An_operation_in_the_thread_failed._n
lea rcx, [rbp + 0x38]
call fcn.140001110
nop
jmp 0x140008898
cmp byte [0x140028d90], 0
je 0x1400088a7
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x38], rax
lea rdx, str.DSE_Manager:_ERROR:_Unknown_reason_for_thread_termination._n
lea rcx, [rbp + 0x38]
call fcn.140001110
nop
jmp 0x140008898
cmp byte [0x140028d90], 0
je 0x140008693
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x38], rax
lea rdx, str.DSE_Manager:_Un_registering_event_to_get_notified_from_KMD._n
lea rcx, [rbp + 0x38]
call fcn.140001110
nop
cmp rbx, 0xffffffffffffffff
je 0x140008693
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
call fcn.140002ac0
test al, al
jne 0x1400086f3
cmp byte [0x140028d90], al
je 0x1400088a7
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x38], rax
lea rdx, str.DSE_Manager:_ERROR:_Failed_to_unregister_event_to_get_notified_from_KMD._n
lea rcx, [rbp + 0x38]
call fcn.140001110
nop
jmp 0x140008898
lea rcx, [0x140028d98]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor eax, eax
mov qword [0x140028d98], rax
mov qword [0x140028da0], rax
mov qword [0x140028da8], rax
mov qword [0x140028db0], rax
mov qword [0x140028db8], rax
cmp byte [0x140028d90], al
je 0x14000877f
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x38], rax
lea rdx, str.DSE_Manager:_Clean_up_thread_handle._n
lea rcx, [rbp + 0x38]
call fcn.140001110
nop
cmp rbx, 0xffffffffffffffff
je 0x14000877f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400087e0
cmp byte [0x140028d90], al
je 0x1400088a7
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x38], rax
lea rdx, str.DSE_Manager:_ERROR:_Failed_to_clean_up_thread_handle._n
lea rcx, [rbp + 0x38]
call fcn.140001110
nop
jmp 0x140008898
cmp byte [0x140028d90], 0
je 0x14000883c
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x38], rax
lea rdx, str.DSE_Manager:_Clean_up_event_handle._n
lea rcx, [rbp + 0x38]
call fcn.140001110
nop
cmp rbx, 0xffffffffffffffff
je 0x14000883c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140028dc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400088ac
cmp byte [0x140028d90], al
je 0x1400088a7
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x38], rax
lea rdx, str.DSE_Manager:_ERROR:_Failed_to_clean_up_event_handle._n
lea rcx, [rbp + 0x38]
call fcn.140001110
nop
cmp rbx, 0xffffffffffffffff
je 0x1400088a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
jmp 0x1400088b5
mov qword [0x140028dc8], rsi
mov edi, esi
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x140008926
call qword [sym.imp.USER32.dll_UnregisterDeviceNotification]
test eax, eax
jne 0x140008922
cmp byte [0x140028d90], al
je 0x140008922
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, str.C:DSEDSEManager.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rbp + 0x30], rax
lea rdx, str.DSE_Manager:_ERROR:_Failed_to_unregister_for_device_notification._n
lea rcx, [rbp + 0x30]
call fcn.140001110
nop
cmp rbx, 0xffffffffffffffff
je 0x140008922
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x30], rsi
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret