Function at 0x10004bd60
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc8
mov rax, qword [rsp + 0x140]
mov r13, qword [rsp + 0x130]
mov rbp, qword [rsp + 0x160]
mov r15, qword [rsp + 0x168]
mov r14, qword [rsp + 0x178]
mov qword [rsp + 0xa0], rdx
xor edx, edx
mov rbx, r9
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x80], r8d
mov rdi, rcx
mov qword [rsp + 0xb0], rbx
mov byte [rsp + 0x60], dl
mov rsi, rdx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rdx
mov r12, rdx
mov qword [rsp + 0x68], rdx
mov byte [rsp + 0x61], dl
mov qword [r11 - 0x80], rdx
mov rcx, qword [0x1001653b8]
lea r8, [0x1001653b8]
cmp rcx, r8
je 0x10004be2c
test byte [rcx + 0x1c], 1
je 0x10004be2c
cmp byte [rcx + 0x19], 4
jb 0x10004be2c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, pe_nt_image_headers64
call fcn.10001c854
mov rcx, qword [0x1001653b8]
mov rax, qword [rsp + 0x90]
xor edx, edx
cmp rbx, rdx
jne 0x10004be3b
mov ebx, 0x80004003
jmp 0x10004c21d
cmp r13, rdx
je 0x10004be31
cmp rax, rdx
je 0x10004be31
cmp r14, rdx
je 0x10004be31
lea rcx, [0x1001665a0]
mov qword [r14], rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x60], 1
cmp qword [rdi + 0x10], rsi
jne 0x10004be6f
mov ebx, 0x8078000a
jmp 0x10004c216
test rbp, rbp
cmove rbp, qword [rdi + 0x10]
cmp byte [rdi + 0x18], sil
je 0x10004becd
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004bec3
test byte [rcx + 0x1c], 1
je 0x10004bec3
cmp byte [rcx + 0x19], 2
jb 0x10004bec3
mov eax, dword [rdi + 8]
mov r9d, dword [rdi + 0x38]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0xf9
mov dword [rsp + 0x20], eax
call fcn.10001d914
mov rcx, qword [0x1001653b8]
mov ebx, 0x80780017
jmp 0x10004c224
lea rcx, [rsp + 0x78]
call fcn.100057aa8
mov ebx, eax
test eax, eax
jns 0x10004bf2f
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004bf25
test byte [rcx + 0x1c], 1
je 0x10004bf25
cmp byte [rcx + 0x19], 2
jb 0x10004bf25
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0xfa
mov r9d, eax
call fcn.10001c878
mov rsi, qword [rsp + 0x78]
mov rcx, qword [0x1001653b8]
jmp 0x10004c224
mov rsi, qword [rsp + 0x78]
jmp 0x10004c224
mov rsi, qword [rsp + 0x78]
mov rcx, rsi
mov rax, qword [rsi]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r12, [rsi + 0x10]
mov rdx, rbp
mov rcx, r12
call fcn.10001d5f8
mov rdx, r15
mov rcx, r12
call fcn.10001d1a8
mov ebx, eax
test eax, eax
js 0x10004c211
mov rax, qword [rsi]
lea r8, [rsp + 0x70]
lea rdx, [0x100002c50]
mov rcx, rsi
call qword [rax]
mov ebx, eax
test eax, eax
jns 0x10004bfc3
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004bfb9
test byte [rcx + 0x1c], 1
je 0x10004bfb9
cmp byte [rcx + 0x19], 2
jb 0x10004bfb9
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0xfb
mov r9d, eax
call fcn.10001c878
mov rcx, qword [0x1001653b8]
mov r12, qword [rsp + 0x68]
jmp 0x10004c224
lea rdx, [rsp + 0x88]
mov rcx, r13
call fcn.10009b954
mov rbp, qword [rsp + 0x88]
mov ebx, eax
test eax, eax
jns 0x10004c029
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c1fa
test byte [rcx + 0x1c], 1
je 0x10004c1fa
cmp byte [rcx + 0x19], 2
jb 0x10004c1fa
mov edx, 0xfc
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov r9d, eax
call fcn.10001c878
jmp 0x10004c1f3
mov rax, qword [rdi]
mov r13d, 5
lea r9, [rsp + 0x61]
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
call qword [rax + 0x68]
mov ebx, eax
test eax, eax
jns 0x10004c07b
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c1fa
test byte [rcx + 0x1c], 1
je 0x10004c1fa
cmp byte [rcx + 0x19], 2
jb 0x10004c1fa
mov edx, 0xfd
jmp 0x10004c011
mov rax, qword [rsp + 0xa0]
mov r9d, dword [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov rdx, rdi
mov rcx, rsi
movdqu xmm0, xmmword [rax]
mov eax, dword [rsp + 0x170]
movdqu xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0x58], eax
mov al, byte [rsp + 0x158]
mov byte [rsp + 0x50], al
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x48], eax
mov al, byte [rsp + 0x148]
mov byte [rsp + 0x40], al
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov al, byte [rsp + 0x138]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.100073bfc
mov ebx, eax
test eax, eax
js 0x10004c1ec
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x100075c3c]
mov r9, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x10004c18a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x10004c17a
test byte [rcx + 0x1c], 1
je 0x10004c17a
cmp byte [rcx + 0x19], 2
jb 0x10004c17a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0xfe
mov r9d, eax
call fcn.10001c878
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x10004c1fa
cmp qword [rdi + 0x28], 0
mov byte [rdi + 0x18], 1
jne 0x10004c19c
cmp qword [rdi + 0x30], 0
je 0x10004c1b4
lea r8, [0x100005f78]
lea rcx, [0x100005e40]
mov edx, 0x1559
call fcn.10009a050
mov rcx, qword [rsp + 0x70]
mov qword [rdi + 0x28], r12
xor esi, esi
mov qword [rdi + 0x30], rcx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x70]
and qword [rsp + 0x70], rsi
mov dword [rdi + 0x38], r13d
lea rcx, [0x1001665a0]
mov byte [rsp + 0x60], sil
mov qword [r14], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r13, [0x1001653b8]
mov rcx, qword [0x1001653b8]
test rbp, rbp
je 0x10004bfb9
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x10004bfb2
mov r12, qword [rsp + 0x68]
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x10004c23e
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test r12, r12
je 0x10004c253
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x10004c268
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10004c29c
cmp rcx, r13
je 0x10004c2c2
test byte [rcx + 0x1c], 1
je 0x10004c29c
cmp byte [rcx + 0x19], 2
jb 0x10004c29c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0xff
mov r9d, ebx
call fcn.10001c878
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x10004c2c2
test byte [rcx + 0x1c], 1
je 0x10004c2c2
cmp byte [rcx + 0x19], 4
jb 0x10004c2c2
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003cb8]
mov edx, 0x100
call fcn.10001c854
cmp byte [rsp + 0x60], 0
je 0x10004c2d6
lea rcx, [0x1001665a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret