Function at 0x10004c2a4
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rax, qword [rsp + 0x118]
mov r15, qword [rsp + 0x110]
mov rbp, qword [rsp + 0x120]
mov r13, qword [rsp + 0x140]
xor ebx, ebx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x128]
mov dword [rsp + 0x70], r9d
mov r14, r8
mov qword [rsp + 0x80], rdx
mov rdi, rcx
mov r12b, bl
mov qword [rsp + 0x78], rax
mov rsi, rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10004c352
test byte [rcx + 0x1c], 1
je 0x10004c352
cmp byte [rcx + 0x19], 4
jb 0x10004c352
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x101
call fcn.10001c7b8
mov rcx, qword [0x1001653b8]
cmp r14, rbx
jne 0x10004c364
mov ebx, 0x80004003
mov rbp, rsi
jmp 0x10004c651
cmp r15, rbx
je 0x10004c357
cmp r13, rbx
je 0x10004c357
lea rcx, [0x1001665a0]
mov qword [r13], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12b, 1
mov byte [rsp + 0x50], r12b
cmp qword [rdi + 0x10], rbx
jne 0x10004c39a
mov ebx, 0x8078000a
mov rbp, rsi
jmp 0x10004c64a
cmp rbp, rbx
cmove rbp, qword [rdi + 0x10]
cmp byte [rdi + 0x18], bl
je 0x10004c3fa
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c3ed
test byte [rcx + 0x1c], 1
je 0x10004c3ed
cmp byte [rcx + 0x19], 2
jb 0x10004c3ed
mov eax, dword [rdi + 8]
mov r9d, dword [rdi + 0x38]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x102
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
mov rcx, qword [0x1001653b8]
mov ebx, 0x80780017
mov rbp, rsi
jmp 0x10004c658
lea rcx, [rsp + 0x68]
call fcn.100057acc
mov ebx, eax
test eax, eax
jns 0x10004c457
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c448
test byte [rcx + 0x1c], 1
je 0x10004c448
cmp byte [rcx + 0x19], 2
jb 0x10004c448
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x103
mov r9d, eax
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
jmp 0x10004c658
mov rsi, qword [rsp + 0x68]
mov rcx, rsi
mov rax, qword [rsi]
call qword [rax + 8]
lea r12, [rsi + 8]
mov rdx, rbp
mov rcx, r12
call fcn.10001d55c
mov rdx, qword [rsp + 0x78]
mov rcx, r12
call fcn.10001d10c
mov ebx, eax
test eax, eax
js 0x10004c640
mov rax, qword [rsi]
lea r8, [rsp + 0x60]
lea rdx, [0x100002ca0]
mov rcx, rsi
call qword [rax]
mov ebx, eax
test eax, eax
jns 0x10004c4f2
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c4e3
test byte [rcx + 0x1c], 1
je 0x10004c4e3
cmp byte [rcx + 0x19], 2
jb 0x10004c4e3
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x104
mov r9d, eax
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
mov rbp, qword [rsp + 0x58]
mov r12b, byte [rsp + 0x50]
jmp 0x10004c658
mov rax, qword [rsp + 0x80]
lea r8, [rsp + 0x80]
mov r9, r14
mov rdx, rdi
mov rcx, rsi
movdqu xmm0, xmmword [rax]
mov eax, dword [rsp + 0x138]
movdqu xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x40], eax
mov al, byte [rsp + 0x130]
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x70]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], eax
call fcn.10006e3f4
xor r14d, r14d
cmp eax, r14d
mov ebx, eax
jl 0x10004c640
lea r8, [0x100070ed8]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
cmp rax, r14
jne 0x10004c5db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c5c7
test byte [rcx + 0x1c], 1
je 0x10004c5c7
cmp byte [rcx + 0x19], 2
jb 0x10004c5c7
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x105
mov r9d, eax
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
cmp edi, r14d
cmovle ebx, edi
jmp 0x10004c4e8
mov byte [rdi + 0x18], 1
cmp qword [rdi + 0x28], r14
jne 0x10004c5eb
cmp qword [rdi + 0x30], r14
je 0x10004c603
lea r8, [0x100005fe8]
lea rcx, [0x100005eb0]
mov edx, 0x1627
call fcn.100099ad8
mov rcx, qword [rsp + 0x60]
mov qword [rdi + 0x28], r12
mov rsi, r14
mov qword [rdi + 0x30], rcx
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsp + 0x60]
mov dword [rdi + 0x38], 4
lea rcx, [0x1001665a0]
mov qword [r13], rax
mov qword [rsp + 0x60], r14
mov r12b, r14b
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10004c64a
mov rbp, qword [rsp + 0x58]
mov r12b, byte [rsp + 0x50]
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x10004c672
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test rbp, rbp
je 0x10004c687
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x10004c69c
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10004c6d0
cmp rcx, r13
je 0x10004c6f6
test byte [rcx + 0x1c], 1
je 0x10004c6d0
cmp byte [rcx + 0x19], 2
jb 0x10004c6d0
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x106
mov r9d, ebx
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10004c6f6
test byte [rcx + 0x1c], 1
je 0x10004c6f6
cmp byte [rcx + 0x19], 4
jb 0x10004c6f6
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x107
call fcn.10001c7b8
test r12b, r12b
je 0x10004c708
lea rcx, [0x1001665a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret