Function at 0x1400437a4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor r13d, r13d
mov dil, dl
mov rbx, rcx
test rcx, rcx
je 0x140043d78
mov rax, qword [0x14022ac80]
test rax, rax
jne 0x14004380f
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14022ac80], rax
test rax, rax
je 0x140043d78
mov r10, qword [0x14022ac88]
test r10, r10
je 0x140043843
cmp qword [0x14022ac90], r13
je 0x140043843
cmp qword [0x14022ac98], r13
je 0x140043843
cmp qword [0x14022aca0], r13
je 0x140043843
cmp qword [0x14022aca8], r13
jne 0x140043906
lea rdx, [0x1401857e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14022ac80]
lea rdx, [0x1401857f0]
mov qword [0x14022ac88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14022ac80]
lea rdx, [0x140185800]
mov qword [0x14022ac90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14022ac80]
lea rdx, [0x140185818]
mov qword [0x14022ac98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14022ac80]
lea rdx, str.RegQueryInfoKeyW
mov qword [0x14022aca0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, qword [0x14022ac88]
mov qword [0x14022aca8], rax
test r10, r10
je 0x140043d78
cmp qword [0x14022ac90], r13
je 0x140043d78
cmp qword [0x14022ac98], r13
je 0x140043d78
cmp qword [0x14022aca0], r13
je 0x140043d78
test rax, rax
je 0x140043d78
mov al, dil
mov qword [rsp + 0x68], r13
neg al
mov dword [rsp + 0x70], r13d
lea rax, [rsp + 0x70]
sbb ecx, ecx
mov qword [rsp + 0x40], rax
and ecx, 0xffffffed
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareConEmu
add ecx, 0x20019
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ecx
xor r9d, r9d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r13d
xor r8d, r8d
call r10
mov edx, eax
test eax, eax
jne 0x140043d78
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140043d78
test dil, dil
jne 0x1400439ed
lea rax, [rsp + 0x78]
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov qword [rsp + 0x50], r13
xor r8d, r8d
mov qword [rsp + 0x48], r13
xor edx, edx
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [0x14022aca8]
mov edx, eax
mov rax, qword [rsp + 0x78]
test edx, edx
jne 0x1400439e9
cmp dword [rbx + 0x50], r13d
jne 0x1400439cd
cmp dword [rbx + 0x4c], r13d
je 0x1400439e9
cmp rax, qword [rbx + 0x4c]
jne 0x1400439e9
mov rcx, qword [rsp + 0x68]
call qword [0x14022ac90]
cmp dword [rbx], r13d
setne al
jmp 0x140043d7a
mov qword [rbx + 0x4c], rax
mov r15d, 4
mov qword [rbp - 0x78], rbx
lea rax, str.DefTerm_Enabled
mov dword [rbp - 0x70], r15d
mov qword [rbp - 0x80], rax
test dil, dil
lea rax, str.DefTerm_Agressive
mov dword [rbp - 0x6c], r15d
mov qword [rbp - 0x68], rax
lea r12d, [r15 + 3]
lea rax, [rbx + 4]
mov dword [rbp - 0x58], r15d
mov qword [rbp - 0x60], rax
lea r14d, [r15 + 8]
lea rax, str.DefTerm_NoInjects
mov dword [rbp - 0x54], r15d
mov qword [rbp - 0x50], rax
lea rdi, [rbp - 0x78]
lea rax, [rbx + 8]
mov dword [rbp - 0x40], r15d
mov qword [rbp - 0x48], rax
lea rax, str.DefTerm_NewWindow
mov qword [rbp - 0x38], rax
lea rax, [rbx + 0xc]
mov qword [rbp - 0x30], rax
lea rax, str.DefTerm_DebugLog
mov qword [rbp - 0x20], rax
lea rax, [rbx + 0x10]
mov qword [rbp - 0x18], rax
lea rax, str.DefTerm_Confirm
mov qword [rbp - 8], rax
lea rax, [rbx + 0x14]
mov qword [rbp], rax
lea rax, str.DefTerm_Flags
mov qword [rbp + 0x10], rax
lea rax, [rbx + 0x18]
mov qword [rbp + 0x18], rax
lea rax, str.DefTerm_ConEmuExe
mov qword [rbp + 0x28], rax
lea rax, [rbx + 0x20]
mov qword [rbp + 0x30], rax
lea rax, str.DefTerm_BaseDir
mov qword [rbp + 0x40], rax
lea rax, [rbx + 0x28]
mov qword [rbp + 0x48], rax
lea rax, str.DefTerm_CfgFile
mov qword [rbp + 0x58], rax
lea rax, [rbx + 0x30]
mov qword [rbp + 0x60], rax
lea rax, str.DefTerm_Config
mov qword [rbp + 0x70], rax
lea rax, [rbx + 0x38]
mov qword [rbp + 0x78], rax
lea rax, str.DefTerm_AppList
mov qword [rbp + 0x88], rax
lea rax, [rbx + 0x40]
mov qword [rbp + 0x90], rax
mov dword [rbp - 0x3c], r15d
mov dword [rbp - 0x28], r15d
mov dword [rbp - 0x24], r15d
mov dword [rbp - 0x10], r15d
mov dword [rbp - 0xc], r15d
mov dword [rbp + 8], r15d
mov dword [rbp + 0xc], r15d
mov dword [rbp + 0x20], r15d
mov dword [rbp + 0x24], r15d
mov dword [rbp + 0x38], r13d
mov dword [rbp + 0x3c], 1
mov dword [rbp + 0x50], r13d
mov dword [rbp + 0x54], 1
mov dword [rbp + 0x68], r13d
mov dword [rbp + 0x6c], 1
mov dword [rbp + 0x80], r13d
mov dword [rbp + 0x84], 1
mov dword [rbp + 0x98], r13d
mov dword [rbp + 0x9c], r12d
jne 0x140043c7e
mov esi, dword [rdi + 8]
lea rax, [rsp + 0x60]
mov rdx, qword [rdi - 8]
lea r9, [rsp + 0x74]
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
test esi, esi
je 0x140043bcd
lea rax, [rsp + 0x70]
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x20], rax
call qword [0x14022ac98]
mov ecx, dword [rsp + 0x70]
test eax, eax
cmovne ecx, r13d
mov dword [rsp + 0x70], ecx
cmp esi, r15d
jne 0x140043bba
mov rax, qword [rdi]
mov dword [rax], ecx
jmp 0x140043c65
cmp esi, 1
jne 0x140043c65
mov rax, qword [rdi]
mov byte [rax], cl
jmp 0x140043c65
mov r12, qword [rdi]
mov rsi, r13
mov qword [rsp + 0x20], r13
mov r15, qword [r12]
mov dword [rsp + 0x60], r13d
call qword [0x14022ac98]
test eax, eax
jne 0x140043c4e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140043c4e
cmp dword [rsp + 0x74], 1
je 0x140043c01
cmp dword [rsp + 0x74], 7
jne 0x140043c4e
lea rcx, [rax + 4]
mov edx, 1
call fcn.140113de8
mov rsi, rax
test rax, rax
je 0x140043c4e
mov rdx, qword [rdi - 8]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x74]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [0x14022ac98]
cmp word [rsi], r13w
jne 0x140043c4e
mov rcx, rsi
call fcn.140113e18
mov rsi, r13
mov qword [r12], rsi
test r15, r15
je 0x140043c5f
mov rcx, r15
call fcn.140113e18
mov r15d, 4
add rdi, 0x18
sub r14, 1
jne 0x140043b66
cmp dword [rbx], r13d
setne bl
jmp 0x140043d69
mov r15b, 1
mov eax, dword [rdi + 8]
test eax, eax
je 0x140043ca1
mov r9d, dword [rdi + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x60], eax
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
jmp 0x140043d38
cmp dword [rdi + 0xc], 1
jne 0x140043cd8
mov rax, qword [rdi]
lea rbx, [0x1401759d0]
cmp qword [rax], r13
cmovne rbx, qword [rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 1
lea eax, [rax*2 + 2]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x28], eax
jmp 0x140043d33
cmp dword [rdi + 0xc], r12d
jne 0x140043d4c
mov rax, qword [rdi]
lea rbx, [0x140185a08]
mov edx, 2
cmp qword [rax], r13
cmovne rbx, qword [rax]
mov dword [rsp + 0x60], edx
mov rsi, rbx
cmp word [rbx], r13w
je 0x140043d2c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [rsp + 0x60]
cmp eax, 1
jl 0x140043d2c
add edx, 2
lea edx, [rdx + rax*2]
inc eax
movsxd rcx, eax
mov dword [rsp + 0x60], edx
lea rsi, [rsi + rcx*2]
cmp word [rsi], r13w
jne 0x140043d01
mov dword [rsp + 0x28], edx
mov r9d, r12d
mov qword [rsp + 0x20], rbx
mov rdx, qword [rdi - 8]
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
call qword [0x14022aca0]
mov edx, eax
test edx, edx
movzx ecx, r15b
mov ebx, r13d
cmove ebx, ecx
add rdi, 0x18
mov r15b, bl
sub r14, 1
jne 0x140043c81
mov rcx, qword [rsp + 0x68]
call qword [0x14022ac90]
mov al, bl
jmp 0x140043d7a
xor al, al
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14012bda0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret