Function at 0x140009430
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rdi, rcx
mov r12b, 1
mov dword [rbp + 0x6f], r12d
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
js 0x140012531
mov rcx, qword [rdi + 0x20]
test rcx, rcx
jne 0x14000948a
mov ecx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
test rax, rax
je 0x140012110
mov qword [rdi + 0x20], rax
xor r14d, r14d
mov r15d, r14d
mov dword [rbp + 0x77], r14d
mov rax, qword [rdi]
mov qword [rcx], rax
mov dword [rdi + 0x5c], 1
mov r9d, 0x15f90
xor r8d, r8d
mov rdx, qword [rdi + 0x20]
mov ecx, dword [rdi + 0x5c]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
test eax, eax
jne 0x14001213e
lea rcx, [0x140044dc8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x140009503
mov eax, dword [rdi + 0x60]
test eax, eax
je 0x140009503
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1400094f4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rdi + 0x28]
mov eax, dword [rdi + 0x60]
mov qword [rdi + 0x20], rdx
mov dword [rdi + 0x5c], eax
mov qword [rdi + 0x28], r14
mov dword [rdi + 0x60], r14d
lea rcx, [0x140044dc8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp + 0x7f], r14
lea rcx, [0x140044df0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x40]
test rcx, rcx
jne 0x140009579
xor al, al
test al, al
jne 0x14001236c
lea rcx, [0x140044df0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r15d, r15d
js 0x140009581
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
jne 0x14000957d
xor dl, dl
test dl, dl
jne 0x140012388
test rcx, rcx
je 0x14000956b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140007cca.0]
test r12b, r12b
jne 0x1400094a1
jmp 0x140012531
mov al, 1
jmp 0x14000952c
mov dl, 1
jmp 0x140009551
mov rcx, qword [rbp + 0x7f]
jmp 0x140009559
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
lea rax, str.bad_allocation
mov qword [rbp - 1], rax
lea rax, vtable.std::bad_alloc.0
mov qword [rbp - 9], rax
lea rdx, [0x140039b30]
lea rcx, [rbp - 9]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
cmp esi, dword [rdi + 0x5c]
jb 0x140012160
cmp esi, 0x80
jbe 0x140012307
mov eax, dword [rdi + 0x5c]
sub eax, 0xffffff80
cmp esi, eax
jae 0x140012307
add esi, 0xffffff80
test esi, esi
je 0x140009510
lfence
lea rcx, [rsp + 0x30]
call fcn.140018a58
nop
lea rdx, [0x140044dc8]
lea rcx, [rbp - 0x69]
call fcn.140016854
nop
lea r15, [rdi + 0x30]
mov rcx, qword [rdi + 0x20]
mov eax, esi
lea r10, [rcx + rax*8]
mov r8, r10
lea rdx, [rbp + 0xf]
mov rcx, r15
call fcn.1400070a0
mov r13, qword [rbp + 0x1f]
cmp byte [r13 + 0x19], 0
jne 0x1400121bc
mov rax, qword [r13 + 0x20]
cmp qword [r10], rax
jb 0x1400121bc
mov al, 1
jmp 0x1400121be
xor al, al
test al, al
jne 0x1400121c5
mov r13, qword [r15]
cmp r13, qword [r15]
je 0x1400122cb
mov r14, qword [r13 + 0x28]
test r14, r14
je 0x14001227c
mov rbx, qword [r14 + 8]
mov rbx, qword [rbx]
cmp rbx, qword [r14 + 8]
je 0x14001226c
cmp qword [rbx + 0x10], 0
je 0x1400121df
mov r12, qword [rsp + 0x30]
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [rsp + 0x38], rax
je 0x140012523
lea rax, [rsp + 0x30]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], 0
mov ecx, SafeArrayPutElement
call fcn.140006d30
mov r15, rax
mov rcx, qword [rbx + 0x10]
mov qword [rax + 0x10], rcx
test rcx, rcx
je 0x140012246
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
call qword [case.0x140007cca.0]
nop
inc qword [rsp + 0x38]
mov rax, qword [r12 + 8]
mov qword [r15], r12
mov qword [r15 + 8], rax
mov qword [rbp - 0x11], 0
mov qword [r12 + 8], r15
mov qword [rax], r15
jmp 0x1400121df
mov rcx, r14
call fcn.140018ad8
lea r15, [rdi + 0x30]
mov r12d, dword [rbp + 0x6f]
lfence
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x71], r13
lea rcx, [rbp - 0x71]
call fcn.14000a440
mov rdx, r13
mov rcx, r15
call fcn.140018f38
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, esi
mov rcx, rdi
call fcn.140018cb0
movzx r12d, r12b
cmp qword [rdi + 0x38], 0
mov r14d, 0
cmove r12d, r14d
mov dword [rbp + 0x6f], r12d
cmp byte [rbp - 0x61], 0
je 0x1400122df
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbp - 0x61], 0
lea rcx, [rsp + 0x30]
call fcn.140018d28
mov rdx, qword [rsp + 0x30]
call fcn.140018a14
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r15d, dword [rbp + 0x77]
jmp 0x140009510
cmp esi, 0xffffffff
jne 0x140012318
xor r12b, r12b
mov dword [rbp + 0x6f], r12d
jmp 0x140009510
cmp esi, 0x102
jne 0x140009510
lea rdx, [0x140044dc8]
lea rcx, [rbp - 0x59]
call fcn.140016854
mov ebx, r14d
movzx eax, r12b
cmp qword [rdi + 0x38], 0
cmovne ebx, eax
movzx r12d, bl
mov dword [rbp + 0x6f], r12d
cmp byte [rbp - 0x51], 0
je 0x140009510
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbp - 0x51], 0
mov dword [rbp + 0x6f], r12d
jmp 0x140009510
lea r8, [rbp + 0x7f]
lea rdx, [0x14002e098]
call qword [sym.imp.ole32.dll_CoUnmarshalInterface]
mov r15d, eax
mov dword [rbp + 0x77], eax
jmp 0x140009534
lea rdx, [0x140044dc8]
lea rcx, [rbp - 0x49]
call fcn.140016854
mov rax, qword [rdi + 0x30]
mov rax, qword [rax]
mov qword [rbp - 0x79], rax
xor r13d, r13d
cmp rax, qword [rdi + 0x30]
je 0x14001248f
mov r14, qword [rax + 0x28]
test r14, r14
je 0x14001247d
mov rbx, qword [r14 + 8]
mov rbx, qword [rbx]
cmp rbx, qword [r14 + 8]
je 0x140012479
mov qword [rsp + 0x28], r13
lea r8, [rsp + 0x28]
lea rdx, [0x14002e0c8]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.ole32.dll_CoUnmarshalInterface]
mov r15d, eax
test eax, eax
js 0x140012459
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14001245e
mov qword [rsp + 0x20], r13
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
lea rdx, [0x140030030]
mov rax, qword [rax]
call qword [case.0x140007cca.0]
mov r15d, eax
mov rcx, qword [rsp + 0x20]
test eax, eax
js 0x140012447
test rcx, rcx
je 0x140012447
cmp rcx, qword [rbp + 0x7f]
je 0x140012447
mov rax, qword [rcx]
mov r8d, dword [rdi + 0x4c]
mov edx, dword [rdi + 0x48]
mov rax, qword [rax + 0x38]
call qword [case.0x140007cca.0]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140012459
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140007cca.0]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400123c1
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140007cca.0]
jmp 0x1400123c1
mov dword [rbp + 0x77], r15d
lea rcx, [rbp - 0x79]
call fcn.14000a440
mov rax, qword [rbp - 0x79]
jmp 0x1400123a6
cmp byte [rbp - 0x41], 0
je 0x1400124a3
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbp - 0x41], 0
lea rdx, [0x140044df0]
lea rcx, [rbp - 0x39]
call fcn.140016854
mov ebx, dword [rdi + 0x48]
mov r14d, dword [rdi + 0x4c]
cmp byte [rbp - 0x31], 0
je 0x1400124ce
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbp - 0x31], 0
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
mov r8d, r14d
mov edx, ebx
mov rax, qword [rax + 0x38]
call qword [case.0x140007cca.0]
lea rdx, [0x140044df0]
lea rcx, [rbp - 0x29]
call fcn.140016854
xor edx, edx
lea rcx, [rdi + 0x40]
call fcn.140013914
xor r14d, r14d
mov qword [rdi + 0x48], r14
cmp byte [rbp - 0x21], r14b
je 0x140009581
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbp - 0x21], r14b
jmp 0x140009581
lea rcx, str.list_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
mov byte [rdi + 0x18], 0
mov rcx, rdi
call fcn.140018b00
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140012555
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.ole32.dll_OleUninitialize]
cmp byte [0x140044bf0], 0
je 0x1400125a8
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 0x14001258d
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
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 [rdi + 0x58]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x14001258d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]