Function at 0x140105294
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov edx, 0xffffffeb
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 2
je 0x1401053f8
cmp dword [rsp + 0x40], 5
je 0x14010533f
cmp dword [rsp + 0x40], 6
je 0x1401053a2
cmp dword [rsp + 0x40], 0x10
je 0x14010537c
cmp dword [rsp + 0x40], 0x12
je 0x140105409
cmp dword [rsp + 0x40], 0x24
je 0x140105570
cmp dword [rsp + 0x40], 0x111
je 0x1401054c6
cmp dword [rsp + 0x40], 0x401
je 0x14010541b
cmp dword [rsp + 0x40], 0x402
je 0x14010542f
jmp 0x1401055f0
mov rax, qword [rsp + 0x48]
add rax, 0x30
mov rcx, rax
call fcn.140008a8c
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x78]
jmp 0x140105617
lea rcx, [0x140230b80]
call fcn.140015298
movzx eax, al
test eax, eax
je 0x14010539d
xor edx, edx
lea rcx, [0x140230b80]
call fcn.140105890
jmp 0x140105617
lea rcx, [0x140230b80]
call fcn.140015298
movzx eax, al
test eax, eax
jne 0x1401053ba
jmp 0x140105617
mov rax, qword [rsp + 0x108]
and rax, 0xffff
movzx eax, ax
test eax, eax
jne 0x1401053e2
mov edx, 2
lea rcx, [0x140230b80]
call fcn.140105890
jmp 0x1401053f3
mov edx, 1
lea rcx, [0x140230b80]
call fcn.140105890
jmp 0x140105617
mov ecx, dword [0x140230cb8]
call qword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x140105617
mov ecx, dword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rax, qword [rsp + 0x108]
mov qword [0x140230d40], rax
jmp 0x140105617
cmp qword [rsp + 0x110], 0x202
je 0x14010544b
cmp qword [rsp + 0x110], 0x205
jne 0x1401054c1
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x74]
mov r8d, dword [rsp + 0x70]
mov edx, 0x182
mov rcx, qword [0x140230d40]
call qword [sym.imp.USER32.dll_TrackPopupMenu]
mov word [rsp + 0x50], ax
movzx eax, word [rsp + 0x50]
xor r9d, r9d
mov r8d, eax
mov edx, 0x111
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.USER32.dll_SendMessageA]
jmp 0x140105617
cmp qword [rsp + 0x108], 0x3e8
jb 0x14010556b
mov r8d, 0x50
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.14017de80
mov dword [rsp + 0x90], 0x50
mov dword [rsp + 0x94], 0x22
lea r9, [rsp + 0x90]
xor r8d, r8d
mov edx, dword [rsp + 0x108]
mov rcx, qword [0x140230d40]
call qword [sym.imp.USER32.dll_GetMenuItemInfoA]
test eax, eax
je 0x140105564
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140105564
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 0
je 0x140105564
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x80]
xor eax, eax
jmp 0x140105619
jmp 0x140105617
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x48], 0
jne 0x14010558c
xor eax, eax
jmp 0x140105619
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x20], 0
jle 0x1401055c6
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x24], 0
jle 0x1401055c6
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x18], 0
jle 0x1401055ee
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x1c], 0
jle 0x1401055ee
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x18], rax
jmp 0x140105617
mov r9, qword [rsp + 0x110]
mov r8, qword [rsp + 0x108]
mov edx, dword [rsp + 0x100]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.USER32.dll_DefWindowProcA]
jmp 0x140105619
xor eax, eax
add rsp, 0xe8
ret