Function at 0x100054c8c
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 0x100054cf7
test byte [rcx + 0x1c], 1
je 0x100054cf7
cmp byte [rcx + 0x19], 4
jb 0x100054cf7
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x214
call fcn.10001c854
lea rcx, [rsp + 0x88]
call fcn.10005899c
mov ebx, eax
test eax, eax
jns 0x100054d54
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100054d47
test byte [rcx + 0x1c], 1
je 0x100054d47
cmp byte [rcx + 0x19], 2
jb 0x100054d47
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x215
mov r9d, eax
call fcn.10001c878
mov rdi, qword [rsp + 0x88]
jmp 0x100054fad
mov rdi, qword [rsp + 0x88]
jmp 0x100054fb4
mov rdi, qword [rsp + 0x88]
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x120]
lea r12, [rdi + 8]
mov rcx, r12
call fcn.10001d5f8
mov rdx, qword [rsp + 0x128]
mov rcx, r12
call fcn.10001d1a8
mov ebx, eax
test eax, eax
js 0x100054fa6
mov rax, qword [rdi]
lea r8, [rsp + 0x80]
lea rdx, [0x100002c40]
mov rcx, rdi
call qword [rax]
mov ebx, eax
test eax, eax
jns 0x100054df8
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054fb4
test byte [rcx + 0x1c], 1
je 0x100054fb4
cmp byte [rcx + 0x19], 2
jb 0x100054fb4
mov edx, 0x216
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov r9d, eax
call fcn.10001c878
jmp 0x100054fad
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.100080d54
xor r13d, r13d
cmp eax, r13d
mov ebx, eax
jge 0x100054ec6
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054fb4
test byte [rcx + 0x1c], 1
je 0x100054fb4
cmp byte [rcx + 0x19], 2
jb 0x100054fb4
mov edx, 0x217
jmp 0x100054de0
lea r8, [0x100061ce4]
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 0x100054f43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054f32
test byte [rcx + 0x1c], 1
je 0x100054f32
cmp byte [rcx + 0x19], 2
jb 0x100054f32
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x218
mov r9d, eax
call fcn.10001c878
mov rcx, qword [0x1001653b8]
movzx ebx, si
or ebx, 0x80070000
cmp esi, r13d
cmovle ebx, esi
jmp 0x100054fb4
mov byte [rsi + 0x18], 1
cmp qword [rsi + 0x28], r13
jne 0x100054f53
cmp qword [rsi + 0x30], r13
je 0x100054f6b
lea r8, [0x100005f78]
lea rcx, [0x100005e40]
mov edx, 0x2bc4
call fcn.10009a050
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 + reloc.OLEAUT32.dll_VariantClear]
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 0x100054fd1
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test rbp, rbp
je 0x100054fe6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
test rdi, rdi
je 0x100054ffb
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100055021
test byte [rcx + 0x1c], 1
je 0x100055021
cmp byte [rcx + 0x19], 4
jb 0x100055021
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x219
call fcn.10001c854
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