Function at 0x100054200
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov rax, qword [rsp + 0x100]
mov r15, qword [rsp + 0x120]
mov r13, qword [rsp + 0x130]
xor ebx, ebx
mov qword [rsp + 0x80], rax
mov r14, r9
mov r12, r8
mov qword [rsp + 0x70], rdx
mov rdi, rcx
mov rsi, rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov rbp, rbx
mov qword [rsp + 0x68], rbx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100054294
test byte [rcx + 0x1c], 1
je 0x100054294
cmp byte [rcx + 0x19], 4
jb 0x100054294
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x205
call fcn.10001c7b8
mov rcx, qword [0x1001653b8]
cmp r13, rbx
jne 0x1000542a6
mov ebx, 0x80004003
mov dil, sil
jmp 0x10005458b
cmp r14, rbx
je 0x100054299
lea rcx, [0x1001665a0]
mov qword [r13], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x50], 1
cmp qword [rdi + 0x10], rbx
jne 0x1000542d1
mov ebx, 0x8078000a
jmp 0x10005457f
cmp r12, rbx
cmove r12, qword [rdi + 0x10]
cmp byte [rdi + 0x18], bl
je 0x100054333
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054324
test byte [rcx + 0x1c], 1
je 0x100054324
cmp byte [rcx + 0x19], 2
jb 0x100054324
mov eax, dword [rdi + 8]
mov r9d, dword [rdi + 0x38]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x206
mov dword [rsp + 0x20], eax
call fcn.10001e8b4
mov rcx, qword [0x1001653b8]
mov ebx, 0x80780017
mov dil, byte [rsp + 0x50]
jmp 0x100054592
lea rcx, [rsp + 0x60]
call fcn.1000584a0
mov ebx, eax
test eax, eax
jns 0x10005438f
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054388
test byte [rcx + 0x1c], 1
je 0x100054388
cmp byte [rcx + 0x19], 2
jb 0x100054388
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x207
mov r9d, eax
call fcn.10001c7dc
mov rsi, qword [rsp + 0x60]
mov rcx, qword [0x1001653b8]
jmp 0x100054329
mov rsi, qword [rsp + 0x60]
jmp 0x100054329
mov rsi, qword [rsp + 0x60]
mov rax, qword [rsi + 0x88]
lea rcx, [rsi + 0x88]
call qword [rax + 8]
mov rdx, r12
mov rcx, rsi
call fcn.10001d55c
mov rdx, r15
mov rcx, rsi
call fcn.10001d10c
mov ebx, eax
test eax, eax
js 0x10005457f
mov rax, qword [rsi + 0x88]
lea r8, [rsp + 0x58]
lea rdx, [0x100002cb0]
lea rcx, [rsi + 0x88]
call qword [rax]
mov ebx, eax
test eax, eax
jns 0x100054436
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054329
test byte [rcx + 0x1c], 1
je 0x100054329
cmp byte [rcx + 0x19], 2
jb 0x100054329
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x208
mov r9d, eax
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
jmp 0x100054329
mov rax, qword [rsp + 0x70]
lea r8, [rsp + 0x70]
mov r9, r14
mov rdx, rdi
mov rcx, rsi
movdqu xmm0, xmmword [rax]
mov eax, dword [rsp + 0x128]
movdqu xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call fcn.100077344
mov ebx, eax
test eax, eax
js 0x10005457f
and qword [rsp + 0x28], rbp
and dword [rsp + 0x20], ebp
lea r8, [0x1000792e8]
mov r9, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
jne 0x100054519
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054506
test byte [rcx + 0x1c], 1
je 0x100054506
cmp byte [rcx + 0x19], 2
jb 0x100054506
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x209
mov r9d, eax
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x100054329
cmp qword [rdi + 0x28], 0
mov byte [rdi + 0x18], 1
jne 0x10005452b
cmp qword [rdi + 0x30], 0
je 0x100054543
lea r8, [0x100005fe8]
lea rcx, [0x100005eb0]
mov edx, 0x2a17
call fcn.100099ad8
mov rcx, qword [rsp + 0x58]
mov qword [rdi + 0x28], rsi
xor esi, esi
mov qword [rdi + 0x30], rcx
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsp + 0x58]
and qword [rsp + 0x58], rsi
mov dword [rdi + 0x38], 6
lea rcx, [0x1001665a0]
mov qword [r13], rax
xor dil, dil
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100054584
mov dil, byte [rsp + 0x50]
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1000545ac
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test rbp, rbp
je 0x1000545c1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x1000545da
lea rcx, [rsi + 0x88]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10005460e
cmp rcx, r12
je 0x100054634
test byte [rcx + 0x1c], 1
je 0x10005460e
cmp byte [rcx + 0x19], 2
jb 0x10005460e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x20a
mov r9d, ebx
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100054634
test byte [rcx + 0x1c], 1
je 0x100054634
cmp byte [rcx + 0x19], 4
jb 0x100054634
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x20b
call fcn.10001c7b8
test dil, dil
je 0x100054646
lea rcx, [0x1001665a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret