Function at 0x14018ae80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x14029e338]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r13d, r8d
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rcx
lea rdx, [rbp - 0x10]
mov r8d, 0x105
mov dword [rsp + 0x60], r9d
xor ecx, ecx
mov dword [rsp + 0x64], 0x2af8
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
je 0x14018af54
lea rcx, [rbp - 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rbx, [rbp + rax*2 - 0x12]
jmp 0x14018aefa
cmp word [rbx], 0x5c
je 0x14018af03
sub rbx, 2
lea rax, [rbp - 0x10]
cmp rbx, rax
jne 0x14018aef0
lea r8, [rsp + 0x68]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
call qword [sym.imp.advapi32.dll_RegCreateKeyW]
test eax, eax
jne 0x14018af54
mov rcx, qword [rsp + 0x68]
lea r9d, [rax + 4]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x28], r9d
lea rdx, [rbx + 2]
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
test eax, eax
je 0x14018af80
call qword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14018b7f0
mov rbx, qword [rsp + 0x358]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.advapi32.dll_RegCloseKey]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
mov r15, rax
test rax, rax
je 0x14018af54
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
mov edi, 1
cmp eax, edi
ja 0x14018af54
lea rcx, [0x14021ac38]
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14018aff3
lea rdx, str.SetThreadDpiAwarenessContext
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14018afdc
lea rcx, [rdi - 3]
call rax
test rax, rax
jne 0x14018aff3
lea rdx, str.SetProcessDPIAware
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14018aff3
call rax
mov dword [rsp + 0x28], 0x40
xor r9d, r9d
and dword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.user32.dll_LoadImageW]
mov edi, 0x50
lea rcx, [rbp - 0x80]
mov r8d, edi
xor edx, edx
mov rbx, rax
call fcn.14018c840
mov rcx, qword [str.WebView]
lea rax, [0x14018b30c]
mov qword [rbp - 0x40], rcx
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], edi
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x60], rbx
call qword [sym.imp.user32.dll_RegisterClassExW]
mov r14d, dword [rbp + 0x270]
mov eax, r14d
mov esi, dword [rbp + 0x280]
neg eax
sbb ecx, ecx
and ecx, 0x40000
add ecx, 0xcb0000
mov r12d, ecx
and r12d, 0xff34ffff
test esi, esi
cmove r12d, ecx
xor ecx, ecx
call qword [sym.imp.user32.dll_GetDC]
mov rcx, rax
lea edx, [rdi + 8]
mov rbx, rax
call qword [sym.imp.gdi32.dll_GetDeviceCaps]
mov rdx, rbx
xor ecx, ecx
mov edi, eax
call qword [sym.imp.user32.dll_ReleaseDC]
and dword [rbp - 0x30], 0
mov ebx, 0x60
and dword [rbp - 0x2c], 0
mov r8d, ebx
mov edx, edi
mov ecx, r13d
call qword [sym.imp.kernel32.dll_MulDiv]
mov ecx, dword [rsp + 0x60]
mov r8d, ebx
mov edx, edi
mov dword [rbp - 0x28], eax
call qword [sym.imp.kernel32.dll_MulDiv]
xor r8d, r8d
lea rcx, [rbp - 0x30]
mov edx, 0xcf0000
mov dword [rbp - 0x24], eax
call qword [sym.imp.user32.dll_AdjustWindowRect]
call qword [sym.imp.user32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rbp - 0x20]
call qword [sym.imp.user32.dll_GetClientRect]
mov r11d, dword [rbp - 0x28]
mov eax, r11d
sub eax, dword [rbp - 0x30]
mov r10d, dword [rbp - 0x24]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [rbp - 0x18]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
mov eax, r10d
sub r9d, ecx
sub eax, dword [rbp - 0x2c]
cdq
mov rcx, qword [rsp + 0x70]
sub eax, edx
sar eax, 1
mov r8d, eax
mov eax, dword [rbp - 0x14]
cdq
sub eax, edx
mov edx, r9d
sub edx, dword [rbp - 0x30]
add r11d, edx
sar eax, 1
sub eax, r8d
mov dword [rbp - 0x28], r11d
mov edx, eax
mov dword [rbp - 0x30], r9d
sub edx, dword [rbp - 0x2c]
add r10d, edx
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x24], r10d
call fcn.14018b298
mov edx, 0x68
mov rbx, rax
lea ecx, [rdx - 0x67]
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov ecx, dword [rbp + 0x278]
mov rdi, rax
mov qword [rsp + 0x58], rdi
mov r9d, r12d
mov qword [rsp + 0x50], r15
mov dword [rax + 8], r13d
mov eax, dword [rsp + 0x60]
mov dword [rdi + 0x14], ecx
mov ecx, dword [rbp + 0x290]
mov dword [rdi + 0xc], eax
mov rax, qword [rsp + 0x78]
mov dword [rdi + 0x1c], ecx
mov ecx, dword [rbp + 0x298]
mov dword [rdi + 0x20], ecx
mov rcx, qword [rbp + 0x2a0]
mov qword [rdi], rax
mov rax, qword [rbp + 0x2a8]
mov qword [rdi + 0x28], rcx
mov dword [rdi + 0x18], esi
xor esi, esi
mov qword [rdi + 0x30], rax
mov dword [rdi + 0x10], r14d
mov r8d, dword [rbp - 0x2c]
mov ecx, dword [rbp - 0x30]
mov edx, dword [rbp - 0x24]
mov eax, dword [rbp - 0x28]
sub edx, r8d
mov qword [rsp + 0x48], rsi
sub eax, ecx
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], edx
mov rdx, qword [str.WebView]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r8d
mov r8, rbx
mov dword [rsp + 0x20], ecx
xor ecx, ecx
call qword [sym.imp.user32.dll_CreateWindowExW]
mov rcx, rbx
mov qword [rdi + 0x38], rax
call qword [sym.imp.oleaut32.dll_SysFreeString]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
jne 0x14018b237
mov rcx, rdi
call fcn.14018f43b
call qword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x14018af54
mov r8, rdi
mov edx, 0xffffffeb
call qword [sym.imp.user32.dll_SetWindowLongPtrW]
cmp dword [rdi + 0x18], esi
je 0x14018b25c
mov rcx, qword [rdi + 0x38]
mov edx, 0xfffffff0
mov r8d, r12d
call qword [sym.imp.user32.dll_SetWindowLongPtrW]
mov rcx, rdi
call fcn.14018a888
neg dword [rbp + 0x288]
mov rcx, qword [rdi + 0x38]
sbb edx, edx
and edx, 0xa
call qword [sym.imp.user32.dll_ShowWindow]
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.user32.dll_UpdateWindow]
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.user32.dll_SetFocus]
mov rax, rdi
jmp 0x14018af56