Function at 0x100054c3c
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
and qword [rax - 0x30], 0
and qword [rax - 0x38], 0
mov r13, r9
xor ebp, ebp
mov r14d, r8d
mov r15, rdx
mov rsi, rcx
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054ca7
test byte [rcx + 0x1c], 1
je 0x100054ca7
cmp byte [rcx + 0x19], 4
jb 0x100054ca7
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x214
call fcn.10001c7b8
lea rcx, [rsp + 0x88]
call fcn.1000586a0
mov ebx, eax
test eax, eax
jns 0x100054d04
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100054cf7
test byte [rcx + 0x1c], 1
je 0x100054cf7
cmp byte [rcx + 0x19], 2
jb 0x100054cf7
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x215
mov r9d, eax
call fcn.10001c7dc
mov rdi, qword [rsp + 0x88]
jmp 0x100054f5d
mov rdi, qword [rsp + 0x88]
jmp 0x100054f64
mov rdi, qword [rsp + 0x88]
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + 8]
mov rdx, qword [rsp + 0x120]
lea r12, [rdi + 8]
mov rcx, r12
call fcn.10001d55c
mov rdx, qword [rsp + 0x128]
mov rcx, r12
call fcn.10001d10c
mov ebx, eax
test eax, eax
js 0x100054f56
mov rax, qword [rdi]
lea r8, [rsp + 0x80]
lea rdx, [0x100002c80]
mov rcx, rdi
call qword [rax]
mov ebx, eax
test eax, eax
jns 0x100054da8
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054f64
test byte [rcx + 0x1c], 1
je 0x100054f64
cmp byte [rcx + 0x19], 2
jb 0x100054f64
mov edx, 0x216
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov r9d, eax
call fcn.10001c7dc
jmp 0x100054f5d
mov eax, dword [rsp + 0x140]
mov r8, qword [rsp + 0x110]
mov r9, r15
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x138]
mov rdx, rsi
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x130]
mov rcx, rdi
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r14d
call fcn.1000807e0
xor r13d, r13d
cmp eax, r13d
mov ebx, eax
jge 0x100054e76
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054f64
test byte [rcx + 0x1c], 1
je 0x100054f64
cmp byte [rcx + 0x19], 2
jb 0x100054f64
mov edx, 0x217
jmp 0x100054d90
lea r8, [0x100061a24]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
cmp rax, r13
jne 0x100054ef3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054ee2
test byte [rcx + 0x1c], 1
je 0x100054ee2
cmp byte [rcx + 0x19], 2
jb 0x100054ee2
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x218
mov r9d, eax
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
movzx ebx, si
or ebx, 0x80070000
cmp esi, r13d
cmovle ebx, esi
jmp 0x100054f64
mov byte [rsi + 0x18], 1
cmp qword [rsi + 0x28], r13
jne 0x100054f03
cmp qword [rsi + 0x30], r13
je 0x100054f1b
lea r8, [0x100005fe8]
lea rcx, [0x100005eb0]
mov edx, 0x2bc4
call fcn.100099ad8
mov rcx, qword [rsp + 0x80]
mov qword [rsi + 0x28], r12
mov rdi, r13
mov qword [rsi + 0x30], rcx
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x148]
mov dword [rsi + 0x38], 2
mov qword [rsp + 0x80], r13
mov qword [rcx], rax
lea r12, [0x1001653b8]
mov rcx, qword [0x1001653b8]
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x100054f81
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test rbp, rbp
je 0x100054f96
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
test rdi, rdi
je 0x100054fab
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100054fd1
test byte [rcx + 0x1c], 1
je 0x100054fd1
cmp byte [rcx + 0x19], 4
jb 0x100054fd1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cf8]
mov edx, 0x219
call fcn.10001c7b8
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret