Function at 0x10004c2f4
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 0x10004c3a2
test byte [rcx + 0x1c], 1
je 0x10004c3a2
cmp byte [rcx + 0x19], 4
jb 0x10004c3a2
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x101
call fcn.10001c854
mov rcx, qword [0x1001653b8]
cmp r14, rbx
jne 0x10004c3b4
mov ebx, 0x80004003
mov rbp, rsi
jmp 0x10004c6a1
cmp r15, rbx
je 0x10004c3a7
cmp r13, rbx
je 0x10004c3a7
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 0x10004c3ea
mov ebx, 0x8078000a
mov rbp, rsi
jmp 0x10004c69a
cmp rbp, rbx
cmove rbp, qword [rdi + 0x10]
cmp byte [rdi + 0x18], bl
je 0x10004c44a
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c43d
test byte [rcx + 0x1c], 1
je 0x10004c43d
cmp byte [rcx + 0x19], 2
jb 0x10004c43d
mov eax, dword [rdi + 8]
mov r9d, dword [rdi + 0x38]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x102
mov dword [rsp + 0x20], eax
call fcn.10001d914
mov rcx, qword [0x1001653b8]
mov ebx, 0x80780017
mov rbp, rsi
jmp 0x10004c6a8
lea rcx, [rsp + 0x68]
call fcn.100057ce4
mov ebx, eax
test eax, eax
jns 0x10004c4a7
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c498
test byte [rcx + 0x1c], 1
je 0x10004c498
cmp byte [rcx + 0x19], 2
jb 0x10004c498
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x103
mov r9d, eax
call fcn.10001c878
mov rcx, qword [0x1001653b8]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
jmp 0x10004c6a8
mov rsi, qword [rsp + 0x68]
mov rcx, rsi
mov rax, qword [rsi]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r12, [rsi + 8]
mov rdx, rbp
mov rcx, r12
call fcn.10001d5f8
mov rdx, qword [rsp + 0x78]
mov rcx, r12
call fcn.10001d1a8
mov ebx, eax
test eax, eax
js 0x10004c690
mov rax, qword [rsi]
lea r8, [rsp + 0x60]
lea rdx, [0x100002c60]
mov rcx, rsi
call qword [rax]
mov ebx, eax
test eax, eax
jns 0x10004c542
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c533
test byte [rcx + 0x1c], 1
je 0x10004c533
cmp byte [rcx + 0x19], 2
jb 0x10004c533
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x104
mov r9d, eax
call fcn.10001c878
mov rcx, qword [0x1001653b8]
mov rbp, qword [rsp + 0x58]
mov r12b, byte [rsp + 0x50]
jmp 0x10004c6a8
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.10006e878
xor r14d, r14d
cmp eax, r14d
mov ebx, eax
jl 0x10004c690
lea r8, [0x100071368]
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 0x10004c62b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c617
test byte [rcx + 0x1c], 1
je 0x10004c617
cmp byte [rcx + 0x19], 2
jb 0x10004c617
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x105
mov r9d, eax
call fcn.10001c878
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
cmp edi, r14d
cmovle ebx, edi
jmp 0x10004c538
mov byte [rdi + 0x18], 1
cmp qword [rdi + 0x28], r14
jne 0x10004c63b
cmp qword [rdi + 0x30], r14
je 0x10004c653
lea r8, [0x100005f78]
lea rcx, [0x100005e40]
mov edx, 0x1627
call fcn.10009a050
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 + reloc.OLEAUT32.dll_VariantClear]
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 0x10004c69a
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 0x10004c6c2
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test rbp, rbp
je 0x10004c6d7
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x10004c6ec
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10004c720
cmp rcx, r13
je 0x10004c746
test byte [rcx + 0x1c], 1
je 0x10004c720
cmp byte [rcx + 0x19], 2
jb 0x10004c720
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x106
mov r9d, ebx
call fcn.10001c878
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10004c746
test byte [rcx + 0x1c], 1
je 0x10004c746
cmp byte [rcx + 0x19], 4
jb 0x10004c746
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x107
call fcn.10001c854
test r12b, r12b
je 0x10004c758
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