Function at 0x1400123c0
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
sub rsp, 0x258
mov rax, qword [0x1400d8538]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rax, qword [rsp + 0x278]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
test eax, eax
je 0x14001241d
mov rax, qword [rsp + 0x280]
mov dword [rax], 0
mov eax, 1
jmp 0x140012bee
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0xf0]
shr al, 1
and al, 1
movzx eax, al
test eax, eax
jne 0x140012467
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0xf0]
and al, 1
movzx eax, al
test eax, eax
jne 0x140012467
mov rax, qword [rsp + 0x280]
mov dword [rax], 0
mov eax, 1
jmp 0x140012bee
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0xf0]
shr al, 1
and al, 1
movzx eax, al
test eax, eax
je 0x140012532
cmp qword [rsp + 0x278], 0
jne 0x1400124dd
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0xf0]
shr al, 4
and al, 1
movzx eax, al
test eax, eax
jne 0x1400124dd
xor r9d, r9d
xor r8d, r8d
mov edx, 0x447
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_SendMessageA]
cdqe
mov qword [rsp + 0x98], rax
jmp 0x1400124ed
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x270]
mov r8d, dword [rsp + 0x268]
mov rax, qword [rsp + 0x260]
mov rdx, qword [rax + 8]
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 0x70]
call qword [sym.imp.USER32.dll_CallWindowProcA]
mov qword [rsp + 0x78], rax
jmp 0x1400125e6
cmp qword [rsp + 0x278], 0
jne 0x140012581
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0xf0]
shr al, 4
and al, 1
movzx eax, al
test eax, eax
jne 0x140012581
xor r9d, r9d
xor r8d, r8d
mov edx, 0x447
mov rax, qword [rsp + 0x260]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_SendMessageA]
cdqe
mov qword [rsp + 0xa0], rax
jmp 0x140012591
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x260]
add rax, 0xa0
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x270]
mov r8d, dword [rsp + 0x268]
mov rax, qword [rsp + 0xa8]
mov rdx, qword [rax]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.USER32.dll_CallWindowProcA]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0xf2]
and al, 1
movzx eax, al
test eax, eax
je 0x14001282d
mov rax, qword [rsp + 0x270]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x3c], 0
jmp 0x140012623
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetMenuItemCount]
cmp dword [rsp + 0x3c], eax
jge 0x1400127de
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetMenuItemID]
mov word [rsp + 0x50], ax
mov rax, qword [rsp + 0x260]
add rax, 0x88
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x34], 0
jmp 0x140012676
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x34], eax
jge 0x1400126cb
movzx eax, word [rsp + 0x50]
movsxd rcx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0xb0]
mov rdx, qword [rdx]
movzx ecx, word [rdx + rcx*2]
cmp ecx, eax
jne 0x1400126ae
mov dword [rsp + 0x68], 1
jmp 0x1400126b6
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
test eax, eax
je 0x1400126c9
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
jmp 0x1400126d3
jmp 0x14001266c
mov dword [rsp + 0x38], 0xffffffff
mov r8d, 0x50
xor edx, edx
lea rcx, [rsp + 0x180]
call fcn.140024550
mov dword [rsp + 0x180], 0x50
call fcn.140006600
movzx eax, al
test eax, eax
je 0x14001270a
mov dword [rsp + 0x180], 0x44
mov dword [rsp + 0x184], 0x80
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0xf0]
shr al, 2
and al, 1
movzx eax, al
test eax, eax
je 0x1400127a0
cmp dword [rsp + 0x38], 0xffffffff
je 0x1400127a0
mov rax, qword [rsp + 0x260]
add rax, 0x130
mov qword [rsp + 0xb8], rax
cmp dword [rsp + 0x38], 0
jl 0x140012765
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x38], eax
jl 0x14001276f
mov ecx, 0x8000000b
call fcn.140006690
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx]
lea rax, [rcx + rax*8]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
jmp 0x1400127ac
mov qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x1c8], rax
lea r9, [rsp + 0x180]
mov r8d, 1
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetMenuItemInfoA]
jmp 0x140012619
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xe0], rax
xor eax, eax
test eax, eax
je 0x140012820
cmp qword [rsp + 0x60], 0
jne 0x1400127fb
jmp 0x140012820
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_DestroyMenu]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
je 0x140012820
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0xe0]
jmp 0x140012bee
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0xf0]
shr al, 2
and al, 1
movzx eax, al
test eax, eax
je 0x140012be9
mov rax, qword [rsp + 0x270]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x260]
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x40], 0
jmp 0x140012885
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetMenuItemCount]
cmp dword [rsp + 0x40], eax
jge 0x140012b8a
mov r8d, 0x50
xor edx, edx
lea rcx, [rsp + 0x120]
call fcn.140024550
mov dword [rsp + 0x120], 0x50
call fcn.140006600
movzx eax, al
test eax, eax
je 0x1400128d1
mov dword [rsp + 0x120], 0x44
mov dword [rsp + 0x160], 0x64
mov dword [rsp + 0x124], 0x3f
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x158], rax
lea r9, [rsp + 0x120]
mov r8d, 1
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x128]
and eax, 0x100
test eax, eax
jne 0x140012b85
mov dword [rsp + 0x124], 0x31
mov qword [rsp + 0x48], 0
mov ecx, 0x20
call fcn.140021fb0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x14001298d
mov rax, qword [rsp + 0x90]
mov dword [rax], 0x1313
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xc8], rax
jmp 0x140012999
mov qword [rsp + 0xc8], 0
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x48], rax
jmp 0x1400129b8
cmp qword [rsp + 0x48], 0
je 0x140012b85
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x128]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x12c]
mov dword [rax + 0x14], ecx
mov eax, dword [rsp + 0x128]
bts eax, 8
mov dword [rsp + 0x128], eax
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x18], 0xffffffff
mov dword [rsp + 0x30], 0
jmp 0x140012a14
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x260]
mov eax, dword [rax + 0x90]
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x84]
cmp dword [rsp + 0x30], eax
jge 0x140012ab1
mov rax, qword [rsp + 0x260]
add rax, 0x88
mov qword [rsp + 0xd0], rax
cmp dword [rsp + 0x30], 0
jl 0x140012a64
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x30], eax
jl 0x140012a6e
mov ecx, 0x8000000b
call fcn.140006690
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx]
lea rax, [rcx + rax*2]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
movzx eax, word [rax]
cmp eax, dword [rsp + 0x130]
jne 0x140012aac
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x18], ecx
jmp 0x140012ab1
jmp 0x140012a0a
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], 0
movsxd rax, dword [rsp + 0x6c]
mov rcx, rax
call fcn.140021ff4
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x108]
mov qword [rax + 8], rcx
jmp 0x140012b0a
mov rax, qword [rsp + 0x48]
cmp qword [rax + 8], 0
je 0x140012b57
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cdqe
movsxd rcx, dword [rsp + 0x6c]
cmp rcx, rax
jbe 0x140012b57
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x150], rax
lea r9, [rsp + 0x120]
mov r8d, 1
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov dword [rsp + 0x70], eax
jmp 0x14001287b
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x260]
add rax, 0x20
lea rdx, [rsp + 0x118]
mov rcx, rax
call fcn.140003c70
nop
xor eax, eax
test eax, eax
je 0x140012be9
cmp qword [rsp + 0x58], 0
jne 0x140012bc4
jmp 0x140012be9
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_DestroyMenu]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
je 0x140012be9
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140022d70
add rsp, 0x258
ret