Function at 0x140005770
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400b1010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbp, rdx
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov rdx, rcx
mov rcx, qword [rcx + 0x50]
call fcn.1400052e0
test al, al
je 0x140005aa5
mov ecx, 0x3f08
call fcn.14002bcc8
mov qword [rsp + 0x38], rax
mov rcx, rax
call fcn.1400214c0
mov rdx, rax
test rax, rax
jne 0x1400057d1
xor ecx, ecx
jmp 0x1400057e6
mov rax, qword [rax + 0x3ed0]
movsxd rcx, dword [rax + 8]
add rcx, 0x3ed0
add rcx, rdx
mov qword [rdi + 0x50], rcx
mov qword [rdi], rbp
mov rax, qword [0x1400ca678]
mov qword [rdi + 0x30], rax
cmp rax, rsi
je 0x14000581d
mov rax, qword [rcx]
call qword [rax]
lea rcx, [0x140005d20]
mov qword [rax + 8], rcx
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
call qword [rax]
mov qword [rax], rdi
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140005829
mov rax, qword [rcx]
call qword [rax]
jmp 0x14000582b
xor eax, eax
mov rcx, rax
call fcn.140020e20
test eax, eax
setne bl
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140005892
mov rax, qword [rcx]
call qword [rax]
mov byte [rax + 0x1e38], bl
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140005892
mov rax, qword [rcx]
call qword [rax]
test rax, rax
je 0x140005892
cmp dword [rax + 0x18], esi
jne 0x14000587a
mov ecx, 1
lock xadd dword [0x1400b5cb4], ecx
inc ecx
mov dword [rax + 0x18], ecx
mov esi, dword [rsp + 0x30]
lea rcx, [rax + 0xc20]
lea r8, str.ISECOMAPI
mov edx, 0x100
call fcn.140062a74
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x1400058b4
mov rax, qword [rcx]
call qword [rax]
jmp 0x1400058b6
xor eax, eax
lea r8, str.ISEAPOCOMAPI_CONTEXT::Initialize
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140021710
nop
lea rdx, [rdi + 0x10]
mov rcx, rbp
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqLocalClientPID]
test eax, eax
jne 0x1400059b1
mov r8d, dword [rdi + 0x10]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rdi + 8], rax
test rax, rax
je 0x1400059b1
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400059b1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x140005500]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400059b1
mov ecx, 0x78
call fcn.14002bcc8
mov rbx, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x60], xmm0
mov qword [rbx + 0x70], rax
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140005580
nop
mov esi, 1
mov dword [rsp + 0x30], esi
mov rdx, rax
mov rcx, rbx
call fcn.1400019d0
nop
mov qword [rdi + 0x48], rax
test rax, rax
je 0x1400059b1
xor bl, bl
jmp 0x1400059b3
mov bl, 1
test sil, 1
je 0x1400059d9
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400059d9
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test bl, bl
je 0x140005a09
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140005a5e
mov rax, qword [rcx]
call qword [rax]
cmp byte [rax + 0x1e38], 0
je 0x140005a5e
mov ebx, dword [rdi + 0x38]
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
call qword [rax]
lea rdx, str.Failed_with_error_code__i_n
jmp 0x140005a4d
call qword [sym.imp.SECOMN64.dll_SEAPOCOMAPI_InitializeAPI]
mov qword [rdi + 0x28], rax
test rax, rax
jne 0x140005a62
xor ecx, ecx
call qword [sym.imp.SECOMN64.dll_SEAPOCOMAPI_GetLastError]
mov dword [rdi + 0x38], eax
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140005a5e
mov rax, qword [rcx]
call qword [rax]
cmp byte [rax + 0x1e38], 0
je 0x140005a5e
mov ebx, dword [rdi + 0x38]
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
call qword [rax]
lea rdx, str.SEAPOCOMAPI_InitializeAPI_failed_with_error_code__i_n
mov r9d, ebx
mov r8d, 1
mov rcx, rax
call fcn.140021110
xor bl, bl
jmp 0x140005a96
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x140005a94
mov rax, qword [rcx]
call qword [rax]
cmp byte [rax + 0x1e38], 0
je 0x140005a94
mov rcx, qword [rdi + 0x50]
mov rax, qword [rcx]
call qword [rax]
mov rcx, rax
xor r8d, r8d
lea rdx, str.Done._n
call fcn.140021110
mov bl, 1
lea rcx, [rsp + 0x48]
call fcn.140021c20
movzx eax, bl
jmp 0x140005aa7
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002bca0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret