Function at 0x140182090
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rsp + 0xe8]
mov ebx, dword [rsp + 0xd0]
mov ebp, dword [rsp + 0xc8]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [0x1403ac028]
xor rcx, rsp
mov qword [rsp + 0x50], rcx
mov r13d, 1
lock xadd dword [0x1403eba10], r13d
mov qword [rsi], r8
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rsi + 0x68], xmm0
movups xmmword [rsi + 0x78], xmm0
xor eax, eax
mov qword [rsi + 0x88], rax
mov dword [rsi + 0x90], ebx
movups xmmword [rsi + 0x98], xmm0
mov dword [rsi + 0xa8], ebp
movups xmmword [rsi + 0xb0], xmm0
movups xmmword [rsi + 0xc0], xmm0
mov byte [rsi + 0xd0], 0
mov dword [rsi + 0x110], eax
movups xmmword [rsi + 0x100], xmm0
movups xmmword [rsi + 0x118], xmm0
mov dword [rsi + 0x127], eax
mov qword [rsp + 0x48], rax
test rdx, rdx
je 0x140182154
lea rcx, [rsp + 0x48]
jmp 0x1401821bc
mov r14, qword [rsp + 0xf0]
mov r15, qword [rsp + 0xd8]
test r15, r15
je 0x140182189
mov ecx, 0x368
call fcn.14020216c
mov r12, rax
mov rcx, rax
mov rdx, r15
mov r8d, ebx
mov r9, r14
call fcn.1401c2b3c
jmp 0x1401821b4
mov r15, qword [rsp + 0xe0]
test r15, r15
je 0x1401821c1
mov ecx, 0x368
call fcn.14020216c
mov r12, rax
mov rcx, rax
mov rdx, r15
mov r8d, ebx
mov r9, r14
call fcn.1401c2b8c
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.140182460
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401821eb
call fcn.1401c2c2a
test al, al
je 0x1401821eb
lea rcx, [rsi + 0x18]
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x48], 0
call fcn.140182460
cmp qword [rsi + 0x18], 0
jne 0x1401822ec
lea rcx, [rsi + 0xd8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
xor ecx, ecx
xor edx, edx
mov r8d, 1
xor r9d, r9d
call rbx
mov qword [rsi + 0x100], rax
xor ecx, ecx
xor edx, edx
mov r8d, 1
xor r9d, r9d
call rbx
mov qword [rsi + 0x108], rax
test rax, rax
je 0x14018227e
lea rax, [rsi + 0x100]
cmp qword [rax], 0
je 0x14018227e
lea rax, [rsp + 0x38]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x1401824a0]
mov edx, 0x10000
xor ecx, ecx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0xc8], rax
lea rbx, [rsi + 0x98]
lea rcx, [0x140296840]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsi + 0x80], rax
test rax, rax
je 0x1401822b5
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x88], rax
lea rcx, str.rpcrt4.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
je 0x1401822e1
lea rdx, str.UuidCreate
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0xa0], rax
mov rcx, rsi
mov rdx, rdi
call fcn.140182514
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdx, [rsp + 0x38]
mov qword [rdx + 8], rax
mov qword [rdx], 0
mov dword [rdx + 8], 0
lea rcx, [rsi + 0x130]
call fcn.140182544
test r13d, r13d
jne 0x14018232b
lea rcx, [0x1403eb9e8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test ebp, ebp
je 0x1401823f9
lea rcx, [0x1403eb9e8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1403eb9d8]
test rcx, rcx
jne 0x14018236e
mov ecx, 0x18
call fcn.14020216c
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1403eb9d8], rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
jae 0x140182393
test rax, rax
je 0x140182432
mov qword [rax], rsi
add rax, 8
mov qword [rcx + 8], rax
jmp 0x14018239d
lea rdx, [rsp + 0x30]
call fcn.1400443f0
test bpl, 1
je 0x1401823ba
lea rdi, [rsi + 0xb0]
lea rcx, [0x1401825c0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov qword [rdi], rax
test bpl, 2
je 0x1401823d3
lea rcx, [0x1401826b0]
call fcn.14021cc60
mov qword [rsi + 0xb8], rax
test bpl, 4
je 0x1401823ec
lea rcx, [0x140182860]
call fcn.140204d4c
mov qword [rsi + 0xc0], rax
lea rcx, [0x1403eb9e8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x140182413
mov rcx, rsi
call fcn.1401c2bdc
mov rcx, rsi
call fcn.1402021a8
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140203460
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.14004460c
int3