Function at 0x180007840
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov ebx, dword [rsp + 0xa8]
lea r13d, [rdx + 0xe]
mov r15, r8
mov ebp, edx
mov r14, rcx
cmp edx, r13d
jae case.0x1800078c1.187
mov r12, qword [rsp + 0xc8]
lea rdx, [0x180000000]
mov rdi, qword [rsp + 0x50]
lea r8, str.GetInteriorInputConnector
mov rsi, qword [rsp + 0x50]
nop word [rax + rax]
lea eax, [rbp - 0xb5]
cmp eax, 0x22
ja case.0x1800078c1.194
movzx eax, byte [rdx + rax + 0x7c24]
mov ecx, dword [rdx + rax*4 + 0x7bec]
add rcx, rdx
jmp rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x1800079de
mov rcx, qword [0x1800b42c8]
lea r9, str.Allow_Autofocus_Form_Element
mov qword [rsp + 0x20], rcx
lea edx, [rax + 0x6d]
mov rcx, r15
lea r8d, [rax + 1]
call fcn.180066dc0
jmp 0x1800079d4
mov rcx, qword [r12 + 8]
mov rax, qword [r14 + 8]
mov qword [rsp + 0x38], rcx
mov qword [r12 + 8], rax
jmp case.0x1800078c1.194
mov eax, 0x43
cmp eax, 0x43
je 0x180007946
cmp eax, 0x5b
je 0x180007941
cmp eax, 0x73
jne 0x18000794e
mov eax, 1
jmp 0x180007b37
mov qword [r14], rdi
jmp 0x18000794e
test rsi, rsi
je 0x180007989
mov qword [rdi], rsi
add eax, 0x18
cmp eax, 0x8b
jb 0x180007928
mov eax, dword [r9]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0xa8], eax
lea rcx, [rsp + 0xa8]
mov rax, qword [r14]
mov r9, r12
mov r8d, 0xee
mov qword [rsp + 0x48], rax
call fcn.1800392b0
mov ebx, eax
jmp 0x1800079de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1800b42c8]
mov r9d, 3
mov qword [rsp + 0x28], rcx
mov edx, eax
lea rcx, str.Print_all_flags_supported_by_the_VM
mov qword [rsp + 0x20], rcx
mov rcx, r15
lea r8d, [r9 + 0x6f]
call fcn.180067190
test rdi, rdi
je 0x1800079d4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, 0xffffffff
mov ebp, 0xd6
mov r9, qword [rsp + 0xb8]
lea rdx, [0x180000000]
lea r8, str.GetInteriorInputConnector
jmp case.0x1800078c1.194
test r12, r12
je 0x180007b87
mov rcx, qword [r12]
test rcx, rcx
je 0x180007b87
mov rax, qword [r14]
test rax, rax
je 0x180007b87
cmp dword [rax], 0
jle 0x180007b87
cmp dword [r9], 0
jle 0x180007b87
mov eax, dword [r12 + 0x1c]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x50], rcx
inc eax
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], eax
lea r8d, [r9 + 0x2d]
call fcn.18004f640
test eax, eax
jne 0x180007b87
mov rax, qword [r14]
mov dword [rax + 4], 0
jmp 0x1800079de
xor edi, edi
mov qword [0x1800b42c8], r8
mov qword [rsp + 0x40], rdi
xor esi, esi
jmp case.0x1800078c1.194
mov rax, qword [rsp + 0x38]
mov qword [r14 + 8], rax
jmp case.0x1800078c1.194
mov rax, qword [r14]
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
mov qword [r14], rax
jmp case.0x1800078c1.194
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
test rdi, rdi
je 0x180007b4f
mov rax, qword [rsp + 0xc0]
lea r8, [0x180050e40]
mov rcx, qword [rsp + 0x40]
test r12, r12
mov qword [rdi + 0x18], rax
lea rax, [rdi + 8]
cmovne rcx, r12
mov qword [rdi + 0x10], r9
mov qword [rsp + 0x28], rax
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x40], rcx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
jmp 0x1800079de
test r14, r14
je 0x180007bbc
cmp qword [r14], 0
jne 0x180007b8e
test r9, r9
jne case.0x1800078c1.194
lea r9, str._r36___imageWritei2D_param_3__
jmp 0x180007bc3
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
inc ebp
cmp ebp, r13d
jb 0x1800078a0
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [0x1800b42c8]
lea r9, str._s:_unable_to_clear_thread.
mov edx, 0x6d
mov qword [rsp + 0x20], rax
mov rcx, r15
lea r8d, [rdx - 0x6a]
call fcn.180066dc0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xffffffff
jmp 0x180007b37
mov rax, qword [0x1800b42c8]
lea r9, str.InstructionRangeEventDelegateListItem
mov edx, 0x72
mov qword [rsp + 0x20], rax
mov rcx, r15
lea r8d, [rdx - 0x70]
call fcn.180066dc0
mov eax, 0xffffffff
jmp 0x180007b37
lea r9, str.selectionPreference
mov rax, qword [0x1800b42c8]
mov edx, 0x61
mov rcx, r15
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 0x60]
call fcn.180066dc0
mov eax, 0xffffffff
jmp 0x180007b37