Function at 0x140007840
Capabilities:
Create thread

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov edi, dword [rsp + 0xa8]
mov rsi, qword [rsp + 0xc8]
mov ebp, 1
mov rbx, rcx
mov r12, rdx
lock xadd dword [0x1400db280], ebp
mov rax, qword [rsp + 0xa0]
add ebp, 1
test rsi, rsi
mov qword [rcx], r8
mov qword [rcx + 8], r9
mov qword [rcx + 0x80], 0
mov qword [rcx + 0x10], rax
mov eax, dword [rsp + 0xb0]
mov qword [rcx + 0x88], 0
mov qword [rcx + 0x90], 0
mov qword [rcx + 0x98], 0
mov qword [rcx + 0xa0], 0
mov dword [rcx + 0xa8], eax
mov qword [rcx + 0xb0], 0
mov qword [rcx + 0xb8], 0
mov dword [rcx + 0xc0], edi
mov qword [rcx + 0xc8], 0
mov qword [rcx + 0xd0], 0
mov qword [rcx + 0xd8], 0
mov byte [rcx + 0xe0], 0
mov qword [rcx + 0x110], 0
mov qword [rcx + 0x118], 0
mov dword [rcx + 0x120], 0
mov qword [rcx + 0x128], 0
mov qword [rcx + 0x130], 0
mov byte [rcx + 0x138], 0
mov byte [rcx + 0x139], 0
mov byte [rcx + 0x13a], 0
mov qword [rsp + 0x30], 0
je 0x140007be0
mov qword [rsp + 0x30], rsi
mov rcx, rsi
call fcn.140008d10
test al, al
jne 0x140007a80
mov rsi, qword [rbx + 0x18]
test rsi, rsi
je 0x140007ac2
mov ecx, 0x20
lea rsi, [rbx + 0x140]
call fcn.1400aa9a0
mov qword [rax + 0x10], 0
mov dword [rax + 0x18], 0
mov rdx, rsi
mov rcx, rax
call fcn.14009fe30
add qword [rbx + 0x150], 1
cmp ebp, 1
je 0x140007c72
test edi, edi
je 0x140007a2a
lea rcx, [0x1400db2a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1400db2d0]
test rcx, rcx
je 0x140007c84
mov rdx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x38], rbx
cmp rax, rdx
je 0x140007cb4
test rdx, rdx
je 0x140007a06
mov qword [rdx], rbx
add rdx, 8
mov qword [rcx + 8], rdx
test dil, 1
jne 0x140007c50
and edi, 4
jne 0x140007a60
lea rcx, [0x1400db2a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140007a4a
mov rcx, rbx
call fcn.1400088f0
mov edx, 0x370
mov rcx, rbx
call fcn.1400aa970
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rcx, [0x140007350]
call qword [0x1400ac180]
mov qword [rbx + 0xd0], rax
jmp 0x140007a1d
mov rsi, qword [rsp + 0x30]
mov r13, qword [rbx + 0x18]
mov qword [rsp + 0x30], 0
cmp rsi, r13
je 0x140007982
test r13, r13
je 0x140007ab5
mov rcx, r13
call fcn.1400088f0
mov edx, 0x370
mov rcx, r13
call fcn.1400aa970
test rsi, rsi
mov qword [rbx + 0x18], rsi
jne 0x14000798b
lea rcx, [rbx + 0xe8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
mov r8d, 1
xor edx, edx
xor ecx, ecx
mov rsi, qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
call rsi
test rax, rax
mov qword [rbx + 0x110], rax
je 0x140007d03
xor r9d, r9d
mov r8d, 1
xor edx, edx
xor ecx, ecx
call rsi
test rax, rax
mov qword [rbx + 0x118], rax
je 0x140007d21
cmp qword [rbx + 0x110], 0
je 0x140007b57
lea rax, [rsp + 0x38]
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1400070c0]
mov edx, 0x10000
xor ecx, ecx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 0xd8], rax
je 0x140007d50
lea rcx, str.dbghelp.dll
mov rsi, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
call rsi
test rax, rax
mov qword [rbx + 0x98], rax
je 0x140007b8a
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xa0], rax
lea rcx, str.rpcrt4.dll
call rsi
test rax, rax
mov qword [rbx + 0xb0], rax
je 0x140007bb6
lea rdx, str.UuidCreate
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xb8], rax
lea rcx, [rbx + 0x20]
mov rdx, r12
call fcn.14009abe0
mov rax, qword [rbx + 0x20]
mov rcx, rbx
mov qword [rbx + 0x80], rax
call fcn.140007500
jmp 0x14000798b
cmp qword [rsp + 0xb8], 0
je 0x140007cc3
mov ecx, 0x370
call fcn.1400aa9a0
mov r9, qword [rsp + 0xd0]
mov r8d, dword [rbx + 0xa8]
mov rcx, rax
mov rdx, qword [rsp + 0xb8]
mov r13, rax
call fcn.1400086e0
mov rsi, qword [rsp + 0x30]
cmp r13, rsi
je 0x14000796e
test rsi, rsi
je 0x140007c43
mov rcx, rsi
call fcn.1400088f0
mov edx, 0x370
mov rcx, rsi
call fcn.1400aa970
mov qword [rsp + 0x30], r13
mov rsi, r13
jmp 0x14000796e
lea rcx, [0x1400071c0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
and edi, 4
mov qword [rbx + 0xc8], rax
je 0x140007a1d
jmp 0x140007a60
lea rcx, [0x1400db2a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1400079c7
mov ecx, 0x18
call fcn.1400aa9a0
mov qword [rax], 0
mov qword [rax + 8], 0
mov rcx, rax
mov qword [rax + 0x10], 0
mov qword [0x1400db2d0], rax
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x38]
call fcn.140095470
jmp 0x140007a0e
cmp qword [rsp + 0xc0], 0
je 0x14000797e
mov ecx, 0x370
call fcn.1400aa9a0
mov r9, qword [rsp + 0xd0]
mov r8d, dword [rbx + 0xa8]
mov rcx, rax
mov rdx, qword [rsp + 0xc0]
mov r13, rax
call fcn.140008840
jmp 0x140007c1b
lea rdx, str.src_client_windows_handler_exception_handler.cc
lea rcx, str.handler_start_semaphore____NULL
mov r8d, 0xd3
call fcn.140015d50
jmp 0x140007af5
lea rdx, str.src_client_windows_handler_exception_handler.cc
lea rcx, str.handler_finish_semaphore____NULL
mov r8d, 0xd6
call fcn.140015d50
cmp qword [rbx + 0x118], 0
je 0x140007b57
jmp 0x140007b14
lea rdx, str.src_client_windows_handler_exception_handler.cc
lea rcx, str.handler_thread____NULL
mov r8d, 0xe2
call fcn.140015d50
jmp 0x140007b57