Function at 0x14004ef40
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov qword [rsp + 0x128], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r15, r8
mov r13, rdx
mov r12, rcx
xor r14d, r14d
or rax, 0xffffffffffffffff
mov dword [rsp + 0x48], eax
mov rcx, qword [rcx + 0x10]
cmp rcx, r14
je 0x14004fb5f
call qword [sym.imp.USER32.dll_ClientToScreen]
lea rdx, [r13 + 8]
mov rcx, qword [r12 + 0x10]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x6c], r14d
mov ebp, dword [r15 + 0x28]
mov dword [rsp + 0x68], ebp
mov edi, r14d
mov esi, r14d
mov dword [rsp + 0x88], r14d
mov ebx, r14d
cmp ebp, r14d
jbe 0x14004f004
mov edx, ebx
mov rcx, r15
call fcn.14005149c
cmp rax, r14
je 0x14004eff7
cmp dword [rax + 8], 0xffffffff
jne 0x14004eff7
inc edi
mov edx, ebx
mov rcx, r15
call fcn.1400522e0
cmp eax, r14d
jle 0x14004eff7
inc esi
inc ebx
cmp ebx, ebp
jb 0x14004efcf
mov dword [rsp + 0x88], esi
lea ebx, [rdi + 2]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x78], r14
and qword [rsp + 0x60], r14
and qword [rsp + 0x98], r14
call qword [sym.imp.USER32.dll_CreatePopupMenu]
mov qword [rsp + 0xb0], rax
test rax, rax
jne 0x14004f042
mov edi, 0x8007000e
mov ebx, edi
or rbp, 0xffffffffffffffff
jmp 0x14004f076
mov qword [r12 + 0x28], rax
or rbp, 0xffffffffffffffff
mov dword [r12 + 0x30], ebp
movsxd rax, ebx
lea rcx, [rax + rax*4]
shl rcx, 4
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r14, rax
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov edi, 0x8007000e
test rax, rax
cmove ebx, edi
test esi, esi
jle 0x14004f0f8
test ebx, ebx
js 0x14004f935
movsxd rsi, esi
mov eax, 8
mul rsi
cmovo rax, rbp
mov rcx, rax
call fcn.1400eb808
mov rdx, rax
mov qword [rsp + 0x50], rax
test rax, rax
cmove ebx, edi
test ebx, ebx
js 0x14004f947
mov eax, 8
mul rsi
cmovo rax, rbp
mov rcx, rax
call fcn.1400eb808
mov qword [rsp + 0x60], rax
test rax, rax
cmove ebx, edi
test ebx, ebx
js 0x14004f98a
mov eax, 4
mul rsi
cmovo rax, rbp
mov rcx, rax
call fcn.1400eb808
mov qword [rsp + 0x98], rax
test rax, rax
cmove ebx, edi
test ebx, ebx
js 0x14004f954
mov esi, 0x30
mov rcx, rsi
call fcn.1400eb7c8
mov rbp, rax
mov qword [rsp + 0xc0], rax
test rax, rax
je 0x14004f13a
xor eax, eax
mov qword [rbp], rax
mov qword [rbp + 8], rax
and qword [rbp + 0x10], rax
and qword [rbp + 0x18], rax
and dword [rbp + 0x20], eax
and dword [rbp + 0x24], eax
and dword [rbp + 0x28], eax
jmp 0x14004f144
xor ebp, ebp
mov qword [rsp + 0xc0], rbp
test rbp, rbp
cmove ebx, edi
test ebx, ebx
js 0x14004f966
mov rcx, rsi
call fcn.1400eb7c8
mov rsi, rax
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x14004f186
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
and qword [rsi + 0x10], rax
and qword [rsi + 0x18], rax
and dword [rsi + 0x20], eax
and dword [rsi + 0x24], eax
and dword [rsi + 0x28], eax
jmp 0x14004f190
xor esi, esi
mov qword [rsp + 0xb8], rsi
test rsi, rsi
cmove ebx, edi
test ebx, ebx
js 0x14004f978
or dword [rsp + 0x58], 0xffffffff
and dword [rsp + 0x30], 0
cmp dword [rsp + 0x68], 0
jbe 0x14004f626
mov qword [rsp + 0x90], 0x3e8
mov rax, qword [rsp + 0x60]
lea rbx, [rax - 8]
mov rcx, qword [rsp + 0x98]
add rcx, 0xfffffffffffffffc
mov qword [rsp + 0x70], rcx
lea rcx, [r14 - 0x4c]
mov qword [rsp + 0xa8], rcx
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov qword [rsp + 0x80], rcx
mov r13d, dword [rsp + 0x30]
mov rsi, qword [rsp + 0x78]
mov ebp, dword [rsp + 0x58]
mov edx, r13d
mov rcx, r15
call fcn.14005149c
test rax, rax
je 0x14004f5f3
or rcx, 0xffffffffffffffff
cmp dword [rax + 8], ecx
jg 0x14004f5f3
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14004fb80
mov r14d, eax
test eax, eax
js 0x14004f5f3
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14004f5f3
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0xe0]
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xf8], rax
lea rdx, [rsp + 0xe0]
mov rcx, r12
call fcn.14004fca4
mov r11d, dword [rsp + 0xec]
mov eax, dword [rsp + 0x4c]
cmp eax, r11d
cmovg r11d, eax
mov dword [rsp + 0x4c], r11d
mov eax, dword [rsp + 0x6c]
add eax, dword [rsp + 0xf0]
mov dword [rsp + 0x6c], eax
inc ebp
mov dword [rsp + 0x58], ebp
add qword [rsp + 0xa8], 0x50
movsxd rax, ebp
lea rax, [rax + rax*4]
shl rax, 4
add rax, rsi
mov qword [rsp + 0xc8], rax
xor edx, edx
lea r8d, [rdx + 0x50]
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0xa8]
mov dword [rcx - 4], 0x50
and dword [rcx + 8], 0
mov dword [rcx], 0x125
mov dword [rcx + 4], 0x100
mov rax, qword [rsp + 0x40]
mov qword [rcx + 0x2c], rax
mov edx, r13d
mov rcx, r15
call fcn.1400522e0
mov dword [rsp + 0x30], eax
test eax, eax
jle 0x14004f5bc
add qword [rsp + 0x70], 4
add rbx, 8
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.USER32.dll_CreatePopupMenu]
mov rcx, qword [rsp + 0x80]
mov qword [rcx + rbx], rax
test rax, rax
cmove r14d, edi
test r14d, r14d
js 0x14004f5bc
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x34], eax
cdqe
lea rcx, [rax + rax*4]
shl rcx, 4
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rbx], rax
test rax, rax
cmove r14d, edi
test r14d, r14d
js 0x14004f5bc
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + rbx]
mov rcx, qword [rsp + 0xa8]
mov qword [rcx + 0x14], rax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x70]
mov dword [rcx], eax
and dword [rsp + 0x34], 0
and qword [rsp + 0xd0], 0
xor edx, edx
lea r8d, [rdx + 0x50]
mov rcx, qword [rbx]
call sub.msvcrt.dll_memset
mov r11, qword [rbx]
mov dword [r11], 0x50
mov rax, qword [rbx]
and dword [rax + 0xc], 0
mov rax, qword [rbx]
mov dword [rax + 4], 0x121
mov rax, qword [rbx]
mov dword [rax + 8], 0x100
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x30], rcx
xor r9d, r9d
mov r8, qword [rsp + 0x90]
xor edx, edx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + rbx]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, qword [rbx]
xor edx, edx
lea r8d, [rdx + 1]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + rbx]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
and dword [rsp + 0x40], 0
movsxd rax, dword [rsp + 0x30]
test eax, eax
jle 0x14004f5bc
mov qword [rsp + 0xd8], rax
xor ebp, ebp
mov rsi, qword [rsp + 0x80]
mov r12d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0xd0]
and qword [rsp + 0x40], 0
cmp r13d, dword [r15 + 0x28]
jl 0x14004f466
xor eax, eax
jmp 0x14004f4b6
mov edx, r13d
mov rcx, r15
call fcn.14005149c
test rax, rax
je 0x14004f4b6
mov eax, r12d
mov dword [rsp + 0x30], eax
cmp r12d, dword [r15 + 0x28]
jae 0x14004f4b4
mov edx, eax
mov rcx, r15
call fcn.14005149c
test rax, rax
je 0x14004f498
cmp dword [rax + 8], r13d
je 0x14004f4aa
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp eax, dword [r15 + 0x28]
jae 0x14004f4b4
jmp 0x14004f483
mov r12d, dword [rsp + 0x30]
inc r12d
jmp 0x14004f4b6
xor eax, eax
test r14d, r14d
js 0x14004f598
test rax, rax
je 0x14004f4df
inc dword [rsp + 0x34]
inc rdi
add rbp, 0x50
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14004fb80
mov r14d, eax
test r14d, r14d
js 0x14004f598
cmp qword [rsp + 0x40], 0
je 0x14004f598
movsxd rax, dword [rsp + 0x34]
lea rbx, [rax + rax*4]
add rbx, rbx
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
lea rcx, [rax + rbx*8]
xor edx, edx
lea r8d, [rdx + 0x50]
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0xa0]
mov r11, qword [rcx]
mov dword [r11 + rbp], 0x50
mov rax, qword [rcx]
and dword [rax + rbp + 0xc], 0
mov rax, qword [rcx]
mov dword [rax + rbp + 4], 0x121
mov rax, qword [rcx]
mov dword [rax + rbp + 8], 0x100
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x40]
mov qword [rax + rbp + 0x30], rdx
lea eax, [r12 + 0x3e7]
movsxd r8, eax
xor r9d, r9d
xor edx, edx
mov rcx, qword [rsi + rcx]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov rax, qword [rsp + 0xa0]
mov r11, qword [rax]
lea r9, [r11 + rbx*8]
mov r8d, 1
mov edx, dword [rsp + 0x34]
mov rbx, rax
mov rcx, qword [rsi + rax]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
cmp rdi, qword [rsp + 0xd8]
jl 0x14004f456
mov r12, qword [rsp + 0x170]
mov edi, 0x8007000e
mov rsi, qword [rsp + 0x78]
mov ebp, dword [rsp + 0x58]
xor r9d, r9d
mov r8, qword [rsp + 0x90]
xor edx, edx
mov r14, qword [rsp + 0xb0]
mov rcx, r14
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, qword [rsp + 0xc8]
mov r8d, 1
mov edx, ebp
mov rcx, r14
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
inc r13d
inc qword [rsp + 0x90]
cmp r13d, dword [rsp + 0x68]
jb 0x14004f203
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xc0]
mov r13, qword [rsp + 0x178]
mov r14, qword [rsp + 0x78]
mov dword [rbp + 0x20], 2
movsxd rdi, dword [rsp + 0x38]
lea eax, [rdi - 2]
movsxd rcx, eax
lea rbx, [rcx + rcx*4]
shl rbx, 4
add rbx, r14
mov r15d, 0x50
mov r8, r15
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
lea rax, [rdi + rdi*4 - 0xa]
add rax, rax
mov dword [r14 + rax*8], r15d
and dword [r14 + rax*8 + 0xc], 0
mov dword [r14 + rax*8 + 4], 0x900
mov dword [r14 + rax*8 + 8], 0x100
mov qword [r14 + rax*8 + 0x30], rbp
mov r15d, dword [rsp + 0x68]
lea r8d, [r15 + 0x3e9]
xor r9d, r9d
xor edx, edx
mov rbp, qword [rsp + 0xb0]
mov rcx, rbp
call qword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [rsp + 0x38]
add edx, 0xfffffffe
mov r9, rbx
mov r8d, 1
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
and qword [rsp + 0x70], 0
mov edx, 0x75a3
lea rcx, [rsp + 0x70]
call fcn.140021580
and dword [rsi + 0x20], 0
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call fcn.140050cbc
mov eax, dword [rsp + 0x38]
dec eax
cdqe
lea rbx, [rax + rax*4]
shl rbx, 4
add rbx, r14
xor edx, edx
lea r8d, [rdx + 0x50]
mov rcx, rbx
call sub.msvcrt.dll_memset
lea r11, [rdi + rdi*4]
add r11, r11
mov dword [r14 + r11*8 - 0x50], 0x50
and dword [r14 + r11*8 - 0x44], 0
mov dword [r14 + r11*8 - 0x4c], 0x121
mov dword [r14 + r11*8 - 0x48], 0x100
mov qword [r14 + r11*8 - 0x20], rsi
lea r8d, [r15 + 0x3ea]
xor r9d, r9d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [rsp + 0x38]
dec edx
mov r9, rbx
mov r8d, 1
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
call fcn.14003b5c8
cmp byte [0x140110730], 0
je 0x14004f76e
test al, al
sete al
xor edi, edi
neg al
sbb ebx, ebx
lea r14d, [rdi + 8]
and ebx, r14d
mov eax, dword [rsp + 0x188]
test eax, eax
cmovne ebx, eax
lea esi, [rdi + 0x28]
mov r8, rsi
xor edx, edx
lea rcx, [rsp + 0x100]
call sub.msvcrt.dll_memset
lea edx, [rdi + 2]
mov rcx, r13
call qword [sym.imp.USER32.dll_MonitorFromRect]
test rax, rax
je 0x14004f813
mov dword [rsp + 0x100], esi
lea rdx, [rsp + 0x100]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x14004f813
cmp ebx, r14d
jne 0x14004f7e5
mov eax, dword [r13 + 8]
mov ecx, dword [rsp + 0x4c]
sub eax, ecx
cmp eax, dword [rsp + 0x104]
jge 0x14004f7fc
xor ebx, ebx
jmp 0x14004f7fc
test ebx, ebx
jne 0x14004f7fc
mov ecx, dword [rsp + 0x4c]
add ecx, dword [r13]
cmp ecx, dword [rsp + 0x10c]
cmovg ebx, r14d
mov ecx, dword [rsp + 0x6c]
add ecx, dword [r13 + 0xc]
cmp ecx, dword [rsp + 0x110]
mov eax, 0x20
cmovg edi, eax
cmp ebx, r14d
jne 0x14004f825
mov eax, dword [r13 + 8]
mov dword [rsp + 0x170], eax
jmp 0x14004f84a
test ebx, ebx
jne 0x14004f836
mov eax, dword [r13]
mov dword [rsp + 0x170], eax
jmp 0x14004f84a
mov eax, dword [r13]
add eax, dword [r13 + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x170], eax
test edi, edi
jne 0x14004f85b
mov eax, dword [r13 + 0xc]
mov dword [rsp + 0x174], eax
jmp 0x14004f866
mov eax, dword [r13 + 4]
mov dword [rsp + 0x174], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [r12 + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
xor r8d, r8d
lea rdx, [0x140050bc8]
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov rsi, rax
test rax, rax
je 0x14004f91e
mov dword [r12 + 0xc], 1
mov qword [0x140110828], r12
or ebx, edi
or ebx, 0x1c0
mov qword [rsp + 0x20], r13
mov r9, qword [r12 + 0x10]
lea r8, [rsp + 0x170]
mov edx, ebx
mov rcx, rbp
call fcn.140017728
mov ebx, eax
mov dword [rsp + 0x48], eax
mov rcx, rsi
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [r12 + 0xc], 0
lea ecx, [rbx - 0x3e8]
test ecx, ecx
jns 0x14004f91e
mov ecx, dword [r12 + 0x30]
test ecx, ecx
js 0x14004f91e
mov edx, dword [rsp + 0x58]
cmp ecx, edx
jg 0x14004f909
lea ebx, [rcx + 0x3e8]
mov dword [rsp + 0x48], ebx
jmp 0x14004f91e
lea eax, [rdx + 2]
cmp ecx, eax
jg 0x14004f91e
sub ecx, edx
lea eax, [rcx + r15 + 0x3e8]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
jmp 0x14004f995
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov r14d, 8
jmp 0x14004f995
mov rax, qword [rsp + 0x60]
mov r14d, 8
jmp 0x14004f995
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov r14d, 8
jmp 0x14004f995
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov r14d, 8
jmp 0x14004f995
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov r14d, 8
jmp 0x14004f995
mov rdx, qword [rsp + 0x50]
mov r14d, 8
movsxd rcx, dword [rsp + 0x88]
test ecx, ecx
jle 0x14004fa77
mov r15, rcx
mov rbx, rax
mov rbp, qword [rsp + 0x98]
mov r13, rdx
sub r13, rax
cmp qword [rbx], 0
je 0x14004fa66
mov r14d, 1
cmp dword [rbp], r14d
jle 0x14004fa2a
lea esi, [r14 + 0x4f]
mov rax, qword [rbx]
mov rdi, qword [rsi + rax + 0x30]
test rdi, rdi
je 0x14004fa14
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14004f9f4
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [rdi + 0x10], 0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14004fa08
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [rdi + 0x18], 0
and dword [rdi + 0x20], 0
mov rcx, rdi
call fcn.1400eb814
mov rax, qword [rbx]
and qword [rsi + rax + 0x30], 0
inc r14d
add rsi, 0x50
cmp r14d, dword [rbp]
jl 0x14004f9d3
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004fa38
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx], 0
mov rcx, qword [rbx + r13]
test rcx, rcx
je 0x14004fa60
xor edx, edx
mov r8d, 0x400
call qword [sym.imp.USER32.dll_DeleteMenu]
and qword [rbx + r13], 0
mov r14d, 8
jmp 0x14004fa66
mov r14d, 8
add rbp, 4
add rbx, r14
sub r15, 1
jne 0x14004f9b9
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14004fa89
mov rcx, rax
call fcn.1400eb814
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14004fa9b
mov rcx, rax
call fcn.1400eb814
movsxd rax, dword [rsp + 0x38]
test eax, eax
jle 0x14004fb01
mov rsi, rax
mov rbp, qword [rsp + 0x78]
lea rdi, [rbp + 0x30]
test rbp, rbp
je 0x14004faf5
mov rbx, qword [rdi]
test rbx, rbx
je 0x14004faf5
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004fad1
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [rbx + 0x10], 0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004fae5
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [rbx + 0x18], 0
and dword [rbx + 0x20], 0
mov rcx, rbx
call fcn.1400eb814
and qword [rdi], 0
add rdi, 0x50
sub rsi, 1
jne 0x14004fab0
jmp 0x14004fb06
mov rbp, qword [rsp + 0x78]
test rbp, rbp
je 0x14004fb14
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x14004fb41
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.USER32.dll_DeleteMenu]
and qword [r12 + 0x28], 0
or rax, 0xffffffffffffffff
mov dword [r12 + 0x30], eax
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x14004fb56
mov rcx, rax
call fcn.1400eb814
mov eax, dword [rsp + 0x48]
add eax, 0xfffffc18
mov rbx, qword [rsp + 0x180]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret