Function at 0x140012f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x1400d8538]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1e0]
mov dword [rax], 1
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0xf0]
and al, 1
movzx eax, al
test eax, eax
je 0x140012ff4
mov rax, qword [rsp + 0x1d0]
and rax, 0xffff
movzx eax, ax
cmp eax, 0xd
je 0x140012ff4
mov qword [rsp + 0x88], 0
jmp 0x140013000
mov qword [rsp + 0x88], 0x10001
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0xf0]
and al, 1
movzx eax, al
test eax, eax
je 0x140013335
mov rax, qword [rsp + 0x1d0]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
cmp eax, 0x10
jne 0x140013335
mov rax, qword [rsp + 0x1d0]
and rax, 0xffff
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0x1d8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x3c], 2
mov dword [rsp + 0x40], 0
xor eax, eax
mov word [rsp + 0x24], ax
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
jmp 0x1400130a8
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x28], eax
jge 0x14001328c
mov r8d, 0x50
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.140024550
mov dword [rsp + 0xa0], 0x50
call fcn.140006600
movzx eax, al
test eax, eax
je 0x1400130ed
mov dword [rsp + 0xa0], 0x44
mov dword [rsp + 0xe0], 0x64
mov dword [rsp + 0xa4], 0x3f
lea rax, [rsp + 0x130]
mov qword [rsp + 0xd8], rax
lea r9, [rsp + 0xa0]
mov r8d, 1
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14001314b
mov eax, dword [rsp + 0xa8]
and eax, 0x800
test eax, eax
je 0x140013150
jmp 0x14001309e
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140013287
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0x1313
jne 0x140013189
mov dword [rsp + 0x44], 1
jmp 0x140013191
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x140013287
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140013287
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
je 0x1400131e6
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x26
je 0x1400131e6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [rsp + 0x30], rax
jmp 0x1400131bb
cmp qword [rsp + 0x30], 0
je 0x140013287
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
je 0x140013287
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx rax, byte [rax]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x5c], eax
movsx rax, byte [rsp + 0x21]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x5c]
mov ecx, eax
call qword [sym.imp.USER32.dll_CharLowerA]
mov qword [rsp + 0x98], rax
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_CharLowerA]
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
jne 0x140013287
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001327d
movzx eax, word [rsp + 0x28]
mov word [rsp + 0x24], ax
mov byte [rsp + 0x20], 1
jmp 0x140013287
mov dword [rsp + 0x3c], 3
jmp 0x14001328c
jmp 0x14001309e
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140013301
cmp dword [rsp + 0x3c], 2
jne 0x1400132c7
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov edx, 0x448
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_PostMessageA]
mov rcx, qword [rsp + 0x50]
call fcn.14000f050
mov rax, qword [rsp + 0x1e0]
mov dword [rax], 1
movzx eax, word [rsp + 0x24]
and rax, 0xffff
movzx eax, ax
movsxd rcx, dword [rsp + 0x3c]
and rcx, 0xffff
movzx ecx, cx
shl ecx, 0x10
or eax, ecx
mov eax, eax
mov qword [rsp + 0x88], rax
xor eax, eax
test eax, eax
je 0x140013330
cmp qword [rsp + 0x48], 0
jne 0x140013311
jmp 0x140013330
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_DestroyMenu]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x140013330
mov qword [rsp + 0x48], 0
jmp 0x1400135cd
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0xf0]
and al, 1
movzx eax, al
test eax, eax
jne 0x1400135cd
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x1d0]
and rax, 0xffff
movsx rax, al
lea r9, [rsp + 0x38]
mov r8, rax
mov edx, 0x44e
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x140013401
mov rax, qword [rsp + 0x1e0]
mov dword [rax], 0
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov edx, 0x448
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_PostMessageA]
mov rcx, qword [rsp + 0x50]
call fcn.14000f050
mov rax, qword [rsp + 0x1d0]
and rax, 0xffff
movsx eax, al
cmp eax, 0x2f
jne 0x1400133fc
mov rcx, qword [rsp + 0x50]
call fcn.1400090c0
movzx eax, al
test eax, eax
je 0x1400133fc
mov rax, qword [rsp + 0x1e0]
mov dword [rax], 1
jmp 0x1400135cd
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0xa0]
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1400135cd
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rdx, [rsp + 0xf0]
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rax, [rsp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x68], eax
movsxd rax, dword [rsp + 0x68]
lea r9, [rsp + 0x100]
mov r8, rax
mov edx, 0x41d
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_SendMessageA]
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x70], eax
movsxd rax, dword [rsp + 0x70]
lea r9, [rsp + 0x110]
mov r8, rax
mov edx, 0x417
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_SendMessageA]
movzx eax, byte [rsp + 0x118]
and eax, 4
test eax, eax
je 0x1400135c5
movzx eax, byte [rsp + 0x118]
and eax, 8
test eax, eax
jne 0x1400135c5
mov eax, dword [rsp + 0xf8]
cmp dword [rsp + 0x108], eax
jg 0x1400135c5
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0xf1]
shr al, 1
and al, 1
movzx eax, al
test eax, eax
je 0x14001356f
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0xf1]
shr al, 2
and al, 1
movzx eax, al
test eax, eax
jne 0x14001356f
mov rax, qword [rsp + 0x1c0]
movzx eax, byte [rax + 0xf1]
or al, 8
mov rcx, qword [rsp + 0x1c0]
mov byte [rcx + 0xf1], al
mov dl, 1
mov rcx, qword [rsp + 0x1c0]
call fcn.14001b9b0
mov rcx, qword [rsp + 0x50]
call fcn.14001c0a0
xor r9d, r9d
mov r8d, 0x28
mov edx, 0x100
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x78], eax
movsxd rax, dword [rsp + 0x78]
xor r9d, r9d
mov r8, rax
mov edx, 0x448
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_SendMessageA]
jmp 0x1400135cd
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBeep]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140022d70
add rsp, 0x1b0
pop rdi
ret