Function at 0x10004bd10
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc8
mov rax, qword [rsp + 0x140]
mov r13, qword [rsp + 0x130]
mov rbp, qword [rsp + 0x160]
mov r15, qword [rsp + 0x168]
mov r14, qword [rsp + 0x178]
mov qword [rsp + 0xa0], rdx
xor edx, edx
mov rbx, r9
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x80], r8d
mov rdi, rcx
mov qword [rsp + 0xb0], rbx
mov byte [rsp + 0x60], dl
mov rsi, rdx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rdx
mov r12, rdx
mov qword [rsp + 0x68], rdx
mov byte [rsp + 0x61], dl
mov qword [r11 - 0x80], rdx
mov rcx, qword [0x1001653b8]
lea r8, [0x1001653b8]
cmp rcx, r8
je 0x10004bddc
test byte [rcx + 0x1c], 1
je 0x10004bddc
cmp byte [rcx + 0x19], 4
jb 0x10004bddc
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, pe_nt_image_headers64
call fcn.10001c7b8
mov rcx, qword [0x1001653b8]
mov rax, qword [rsp + 0x90]
xor edx, edx
cmp rbx, rdx
jne 0x10004bdeb
mov ebx, 0x80004003
jmp 0x10004c1cd
cmp r13, rdx
je 0x10004bde1
cmp rax, rdx
je 0x10004bde1
cmp r14, rdx
je 0x10004bde1
lea rcx, [0x1001665a0]
mov qword [r14], rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x60], 1
cmp qword [rdi + 0x10], rsi
jne 0x10004be1f
mov ebx, 0x8078000a
jmp 0x10004c1c6
test rbp, rbp
cmove rbp, qword [rdi + 0x10]
cmp byte [rdi + 0x18], sil
je 0x10004be7d
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004be73
test byte [rcx + 0x1c], 1
je 0x10004be73
cmp byte [rcx + 0x19], 2
jb 0x10004be73
mov eax, dword [rdi + 8]
mov r9d, dword [rdi + 0x38]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0xf9
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
mov rcx, qword [0x1001653b8]
mov ebx, 0x80780017
jmp 0x10004c1d4
lea rcx, [rsp + 0x78]
call fcn.1000578dc
mov ebx, eax
test eax, eax
jns 0x10004bedf
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004bed5
test byte [rcx + 0x1c], 1
je 0x10004bed5
cmp byte [rcx + 0x19], 2
jb 0x10004bed5
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0xfa
mov r9d, eax
call fcn.10001c7dc
mov rsi, qword [rsp + 0x78]
mov rcx, qword [0x1001653b8]
jmp 0x10004c1d4
mov rsi, qword [rsp + 0x78]
jmp 0x10004c1d4
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
mov rax, qword [rsi]
call qword [rax + 8]
lea r12, [rsi + 0x10]
mov rdx, rbp
mov rcx, r12
call fcn.10001d55c
mov rdx, r15
mov rcx, r12
call fcn.10001d10c
mov ebx, eax
test eax, eax
js 0x10004c1c1
mov rax, qword [rsi]
lea r8, [rsp + 0x70]
lea rdx, [0x100002c90]
mov rcx, rsi
call qword [rax]
mov ebx, eax
test eax, eax
jns 0x10004bf73
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004bf69
test byte [rcx + 0x1c], 1
je 0x10004bf69
cmp byte [rcx + 0x19], 2
jb 0x10004bf69
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0xfb
mov r9d, eax
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
mov r12, qword [rsp + 0x68]
jmp 0x10004c1d4
lea rdx, [rsp + 0x88]
mov rcx, r13
call fcn.10009b37c
mov rbp, qword [rsp + 0x88]
mov ebx, eax
test eax, eax
jns 0x10004bfd9
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c1aa
test byte [rcx + 0x1c], 1
je 0x10004c1aa
cmp byte [rcx + 0x19], 2
jb 0x10004c1aa
mov edx, 0xfc
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov r9d, eax
call fcn.10001c7dc
jmp 0x10004c1a3
mov rax, qword [rdi]
mov r13d, 5
lea r9, [rsp + 0x61]
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
call qword [rax + 0x68]
mov ebx, eax
test eax, eax
jns 0x10004c02b
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c1aa
test byte [rcx + 0x1c], 1
je 0x10004c1aa
cmp byte [rcx + 0x19], 2
jb 0x10004c1aa
mov edx, 0xfd
jmp 0x10004bfc1
mov rax, qword [rsp + 0xa0]
mov r9d, dword [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov rdx, rdi
mov rcx, rsi
movdqu xmm0, xmmword [rax]
mov eax, dword [rsp + 0x170]
movdqu xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0x58], eax
mov al, byte [rsp + 0x158]
mov byte [rsp + 0x50], al
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x48], eax
mov al, byte [rsp + 0x148]
mov byte [rsp + 0x40], al
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov al, byte [rsp + 0x138]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.1000736fc
mov ebx, eax
test eax, eax
js 0x10004c19c
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x10007573c]
mov r9, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x10004c13a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c12a
test byte [rcx + 0x1c], 1
je 0x10004c12a
cmp byte [rcx + 0x19], 2
jb 0x10004c12a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0xfe
mov r9d, eax
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x10004c1aa
cmp qword [rdi + 0x28], 0
mov byte [rdi + 0x18], 1
jne 0x10004c14c
cmp qword [rdi + 0x30], 0
je 0x10004c164
lea r8, [0x100005fe8]
lea rcx, [0x100005eb0]
mov edx, 0x1559
call fcn.100099ad8
mov rcx, qword [rsp + 0x70]
mov qword [rdi + 0x28], r12
xor esi, esi
mov qword [rdi + 0x30], rcx
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsp + 0x70]
and qword [rsp + 0x70], rsi
mov dword [rdi + 0x38], r13d
lea rcx, [0x1001665a0]
mov byte [rsp + 0x60], sil
mov qword [r14], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r13, [0x1001653b8]
mov rcx, qword [0x1001653b8]
test rbp, rbp
je 0x10004bf69
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x10004bf62
mov r12, qword [rsp + 0x68]
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x10004c1ee
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test r12, r12
je 0x10004c203
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x10004c218
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10004c24c
cmp rcx, r13
je 0x10004c272
test byte [rcx + 0x1c], 1
je 0x10004c24c
cmp byte [rcx + 0x19], 2
jb 0x10004c24c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0xff
mov r9d, ebx
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10004c272
test byte [rcx + 0x1c], 1
je 0x10004c272
cmp byte [rcx + 0x19], 4
jb 0x10004c272
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x100
call fcn.10001c7b8
cmp byte [rsp + 0x60], 0
je 0x10004c286
lea rcx, [0x1001665a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret