Function at 0x140001d70
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rsi, rcx
mov dil, 1
mov dword [rbp + 0x6f], edi
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
js 0x14000dc49
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140001dde
mov ecx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
test rax, rax
je 0x14000d840
mov qword [rsi + 0x20], rax
test rax, rax
je 0x14000dc49
xor r15d, r15d
mov r12d, r15d
mov dword [rbp + 0x77], r15d
mov rax, qword [rsi]
mov qword [rcx], rax
mov dword [rsi + 0x5c], 1
mov r9d, 0x15f90
xor r8d, r8d
mov rdx, qword [rsi + 0x20]
mov ecx, dword [rsi + 0x5c]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r14d, eax
test eax, eax
jne 0x14000d86b
lea rcx, [0x140041868]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x140001e58
mov edx, dword [rsi + 0x60]
test edx, edx
je 0x140001e58
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140001e49
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsi + 0x28]
mov edx, dword [rsi + 0x60]
mov qword [rsi + 0x20], rax
mov dword [rsi + 0x5c], edx
mov qword [rsi + 0x28], r15
mov dword [rsi + 0x60], r15d
lea rcx, [0x140041868]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp + 0x7f], r15
lea rcx, [0x140041890]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x40]
test rcx, rcx
jne 0x14000da64
lea rcx, [0x140041890]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r12d, r12d
js 0x140001ec3
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
jne 0x14000da80
test rcx, rcx
je 0x140001eb5
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140008ad6.0]
nop
test dil, dil
jne 0x140001df5
jmp 0x14000dc49
mov rcx, qword [rbp + 0x7f]
jmp 0x140001ea2
mov qword [rbp - 0x31], rax
lea rax, str.bad_allocation
mov qword [rbp - 0x39], rax
lea rax, method.std::bad_cast.virtual_0
mov qword [rbp - 0x41], rax
lea rdx, [0x140031d88]
lea rcx, [rbp - 0x41]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
test r14d, r14d
je 0x14000d876
cmp r14d, dword [rsi + 0x5c]
jb 0x14000d896
cmp r14d, 0x80
jbe 0x14000da01
mov eax, dword [rsi + 0x5c]
sub eax, 0xffffff80
cmp r14d, eax
jae 0x14000da01
add r14d, 0xffffff80
test r14d, r14d
je 0x140001e65
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x49], r15
xor r8d, r8d
xor edx, edx
call fcn.140006640
mov r13, rax
mov qword [rbp - 0x51], rax
lea rdx, [0x140041868]
lea rcx, [rbp - 0x29]
call fcn.1400153c4
nop
lea r12, [rsi + 0x30]
mov rdx, qword [rsi + 0x20]
mov ecx, r14d
lea rdx, [rdx + rcx*8]
mov rcx, qword [r12]
mov rbx, rcx
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x14000d90f
mov rdx, qword [rdx]
cmp qword [rax + 0x20], rdx
jae 0x14000d8f8
mov rax, qword [rax + 0x10]
jmp 0x14000d8fe
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14000d8ec
cmp rbx, rcx
je 0x14000d90f
cmp rdx, qword [rbx + 0x20]
jae 0x14000d912
mov rbx, rcx
cmp rbx, rcx
je 0x14000d9c3
mov r15, qword [rbx + 0x28]
test r15, r15
je 0x14000d989
mov rdi, qword [r15 + 8]
mov rdi, qword [rdi]
cmp rdi, qword [r15 + 8]
je 0x14000d97a
lea r9, [rdi + 0x10]
cmp qword [r9], 0
je 0x14000d928
mov r12, qword [r13 + 8]
mov r8, r12
mov rdx, r13
call fcn.140005f34
movabs rcx, 0xaaaaaaaaaaaaaa9
mov rdx, qword [rbp - 0x49]
sub rcx, rdx
cmp rcx, 1
jb 0x14000dc3b
inc rdx
mov qword [rbp - 0x49], rdx
mov qword [r13 + 8], rax
mov qword [r12], rax
mov r13, qword [rbp - 0x51]
jmp 0x14000d928
mov rcx, r15
call fcn.140017660
lea r12, [rsi + 0x30]
mov edi, dword [rbp + 0x6f]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rbx
lea rdx, [rbp + 0x1f]
mov rcx, r12
call fcn.140012eb0
mov edx, r14d
mov rcx, rsi
call fcn.140017840
movzx edi, dil
cmp qword [rsi + 0x38], 0
mov r15d, 0
cmove edi, r15d
mov dword [rbp + 0x6f], edi
cmp byte [rbp - 0x21], 0
je 0x14000d9d7
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbp - 0x21], 0
lea rcx, [rbp - 0x51]
call fcn.1400178b4
nop
lea rcx, [rbp - 0x51]
call fcn.140017adc
mov edx, SafeArrayPutElement
mov rcx, qword [rbp - 0x51]
call fcn.140012038
mov r12d, dword [rbp + 0x77]
jmp 0x140001e65
cmp r14d, 0xffffffff
jne 0x14000da12
xor dil, dil
mov dword [rbp + 0x6f], edi
jmp 0x140001e65
cmp r14d, 0x102
jne 0x140001e65
lea rdx, [0x140041868]
lea rcx, [rbp - 0x19]
call fcn.1400153c4
mov ebx, r15d
movzx eax, dil
cmp qword [rsi + 0x38], 0
cmovne ebx, eax
movzx edi, bl
mov dword [rbp + 0x6f], edi
cmp byte [rbp - 0x11], 0
je 0x140001e65
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbp - 0x11], 0
mov dword [rbp + 0x6f], edi
jmp 0x140001e65
lea r8, [rbp + 0x7f]
lea rdx, [0x1400291f8]
call qword [sym.imp.ole32.dll_CoUnmarshalInterface]
mov r12d, eax
mov dword [rbp + 0x77], eax
jmp 0x140001e83
lea rdx, [0x140041868]
lea rcx, [rbp - 9]
call fcn.1400153c4
nop
mov rbx, qword [rsi + 0x30]
mov rbx, qword [rbx]
cmp rbx, qword [rsi + 0x30]
je 0x14000dba9
mov r15, qword [rbx + 0x28]
test r15, r15
je 0x14000db6d
mov rdi, qword [r15 + 8]
mov rdi, qword [rdi]
cmp rdi, qword [r15 + 8]
je 0x14000db69
mov qword [rbp - 0x59], 0
lea r8, [rbp - 0x59]
lea rdx, [0x1400291d8]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.ole32.dll_CoUnmarshalInterface]
mov r12d, eax
mov rcx, qword [rbp - 0x59]
test eax, eax
js 0x14000db51
test rcx, rcx
je 0x14000db51
mov qword [rbp + 0x77], 0
mov rax, qword [rcx]
lea r8, [rbp + 0x77]
lea rdx, [0x14002a9e0]
mov rax, qword [rax]
call qword [case.0x140008ad6.0]
mov r12d, eax
mov rcx, qword [rbp + 0x77]
test eax, eax
js 0x14000db3a
test rcx, rcx
je 0x14000db3a
cmp rcx, qword [rbp + 0x7f]
je 0x14000db3a
mov rax, qword [rcx]
mov r8d, dword [rsi + 0x4c]
mov edx, dword [rsi + 0x48]
mov rax, qword [rax + 0x38]
call qword [case.0x140008ad6.0]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x14000db4d
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140008ad6.0]
nop
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x14000db64
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140008ad6.0]
nop
jmp 0x14000dab3
mov dword [rbp + 0x77], r12d
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x14000db9c
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14000db94
cmp rbx, qword [rax + 0x10]
jne 0x14000db94
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14000db81
mov rbx, rax
jmp 0x14000da98
call fcn.140012d60
mov rbx, rax
jmp 0x14000da98
cmp byte [rbp - 1], 0
je 0x14000dbbd
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbp - 1], 0
lea rdx, [0x140041890]
lea rcx, [rbp + 7]
call fcn.1400153c4
mov ebx, dword [rsi + 0x48]
mov edi, dword [rsi + 0x4c]
cmp byte [rbp + 0xf], 0
je 0x14000dbe7
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbp + 0xf], 0
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
mov r8d, edi
mov edx, ebx
mov rax, qword [rax + 0x38]
call qword [case.0x140008ad6.0]
lea rdx, [0x140041890]
lea rcx, [rbp - 0x41]
call fcn.1400153c4
xor edx, edx
lea rcx, [rsi + 0x40]
call fcn.1400022a8
xor r15d, r15d
mov qword [rsi + 0x48], r15
cmp byte [rbp - 0x39], r15b
je 0x14000dc33
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbp - 0x39], r15b
mov edi, dword [rbp + 0x6f]
jmp 0x140001ec3
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
mov byte [rsi + 0x18], 0
mov rcx, rsi
call fcn.140017690
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14000dc6d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.ole32.dll_OleUninitialize]
cmp byte [0x1400416f8], 0
je 0x14000dcc0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14000dca5
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
mov ecx, dword [rsi + 0x58]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14000dca5
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]