Function at 0x140001b70
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x100
movaps xmmword [rsp + 0xf0], xmm6
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
movups xmm6, xmmword [0x140003480]
mov edi, dword [0x140003490]
mov edx, 0x14
mov r14d, r9d
mov rbx, rcx
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rdx + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140001bcf
mov eax, 1
jmp 0x140001f01
movups xmmword [rax], xmm6
mov qword [rsp + 0x128], rbp
mov qword [rsp + 0x130], rsi
mov dword [rax + 0x10], edi
call rax
add rax, 0x800
lea rcx, str.win32u.dll
mov qword [0x140008790], rax
mov rax, qword [rax + 0x28]
mov qword [0x140008768], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtUserEnableMenuItem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.win32u.dll
mov qword [0x140006f50], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtUserSetClassLongPtr
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtUserCreateAcceleratorTable
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtUserConsoleControl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xorps xmm0, xmm0
mov qword [rsp + 0x78], rbx
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x80], xmm0
lea rax, [0x140001f30]
movdqa xmmword [rsp + 0x90], xmm1
xor esi, esi
mov qword [rsp + 0x68], rax
lea rdi, str.EnableMenuItem
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0xa0], rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
mov rdx, qword [rsp + 0xa0]
mov r9d, 0xcf0000
mov qword [rsp + 0x58], rsi
mov r8, rdi
mov qword [rsp + 0x50], rbx
xor ecx, ecx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 0x12c
mov dword [rsp + 0x30], 0x190
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbp, rax
test rax, rax
je 0x140001eef
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov qword [0x140008760], rax
call qword [sym.imp.USER32.dll_CreatePopupMenu]
lea rcx, str.USER32.DLL
mov qword [0x140005638], rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.IsMenu
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rax, qword [rbx + 0xbd688]
lea rcx, [rdi + rdi*2]
lea rdx, [rax + rcx*8]
test rdx, rdx
je 0x140001d7b
mov rsi, qword [rdx]
sub rsi, qword [0x140008768]
mov rax, qword [rsi + 0x20]
mov qword [0x140006f58], rax
call qword [sym.imp.USER32.dll_CreateMenu]
mov qword [0x140005620], rax
call fcn.1400014f0
cmp qword [0x140006f48], 0
je 0x140001eef
mov rcx, qword [0x140005638]
lea r9, [0x140003530]
xor edx, edx
mov r8d, 0x2061
call qword [sym.imp.USER32.dll_AppendMenuW]
mov rcx, qword [0x140005638]
lea r9, [0x140003534]
xor edx, edx
mov r8d, 0xf060
call qword [sym.imp.USER32.dll_AppendMenuW]
mov rcx, qword [0x140008760]
xor r8d, r8d
mov edx, 0xf060
call qword [sym.imp.USER32.dll_DeleteMenu]
mov r8, qword [0x140005638]
lea r9, [0x140003538]
mov rcx, qword [0x140005620]
mov edx, 0x10
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r8, qword [0x140005620]
lea r9, str.Menu_B
mov rcx, qword [0x140008760]
mov edx, 0x10
call qword [sym.imp.USER32.dll_AppendMenuW]
mov edx, r14d
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbp
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x140008760]
mov edx, 0xf060
mov r8d, 1
mov dword [0x140006f40], 1
call qword [0x140006f50]
call fcn.140001150
xorps xmm0, xmm0
lea rcx, [rsp + 0xb0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140001ee6
nop dword [rax + rax]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0xb0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140001eb0
mov eax, dword [rsp + 0xc0]
jmp 0x140001ef1
xor eax, eax
mov rbp, qword [rsp + 0x128]
mov rsi, qword [rsp + 0x130]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400021c0
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x100
pop r14
pop rdi
pop rbx
ret