Function at 0x140005b60
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rbp + 0x148], rax
cmp byte [0x14007e0c8], 0
je 0x140005bb4
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov byte [0x14007e0c8], 0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xd
sub r8d, ecx
movsxd rdx, r8d
add rdx, 0x10
lea rcx, [rbp + 0x10]
call fcn.140004540
mov rdi, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140005bf2
mov rdi, qword [rax]
movabs rdx, 0x8abb47ff31441a19
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x130], xmm0
mov qword [rbp + 0x140], rax
xor ebx, ebx
mov r8d, ebx
lea rcx, [rbp + 0x130]
call fcn.1400072d0
nop
mov rax, qword [rbp + 0x138]
test rax, rax
je 0x140005c33
mov rcx, rdi
call rax
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140005c71
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140039a10
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x140005a10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [rbp + 0xa0], 0x50
mov dword [rbp + 0xa4], 0x40
lea rax, [0x140001ea0]
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0xb8], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xc0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xd0], xmm1
lea rsi, str.GTA5RP_UTILS
mov qword [rbp + 0xe0], rsi
mov qword [rbp + 0xe8], rbx
lea rcx, [rbp + 0xa0]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov qword [rsp + 0x58], rbx
mov rcx, qword [rbp + 0xb8]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9d, 0x80000000
mov r8, rsi
mov rdx, qword [rbp + 0xe0]
mov ecx, 8
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov r14, rax
mov r9d, 2
mov r8b, 0xff
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x140077ae0]
movdqu xmmword [rbp + 0x120], xmm0
lea rdx, [rbp + 0x120]
mov rcx, r14
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov qword [rbp + 0x24], rbx
mov qword [rbp + 0x38], 2
mov qword [rbp + 0x50], 2
mov qword [rbp + 0x10], rbx
mov dword [rbp + 0x20], 0x1c
mov dword [rbp + 0x18], 0x3c
mov dword [rbp + 0x1c], 1
mov dword [rbp + 0x34], 0x20
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x2c], 1
mov qword [rbp + 0x48], 1
mov dword [rbp + 0x130], 0xb000
mov dword [rbp + 0x134], 0xa000
lea rdi, [0x14007ea40]
mov qword [rsp + 0x58], rdi
lea rax, [rbp + 8]
mov qword [rsp + 0x50], rax
lea rsi, [0x14007ea38]
mov qword [rsp + 0x48], rsi
lea r15, [0x14007ea30]
mov qword [rsp + 0x40], r15
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x130]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
cmp eax, 0x887a0004
jne 0x140005ea8
mov qword [rsp + 0x58], rdi
lea rax, [rbp + 8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r15
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x130]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 5
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
jne 0x140006666
mov rcx, qword [0x14007ea30]
mov rax, qword [rcx]
lea r9, [rbp]
lea r8, [0x14003ca70]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x14007ea38]
mov rax, qword [rcx]
lea r9, [0x14007ea28]
xor r8d, r8d
mov rdx, qword [rbp]
call qword [rax + 0x48]
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, 0xa
mov rcx, r14
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, r14
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x14007e978]
test rax, rax
je 0x140005f18
inc dword [rax + 0x3b4]
mov ecx, 0x3ee8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp], rax
lea rcx, [rsp + 0x60]
mov qword [rbp + 0x130], rcx
mov qword [rbp + 8], rax
test rax, rax
je 0x140005f48
xor edx, edx
mov rcx, rax
call fcn.1400085a0
jmp 0x140005f4b
mov rax, rbx
cmp qword [0x14007e978], 0
jne 0x140005f5c
mov qword [0x14007e978], rax
mov rcx, rax
call fcn.14000e1d0
mov r15, qword [0x14007e978]
or dword [r15 + 8], 3
call fcn.140003b40
lea rcx, [0x14007eb00]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140006103
lea rcx, [0x14007eaf8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140006103
mov qword [0x14007eaf0], r14
mov rax, qword [0x14007e978]
or dword [rax + 0xc], 6
lea rcx, [0x140077708]
mov qword [rax + 0xd8], rcx
mov qword [rax + 0x120], r14
mov dword [rax + 0x3c], 9
mov dword [rax + 0x40], 0x25
mov dword [rax + 0x44], 0x27
mov dword [rax + 0x48], 0x26
mov dword [rax + 0x4c], 0x28
mov dword [rax + 0x50], 0x21
mov dword [rax + 0x54], 0x22
mov dword [rax + 0x58], 0x24
mov dword [rax + 0x5c], 0x23
mov dword [rax + 0x60], 0x2d
mov dword [rax + 0x64], 0x2e
mov dword [rax + 0x68], 8
mov dword [rax + 0x6c], 0x20
mov dword [rax + 0x70], 0xd
mov dword [rax + 0x74], 0x1b
mov dword [rax + 0x78], 0xd
mov dword [rax + 0x7c], 0x41
mov dword [rax + 0x80], 0x43
mov dword [rax + 0x84], 0x56
mov dword [rax + 0x88], 0x58
mov dword [rax + 0x8c], 0x59
mov dword [rax + 0x90], 0x5a
lea rax, str.xinput1_4.dll
mov qword [rbp + 0x10], rax
lea rax, str.xinput1_3.dll
mov qword [rbp + 0x18], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 0x20], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0x28], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0x30], rax
mov rdi, rbx
nop dword [rax]
mov rcx, qword [rbp + rdi*8 + 0x10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x1400060ce
inc rdi
cmp rdi, 5
jl 0x1400060b0
jmp 0x140006103
mov qword [0x14007ead8], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007eae0], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007eae8], rax
mov rsi, qword [0x14007ea40]
mov rdi, qword [0x14007ea38]
mov rax, qword [0x14007e978]
lea rcx, str.imgui_impl_dx11
mov qword [rax + 0xe0], rcx
or dword [rax + 0xc], 8
mov qword [rbp + 0x130], rbx
mov qword [rbp + 8], rbx
mov qword [rbp], rbx
mov rax, qword [rdi]
lea r8, [rbp + 0x130]
lea rdx, [0x1400776d8]
mov rcx, rdi
call qword [rax]
test eax, eax
jne 0x1400061a1
mov rcx, qword [rbp + 0x130]
mov rax, qword [rcx]
lea r8, [rbp + 8]
lea rdx, [0x1400776e8]
call qword [rax + 0x30]
test eax, eax
jne 0x1400061a1
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
lea r8, [rbp]
lea rdx, [0x1400776f8]
call qword [rax + 0x30]
test eax, eax
jne 0x1400061a1
mov qword [0x14007eaa8], rdi
mov qword [0x14007eac8], rsi
mov rax, qword [rbp]
mov qword [0x14007eab0], rax
mov rcx, qword [rbp + 0x130]
test rcx, rcx
je 0x1400061b3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x1400061c2
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x14007eaa8]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x14007eac8]
mov rax, qword [rcx]
call qword [rax + 8]
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp + 0x10], xmm2
movups xmmword [rbp + 0x20], xmm2
movups xmmword [rbp + 0x50], xmm2
movups xmmword [rbp + 0x60], xmm2
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x28], 3
mov dword [rbp + 0x2c], 1
mov dword [rbp + 0x54], 0x7f7fffff
mov dword [rbp + 0x60], 0x3f800000
mov edi, 0xffff
mov word [rbp + 0x64], di
mov byte [rbp + 0x1c], al
movaps xmm0, xmmword [rbp + 0x10]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [rbp + 0x20]
movaps xmmword [rbp - 0x80], xmm1
movaps xmmword [rbp - 0x70], xmm2
movaps xmmword [rbp - 0x60], xmm2
movaps xmm0, xmmword [rbp + 0x50]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [rbp + 0x60]
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x30], xmm2
movaps xmmword [rbp - 0x20], xmm2
movsd xmm0, qword [rbp + 0x90]
movsd qword [rbp - 0x10], xmm0
lea rax, [0x14003ca80]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x4c24
mov dword [rbp - 0x7c], 0x41600000
lea rdx, [rsp + 0x70]
mov rcx, qword [r15 + 0xa8]
call fcn.140027f80
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp + 0x10], xmm2
movups xmmword [rbp + 0x20], xmm2
movups xmmword [rbp + 0x30], xmm2
movups xmmword [rbp + 0x50], xmm2
movups xmmword [rbp + 0x60], xmm2
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x28], 3
mov dword [rbp + 0x2c], 1
mov dword [rbp + 0x54], 0x7f7fffff
mov dword [rbp + 0x60], 0x3f800000
mov word [rbp + 0x64], di
mov byte [rbp + 0x58], 1
mov byte [rbp + 0x30], 1
mov byte [rbp + 0x1c], al
mov rax, qword [0x14007e978]
movaps xmm0, xmmword [rbp + 0x10]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [rbp + 0x20]
movaps xmmword [rbp - 0x80], xmm1
movaps xmm0, xmmword [rbp + 0x30]
movaps xmmword [rbp - 0x70], xmm0
movaps xmmword [rbp - 0x60], xmm2
movaps xmm0, xmmword [rbp + 0x50]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [rbp + 0x60]
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x30], xmm2
movaps xmmword [rbp - 0x20], xmm2
movsd xmm0, qword [rbp + 0x90]
movsd qword [rbp - 0x10], xmm0
lea rcx, [0x1400416b0]
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], 0x317f8
mov dword [rbp - 0x7c], 0x41800000
lea rcx, [0x140076f70]
mov qword [rbp - 0x58], rcx
lea rdx, [rsp + 0x70]
mov rcx, qword [rax + 0xa8]
call fcn.140027f80
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
nop dword [rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xf0]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1400063b0
lea rcx, [rbp + 0xf0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0xf0]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x140006548
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400063cd
cmp byte [0x14007e0d0], 0
sete byte [0x14007e0d0]
mov r8d, dword [0x14007e988]
test r8d, r8d
je 0x140006476
mov r9d, dword [0x14007e9d8]
test r9d, r9d
je 0x140006476
mov rcx, qword [0x14007ea28]
test rcx, rcx
je 0x140006414
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14007ea28], rbx
mov r8d, dword [0x14007e988]
mov r9d, dword [0x14007e9d8]
mov rcx, qword [0x14007ea30]
mov rax, qword [rcx]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor edx, edx
call qword [rax + 0x68]
mov dword [0x14007e9d8], ebx
mov dword [0x14007e988], ebx
mov rcx, qword [0x14007ea30]
mov rax, qword [rcx]
lea r9, [rbp]
lea r8, [0x14003ca70]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x14007ea38]
mov rax, qword [rcx]
lea r9, [0x14007ea28]
xor r8d, r8d
mov rdx, qword [rbp]
call qword [rax + 0x48]
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp qword [0x14007eab8], 0
jne 0x140006485
call fcn.14002d2d0
call fcn.14002ddb0
call fcn.14000cf20
cmp byte [0x14007e0d0], 0
je 0x1400064a5
call fcn.140002120
mov r8d, 8
jmp 0x1400064ab
mov r8d, 0x80028
mov edx, 0xffffffec
mov rcx, r14
call qword [sym.imp.USER32.dll_SetWindowLongA]
call fcn.1400039c0
call fcn.14000f3d0
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
mov rcx, qword [0x14007ea40]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x14007ea28]
mov edx, 1
call qword [rax + 0x108]
mov rcx, qword [0x14007ea40]
mov rax, qword [rcx]
lea r8, [rbp + 0x130]
mov rdx, qword [0x14007ea28]
call qword [rax + 0x190]
mov rax, qword [0x14007e978]
mov rcx, qword [rax + 0x1dc0]
mov rax, qword [rcx]
add rax, 0x40
mov rcx, rbx
cmp byte [rax], bl
cmovne rcx, rax
call fcn.14002c820
mov rcx, qword [0x14007ea30]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 1
call qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
cmp dword [rbp + 0xf8], 0x12
jne 0x140006370
call fcn.14002d810
mov rcx, qword [0x14007eab0]
test rcx, rcx
je 0x140006573
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14007eab0], rbx
mov rcx, qword [0x14007eaa8]
test rcx, rcx
je 0x14000658c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14007eaa8], rbx
mov rcx, qword [0x14007eac8]
test rcx, rcx
je 0x1400065a5
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14007eac8], rbx
mov rcx, qword [0x14007ead8]
test rcx, rcx
je 0x1400065b7
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14007ead8], rbx
mov qword [0x14007eae0], rbx
mov qword [0x14007eae8], rbx
mov qword [0x14007eaf0], rbx
mov qword [0x14007eaf8], rbx
mov qword [0x14007eb00], rbx
mov dword [0x14007e290], 9
mov byte [0x14007e98c], 0
mov byte [0x14007e0d1], 1
mov rdi, qword [0x14007e978]
mov rcx, rdi
call fcn.14000e4f0
cmp qword [0x14007e978], rdi
jne 0x140006618
mov qword [0x14007e978], rbx
test rdi, rdi
je 0x140006640
mov rcx, rdi
call fcn.14001ca40
mov rax, qword [0x14007e978]
test rax, rax
je 0x140006637
dec dword [rax + 0x3b4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.140001e20
mov rcx, r14
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp + 0xb8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
jmp 0x140006684
call fcn.140001e20
mov rdx, qword [rbp + 0xb8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, 1
mov rcx, qword [rbp + 0x148]
xor rcx, rsp
call fcn.1400399f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret