Function at 0x100054250
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 0x1000542e4
test byte [rcx + 0x1c], 1
je 0x1000542e4
cmp byte [rcx + 0x19], 4
jb 0x1000542e4
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x205
call fcn.10001c854
mov rcx, qword [0x1001653b8]
cmp r13, rbx
jne 0x1000542f6
mov ebx, 0x80004003
mov dil, sil
jmp 0x1000545db
cmp r14, rbx
je 0x1000542e9
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 0x100054321
mov ebx, 0x8078000a
jmp 0x1000545cf
cmp r12, rbx
cmove r12, qword [rdi + 0x10]
cmp byte [rdi + 0x18], bl
je 0x100054383
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054374
test byte [rcx + 0x1c], 1
je 0x100054374
cmp byte [rcx + 0x19], 2
jb 0x100054374
mov eax, dword [rdi + 8]
mov r9d, dword [rdi + 0x38]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x206
mov dword [rsp + 0x20], eax
call fcn.10001d914
mov rcx, qword [0x1001653b8]
mov ebx, 0x80780017
mov dil, byte [rsp + 0x50]
jmp 0x1000545e2
lea rcx, [rsp + 0x60]
call fcn.100058750
mov ebx, eax
test eax, eax
jns 0x1000543df
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x1000543d8
test byte [rcx + 0x1c], 1
je 0x1000543d8
cmp byte [rcx + 0x19], 2
jb 0x1000543d8
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x207
mov r9d, eax
call fcn.10001c878
mov rsi, qword [rsp + 0x60]
mov rcx, qword [0x1001653b8]
jmp 0x100054379
mov rsi, qword [rsp + 0x60]
jmp 0x100054379
mov rsi, qword [rsp + 0x60]
mov rax, qword [rsi + 0x88]
lea rcx, [rsi + 0x88]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r12
mov rcx, rsi
call fcn.10001d5f8
mov rdx, r15
mov rcx, rsi
call fcn.10001d1a8
mov ebx, eax
test eax, eax
js 0x1000545cf
mov rax, qword [rsi + 0x88]
lea r8, [rsp + 0x58]
lea rdx, [0x100002c70]
lea rcx, [rsi + 0x88]
call qword [rax]
mov ebx, eax
test eax, eax
jns 0x100054486
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054379
test byte [rcx + 0x1c], 1
je 0x100054379
cmp byte [rcx + 0x19], 2
jb 0x100054379
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x208
mov r9d, eax
call fcn.10001c878
mov rcx, qword [0x1001653b8]
jmp 0x100054379
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.100077854
mov ebx, eax
test eax, eax
js 0x1000545cf
and qword [rsp + 0x28], rbp
and dword [rsp + 0x20], ebp
lea r8, [0x100079800]
mov r9, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
jne 0x100054569
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x100054556
test byte [rcx + 0x1c], 1
je 0x100054556
cmp byte [rcx + 0x19], 2
jb 0x100054556
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x209
mov r9d, eax
call fcn.10001c878
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x100054379
cmp qword [rdi + 0x28], 0
mov byte [rdi + 0x18], 1
jne 0x10005457b
cmp qword [rdi + 0x30], 0
je 0x100054593
lea r8, [0x100005f78]
lea rcx, [0x100005e40]
mov edx, 0x2a17
call fcn.10009a050
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 + reloc.OLEAUT32.dll_VariantClear]
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 0x1000545d4
mov dil, byte [rsp + 0x50]
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1000545fc
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test rbp, rbp
je 0x100054611
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x10005462a
lea rcx, [rsi + 0x88]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10005465e
cmp rcx, r12
je 0x100054684
test byte [rcx + 0x1c], 1
je 0x10005465e
cmp byte [rcx + 0x19], 2
jb 0x10005465e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x20a
mov r9d, ebx
call fcn.10001c878
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x100054684
test byte [rcx + 0x1c], 1
je 0x100054684
cmp byte [rcx + 0x19], 4
jb 0x100054684
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x20b
call fcn.10001c854
test dil, dil
je 0x100054696
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