Function at 0x457a3c
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
mov qword [rsp + 0x140], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r13, r9
mov r14, r8
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x3c], edi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
mov qword [rax - 0x408], rdi
mov qword [rax - 0x400], rdi
call qword [sym.imp.USER32.dll_CreatePopupMenu]
mov qword [rsp + 0x70], rax
mov r9, qword [0x00869c28]
xor edx, edx
mov r8d, 0x448
mov rcx, rax
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, qword [0x0086b938]
xor edx, edx
mov r8d, 0x272b
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, qword [0x00870438]
xor edx, edx
mov r8d, 0x272c
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, qword [0x008765b8]
xor edx, edx
mov r8d, 0x272e
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, qword [0x008776e8]
xor edx, edx
mov r8d, 0x4c1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_AppendMenuW]
xor r9d, r9d
xor r8d, r8d
mov ebx, 0x800
mov edx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, qword [0x00869bd8]
xor edx, edx
mov r8d, 0x27a8
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, qword [0x0087a1b8]
xor edx, edx
mov r8d, 0x27a9
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_AppendMenuW]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r8, qword [rsi + 0x398]
mov rdx, qword [rsi + 0x390]
lea rcx, [rsi + 0x390]
call fcn.004611a8
mov rcx, qword [rsi + 0x710]
mov rax, qword [rcx]
lea rdx, [rsp + 0xf0]
call qword [rax]
mov rcx, qword [rax]
mov eax, dword [rcx + 0x18]
lea r15d, [rdi + 1]
and al, r15b
cmp al, r15b
sete bl
mov rcx, qword [rsp + 0xf0]
cmp rcx, rdi
je 0x457bde
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
add eax, 0xffffffff
jne 0x457bde
cmp rcx, rdi
je 0x457bde
mov rax, qword [rcx]
mov edx, r15d
call qword [rax]
cmp bl, dil
je 0x457e05
mov rbx, qword [0x00862ca0]
mov qword [rsp + 0x110], rbx
mov byte [rsp + 0x118], dil
lea rcx, [rbx + 0xb8]
call fcn.00404198
nop
mov rbx, qword [rbx + 0x68]
mov qword [rsp + 0x138], rbx
cmp rbx, rdi
je 0x457df3
mov r12d, 0x3458
mov r8, qword [rbx + 0x10]
add r8, 0x238
mov rdx, qword [rsi + 0x398]
cmp rdx, qword [rsi + 0x3a0]
je 0x457c60
cmp rdx, rdi
je 0x457c56
mov rax, qword [r8]
mov qword [rdx], rax
cmp rax, rdi
je 0x457c56
lock add dword [rax + 8], r15d
add qword [rsi + 0x398], 8
jmp 0x457c7e
mov byte [rsp + 0x28], r15b
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x490]
lea rcx, [rsi + 0x390]
call fcn.004452d4
lea r8, [0x00798774]
lea rdx, [0x00894dd0]
lea rcx, [rsp + 0x2a0]
call fcn.00402658
nop
mov r8, qword [rbx + 0x10]
add r8, 0x340
mov rdx, rax
lea rcx, [rsp + 0x228]
call fcn.00402448
nop
lea r8, [0x00798770]
mov rdx, rax
lea rcx, [rsp + 0x1f8]
call fcn.00402658
nop
mov rdx, rax
lea rcx, [rsp + 0x320]
call fcn.00401f00
movsxd r8, r12d
mov r9, qword [rax + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_AppendMenuW]
lea r11, [rsp + 0x320]
mov rcx, qword [rsp + 0x368]
cmp rcx, r11
je 0x457d34
cmp rcx, rdi
je 0x457d34
mov rax, qword [rsp + 0x320]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, 0x100
jbe 0x457d2e
call fcn.006a4944
jmp 0x457d34
call fcn.006a3610
nop
lea rax, [rsp + 0x1f8]
mov rcx, qword [rsp + 0x220]
cmp rcx, rax
je 0x457d6f
cmp rcx, rdi
je 0x457d6f
mov rdx, qword [rsp + 0x1f8]
sub rdx, rcx
cmp rdx, 0x100
jbe 0x457d69
call fcn.006a4944
jmp 0x457d6f
call fcn.006a3610
nop
lea rax, [rsp + 0x228]
mov rcx, qword [rsp + 0x250]
cmp rcx, rax
je 0x457daa
cmp rcx, rdi
je 0x457daa
mov rdx, qword [rsp + 0x228]
sub rdx, rcx
cmp rdx, 0x100
jbe 0x457da4
call fcn.006a4944
jmp 0x457daa
call fcn.006a3610
nop
lea rax, [rsp + 0x2a0]
mov rcx, qword [rsp + 0x2c8]
cmp rcx, rax
je 0x457de4
cmp rcx, rdi
je 0x457de4
mov rdx, qword [rsp + 0x2a0]
sub rdx, rcx
cmp rdx, 0x100
jbe 0x457ddf
call fcn.006a4944
jmp 0x457de4
call fcn.006a3610
mov rbx, qword [rbx]
add r12d, r15d
cmp rbx, rdi
jne 0x457c26
lea rcx, [rsp + 0x110]
call fcn.00402b7c
jmp 0x457eac
mov rcx, qword [rsi + 0x710]
mov rax, qword [rcx]
lea rdx, [rsp + 0xc8]
call qword [rax]
nop
mov rdx, qword [rsi + 0x398]
cmp rdx, qword [rsi + 0x3a0]
je 0x457e49
cmp rdx, rdi
je 0x457e3f
mov rax, qword [rax]
mov qword [rdx], rax
cmp rax, rdi
je 0x457e3f
lock add dword [rax + 8], r15d
add qword [rsi + 0x398], 8
jmp 0x457e68
mov byte [rsp + 0x28], r15b
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x3b]
mov r8, rax
lea rcx, [rsi + 0x390]
call fcn.004452d4
nop
mov rcx, qword [rsp + 0xc8]
cmp rcx, rdi
je 0x457e8f
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
add eax, 0xffffffff
jne 0x457e8f
cmp rcx, rdi
je 0x457e8f
mov rax, qword [rcx]
mov edx, r15d
call qword [rax]
mov r9, qword [0x0087dd18]
mov r12d, 0x3458
mov r8, r12
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_AppendMenuW]
lea rbx, [rsi + 0x5c8]
mov rdx, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, rdx
je 0x457ed9
mov rbp, rdx
sub rbp, rdx
je 0x457ed5
mov r8, rbp
mov rcx, rax
call fcn.006a4bf0
add rax, rbp
mov qword [rbx + 8], rax
lea r15, [rsi + 0x508]
cmp r14, qword [r15]
jne 0x4580ba
mov r9d, 2
or r8, 0xffffffffffffffff
mov edx, 0x100c
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r14, rax
cmp eax, 0xffffffff
je 0x458262
movabs r12, 0x1fffffffffffffff
xor edx, edx
lea r8d, [rdx + 0x44]
lea rcx, [rsp + 0x2d4]
call fcn.006aba40
mov dword [rsp + 0x2d4], r14d
mov dword [rsp + 0x2d0], 4
lea r9, [rsp + 0x2d0]
xor r8d, r8d
mov edx, 0x104b
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb rax, rax
and rax, qword [rsp + 0x2f8]
mov qword [rsp + 0x90], rax
je 0x458085
mov rbp, qword [rbx + 8]
cmp rbp, qword [rbx + 0x10]
je 0x457f90
mov qword [rbp], rax
add qword [rbx + 8], 8
lea r15, [rsi + 0x508]
jmp 0x458085
mov qword [rsp + 0xe0], 1
mov rcx, rbp
sub rcx, qword [rbx]
sar rcx, 3
mov qword [rsp + 0xd0], rcx
mov rax, r12
sub rax, rcx
cmp rax, 1
jb 0x4580ad
lea rax, [rsp + 0xd0]
lea rdx, [rsp + 0xe0]
cmp rcx, 1
cmovbe rax, rdx
mov rax, qword [rax]
lea rdx, [rcx + rax]
cmp rdx, r12
ja 0x457fe7
cmp rdx, rcx
jae 0x457fea
mov rdx, r12
mov qword [rsp + 0xb8], rdx
lea r8, [rsp + 0xb8]
lea rcx, [rbx + 0x10]
call fcn.004a124c
mov r12, rax
sub rbp, qword [rbx]
je 0x45801c
mov r8, rbp
mov rdx, qword [rbx]
mov rcx, rax
call fcn.006a4bf0
add rax, rbp
mov rcx, qword [rsp + 0x90]
mov qword [rax], rcx
lea rbp, [rax + 8]
mov rax, qword [rbx + 0x10]
sub rax, qword [rbx]
sar rax, 3
cmp qword [rbx], rdi
je 0x45805d
mov rdx, rax
shl rdx, 3
cmp rdx, 0x100
jbe 0x458055
mov rcx, qword [rbx]
call fcn.006a4944
jmp 0x45805d
mov rcx, qword [rbx]
call fcn.006a3610
mov rax, qword [rsp + 0xb8]
lea rcx, [r12 + rax*8]
mov qword [rbx], r12
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rcx
lea r15, [rsi + 0x508]
movabs r12, 0x1fffffffffffffff
movsxd r8, r14d
mov edx, 0x100c
mov r9d, 2
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r14d, eax
cmp eax, 0xffffffff
je 0x458262
jmp 0x457f17
lea rcx, str.vector
call fcn.006a4230
int3
cmp r14, qword [rsi + 0x4f8]
jne 0x458262
movsx ecx, r13w
mov dword [rsp + 0x40], ecx
mov rax, r13
shr rax, 0x10
movsx edx, ax
mov dword [rsp + 0x44], edx
cmp ecx, 0xffffffff
jne 0x4580fc
cmp edx, ecx
jne 0x4580fc
lea rdx, [rsp + 0x40]
lea rcx, [rsi + 0x4f8]
call fcn.00566b84
jmp 0x45819e
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_ScreenToClient]
xor edx, edx
lea r8d, [rdx + 0x14]
lea rcx, [rsp + 0x124]
call fcn.006aba40
mov r11, qword [rsp + 0x40]
mov qword [rsp + 0x120], r11
lea r9, [rsp + 0x120]
xor r8d, r8d
mov edx, 0x1111
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r12, rax
cmp rax, rdi
je 0x45818c
xor r9d, r9d
mov edx, 0x110a
lea r8d, [r9 + 9]
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp r12, rax
je 0x45818c
mov r9, r12
mov edx, 0x110b
mov r8d, 9
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_ClientToScreen]
xor r9d, r9d
mov edx, 0x110a
lea r8d, [r9 + 9]
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r12, rax
cmp rax, rdi
je 0x458262
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x198]
call fcn.006aba40
mov qword [rsp + 0x198], r12
mov dword [rsp + 0x190], 4
lea r9, [rsp + 0x190]
xor r8d, r8d
mov edx, 0x113e
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb rcx, rcx
and rcx, qword [rsp + 0x1c0]
je 0x458262
mov qword [rsi + 0x720], rcx
lea rax, [rsi + 0x718]
mov qword [rsp + 0x100], rax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x45823f
mov qword [rdx], rax
add qword [rbx + 8], 8
jmp 0x458262
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], 1
lea r9, [rsp + 0x3a]
lea r8, [rsp + 0x100]
mov rcx, rbx
call fcn.005345c0
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
sar rax, 3
cmp rax, rdi
seta r12b
mov rbp, qword [rbx]
cmp rbp, qword [rsi + 0x5d0]
je 0x4582a9
mov rax, qword [rsi + 0x108]
mov rdx, qword [rbp]
lea rcx, [rsi + 0x108]
call qword [rax + reloc.WS2_32.dll_htonl]
neg al
sbb cl, cl
and r12b, cl
add rbp, 8
cmp rbp, qword [rsi + 0x5d0]
jne 0x458280
mov ebp, 3
cmp r12b, dil
jne 0x4582ec
mov r8d, ebp
mov edx, 0x4c1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov r8d, ebp
mov edx, 0x27a8
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov r8d, ebp
mov edx, 0x27a9
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
and rax, 0xfffffffffffffff8
cmp rax, 8
jne 0x458305
mov rax, qword [rbx]
mov rbp, qword [rax]
jmp 0x458308
mov rbp, rdi
mov r14, qword [rsp + 0x4a0]
cmp r14, qword [r15]
jne 0x4588bd
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1032
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
jbe 0x4588bd
movsx eax, r13w
mov dword [rsp + 0x68], eax
shr r13, 0x10
movsx ecx, r13w
mov dword [rsp + 0x6c], ecx
cmp eax, 0xffffffff
jne 0x45836c
cmp ecx, eax
jne 0x45836c
lea rax, [rsi + 0x500]
neg rax
sbb rcx, rcx
and rcx, r15
lea rdx, [rsp + 0x68]
call fcn.00566af0
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x3a8], rax
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jbe 0x4583b4
xor edx, edx
mov r8d, 0x64b
mov rax, qword [rsp + 0x4b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsi + 8]
mov rcx, rsi
call fcn.00457820
nop
jmp 0x458b63
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.USER32.dll_CreatePopupMenu]
mov qword [rsp + 0x48], rax
mov r12b, dil
cmp rbp, rdi
je 0x458420
cmp dword [rbp], edi
jne 0x458414
mov r8, qword [rbp + 8]
add r8, 4
lea rdx, [rsp + 0x270]
mov rcx, qword [0x00862d18]
call fcn.005e108c
mov r14d, 1
mov edx, r14d
mov rcx, qword [rax + 0x28]
cmp rcx, qword [rax + 0x20]
je 0x45842a
mov r13b, r14b
jmp 0x45842d
mov edx, dword [rsp + 0x3c]
mov r14d, 1
jmp 0x45842a
mov edx, dword [rsp + 0x3c]
mov r14d, 1
mov r13b, dil
test r14b, dl
je 0x45846c
lea rax, [rsp + 0x270]
mov rcx, qword [rsp + 0x298]
cmp rcx, rax
je 0x45846c
cmp rcx, rdi
je 0x45846c
mov rdx, qword [rsp + 0x270]
sub rdx, rcx
cmp rdx, 0x100
jbe 0x458467
call fcn.006a4944
jmp 0x45846c
call fcn.006a3610
cmp r13b, dil
je 0x4584c0
mov r9, qword [0x00870078]
xor edx, edx
mov r8d, 0x456
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, qword [0x0087e9e8]
xor edx, edx
mov r8d, 0x64b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AppendMenuW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r12b, r14b
jmp 0x4584f8
cmp rbp, rdi
je 0x4584f8
cmp dword [rbp], r14d
jne 0x4584f8
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x58]
cmp rcx, rdi
je 0x4584f8
cmp dword [rcx + 0x30], 0xffffffff
je 0x4584f8
mov r9, qword [0x00870078]
xor edx, edx
mov r8d, 0x456
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AppendMenuW]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x370]
call fcn.00467f94
nop
mov rcx, qword [rsi + 0x710]
mov rax, qword [rcx]
lea rdx, [rsp + 0xd8]
call qword [rax]
nop
mov rax, qword [rax]
mov ecx, dword [rax + 0x18]
and cl, r14b
cmp cl, r14b
sete r9b
lea rcx, [rsi + 0x108]
mov byte [rsp + 0x20], dil
mov r8, rbx
lea rdx, [rsp + 0x370]
call fcn.004680e8
nop
mov rcx, qword [rsp + 0xd8]
cmp rcx, rdi
je 0x458574
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
add eax, 0xffffffff
jne 0x458574
cmp rcx, rdi
je 0x458574
mov rax, qword [rcx]
mov edx, r14d
call qword [rax]
neg r12b
sbb edx, edx
and edx, 0xfffff0ce
add edx, 0x1388
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_SetMenuDefaultItem]
cmp rbp, rdi
je 0x458660
cmp dword [rbp], r14d
jne 0x4585bc
mov r9, qword [0x0087c4b8]
xor edx, edx
mov r8d, 0x3011
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AppendMenuW]
cmp dword [rbp], edi
jne 0x458660
call fcn.00559640
mov rax, qword [rbp + 8]
lea r8, [rsp + 0x38]
mov rdx, qword [rax + 0x20]
lea rcx, [rsp + 0x160]
call fcn.004021a8
nop
mov rcx, qword [rbp + 8]
add rcx, 4
lea rdx, [rsp + 0x160]
call fcn.005596d0
nop
lea rax, [rsp + 0x160]
mov rcx, qword [rsp + 0x188]
cmp rcx, rax
je 0x458635
cmp rcx, rdi
je 0x458635
mov rdx, qword [rsp + 0x160]
sub rdx, rcx
cmp rdx, 0x100
jbe 0x458630
call fcn.006a4944
jmp 0x458635
call fcn.006a3610
call fcn.00559690
mov r11, qword [rbp + 8]
cmp byte [r11 + 0x40], dil
je 0x458677
mov r9, qword [0x0086bed8]
xor edx, edx
mov r8d, 0x464
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x458677
mov r8d, 3
mov edx, dword [0x00867cf0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [rsi + 0x710]
mov rax, qword [rcx]
lea rdx, [rsp + 0x108]
call qword [rax]
mov rcx, qword [rax]
mov eax, dword [rcx + 0x18]
and al, r14b
cmp al, r14b
setne bl
mov rcx, qword [rsp + 0x108]
cmp rcx, rdi
je 0x4586c1
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
add eax, 0xffffffff
jne 0x4586c1
cmp rcx, rdi
je 0x4586c1
mov rax, qword [rcx]
mov edx, r14d
call qword [rax]
cmp bl, dil
je 0x458794
mov rcx, qword [rsi + 0x710]
mov rax, qword [rcx]
lea rdx, [rsp + 0xe8]
call qword [rax]
nop
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rax]
call fcn.00415ee0
nop
lea r9, [rsp + 0x39]
mov r8, rax
mov rdx, r14
lea rcx, [rsp + 0x258]
call fcn.00461110
nop
lea rcx, [rsi + 0x258]
mov r9, rax
mov r8d, 8
lea rdx, [rsp + 0x48]
call fcn.00461a94
nop
lea rcx, [rsp + 0x258]
call fcn.00401d58
nop
lea rax, [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1f0]
cmp rcx, rax
je 0x45876d
cmp rcx, rdi
je 0x45876d
mov rdx, qword [rsp + 0x1c8]
sub rdx, rcx
cmp rdx, 0x100
jbe 0x458767
call fcn.006a4944
jmp 0x45876d
call fcn.006a3610
nop
mov rcx, qword [rsp + 0xe8]
cmp rcx, rdi
je 0x458794
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
add eax, 0xffffffff
jne 0x458794
cmp rcx, rdi
je 0x458794
mov rax, qword [rcx]
mov edx, r14d
call qword [rax]
mov r8d, dword [rsp + 0x70]
mov r9, qword [0x00869908]
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AppendMenuW]
lea rcx, [rsp + 0x48]
call fcn.00568d58
mov qword [rsp + 0x28], rdi
mov rax, qword [rsi + 8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x6c]
mov r8d, dword [rsp + 0x68]
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.00406524
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebx, eax
sub ebx, r14d
mov ebp, 0x400
mov r8d, ebp
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.004d656c
mov r8d, ebp
mov edx, ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_RemoveMenu]
mov rcx, qword [rsi + 0x710]
mov rax, qword [rcx]
lea rdx, [rsp + 0xf8]
call qword [rax]
mov rcx, qword [rax]
mov eax, dword [rcx + 0x18]
and al, r14b
cmp al, r14b
setne bl
mov rcx, qword [rsp + 0xf8]
cmp rcx, rdi
je 0x45885f
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
add eax, 0xffffffff
jne 0x45885f
cmp rcx, rdi
je 0x45885f
mov rax, qword [rcx]
mov edx, r14d
call qword [rax]
cmp bl, dil
je 0x45889c
cmp dword [rsi + 0x274], edi
jle 0x45889c
mov ebx, dword [rsi + 0x270]
mov r8d, ebp
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.004d656c
mov r8d, ebp
mov edx, ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_DeleteMenu]
add edi, r14d
cmp edi, dword [rsi + 0x274]
jl 0x45886c
lea rcx, [rsp + 0x370]
call fcn.00467ffc
nop
lea rcx, [rsp + 0x48]
call fcn.004d6330
nop
mov rdi, r14
jmp 0x458b63
cmp r14, qword [rsi + 0x4f8]
jne 0x458b72
xor r9d, r9d
lea r14d, [r9 + 9]
mov r8, r14
mov r15d, 0x110a
mov edx, r15d
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, rdi
je 0x458b72
movsx eax, r13w
mov dword [rsp + 0x30], eax
shr r13, 0x10
movsx ecx, r13w
mov dword [rsp + 0x34], ecx
cmp eax, 0xffffffff
jne 0x458926
cmp ecx, eax
jne 0x458926
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 0x4f8]
call fcn.00566b84
jmp 0x4589c2
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_ScreenToClient]
xor edx, edx
lea r8d, [rdx + 0x14]
lea rcx, [rsp + 0x14c]
call fcn.006aba40
mov r11, qword [rsp + 0x30]
mov qword [rsp + 0x148], r11
lea r9, [rsp + 0x148]
xor r8d, r8d
mov edx, 0x1111
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r13, rax
cmp rax, rdi
je 0x4589b0
xor r9d, r9d
mov r8, r14
mov edx, r15d
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp r13, rax
je 0x4589b0
mov r9, r13
mov r8, r14
mov edx, 0x110b
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 0x4f8]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], rdi
call qword [sym.imp.USER32.dll_CreatePopupMenu]
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x3e0]
call fcn.00467f94
nop
mov rcx, qword [rsi + 0x710]
mov rax, qword [rcx]
lea rdx, [rsp + 0xc0]
call qword [rax]
nop
mov rax, qword [rax]
mov ecx, dword [rax + 0x18]
mov r12d, 1
and cl, r12b
cmp cl, r12b
sete r9b
lea rcx, [rsi + 0x108]
mov byte [rsp + 0x20], r12b
mov r8, rbx
lea rdx, [rsp + 0x3e0]
call fcn.004680e8
nop
mov rcx, qword [rsp + 0xc0]
cmp rcx, rdi
je 0x458a75
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
add eax, 0xffffffff
jne 0x458a75
cmp rcx, rdi
je 0x458a75
mov rax, qword [rcx]
mov edx, r12d
call qword [rax]
mov rax, qword [rsi + 0x350]
cmp rax, qword [rsi + 0x348]
jne 0x458aa2
mov r9, qword [0x0087e628]
xor edx, edx
mov r8d, 0x8ca
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USER32.dll_AppendMenuW]
cmp rbp, rdi
je 0x458add
cmp dword [rbp], r12d
jne 0x458add
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x58]
cmp rcx, rdi
je 0x458add
cmp dword [rcx + 0x30], 0xffffffff
je 0x458add
mov r9, qword [0x00870078]
xor edx, edx
mov r8d, 0x456
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, qword [0x0087c4b8]
xor edx, edx
mov r8d, 0x3012
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r8d, dword [rsp + 0x70]
mov r9, qword [0x00869908]
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov qword [rsp + 0x28], rdi
mov rax, qword [rsi + 8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov edx, 2
lea rcx, [rsp + 0x98]
call fcn.00406524
nop
lea rcx, [rsp + 0x3e0]
call fcn.00467ffc
nop
lea rcx, [rsp + 0x98]
call fcn.004d6330
nop
mov rdi, r12
lea rcx, [rsp + 0x70]
call fcn.004d6330
mov rax, rdi
jmp 0x458b88
mov rax, qword [rsp + 0x4b0]
mov dword [rax], edi
lea rcx, [rsp + 0x70]
call fcn.004d6330
xor eax, eax
mov rbx, qword [rsp + 0x498]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret