Function at 0x140012fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rcx, qword [0x140161e70]
mov rdi, rcx
cmp dword [rcx + 0x1e98], 0xffffffff
jne 0x1400131a2
mov rbx, qword [rcx + 0x1e18]
test rbx, rbx
je 0x1400131a2
test dword [rbx + 0xc], 0x40000
jne 0x1400131a2
cmp qword [rcx + 0x1f48], 0
jne 0x1400131a2
cmp dword [rcx + 0x1e64], 0
jne 0x1400131a2
movsxd rsi, dword [rcx + 0x50]
mov qword [rsp + 0x60], r15
test esi, esi
js 0x140013074
cmp esi, 0x200
jl 0x140013057
mov r8d, 0x120f
lea rdx, str.C:Users10643DownloadsTelegram_Desktophwiidhx_hwidimgui.cpp
lea rcx, str.user_key_index___0__user_key_index_____int__sizeof_g.IO.KeysDown____sizeof__g.IO.KeysDown____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [0x140161e70]
cmp byte [rsi + rdi + 0x144], 0
je 0x140013074
movzx eax, byte [rcx + 0x1cc8]
shr al, 5
test al, 1
jne 0x140013074
mov r15b, 1
jmp 0x140013077
xor r15b, r15b
movsxd rsi, dword [rdi + 0x54]
test esi, esi
js 0x1400130c8
mov rbp, rcx
cmp esi, 0x200
jl 0x1400130ab
mov r8d, 0x120f
lea rdx, str.C:Users10643DownloadsTelegram_Desktophwiidhx_hwidimgui.cpp
lea rcx, str.user_key_index___0__user_key_index_____int__sizeof_g.IO.KeysDown____sizeof__g.IO.KeysDown____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [0x140161e70]
cmp byte [rsi + rbp + 0x144], 0
je 0x1400130c8
movzx eax, byte [rcx + 0x1cc8]
shr al, 6
test al, 1
jne 0x1400130c8
mov sil, 1
jmp 0x1400130cb
xor sil, sil
mov ecx, dword [rdi + 0x58]
call fcn.140008bd0
test al, al
je 0x1400130f2
mov rax, qword [0x140161e70]
movzx ecx, byte [rax + 0x1cc8]
shr cl, 7
test cl, 1
jne 0x1400130f2
mov r14b, 1
jmp 0x1400130f5
xor r14b, r14b
mov ecx, dword [rdi + 0x5c]
call fcn.140008bd0
mov rcx, qword [0x140161e70]
test al, al
je 0x14001311b
mov eax, dword [rcx + 0x1cc8]
shr rax, 8
test al, 1
jne 0x14001311b
mov bpl, 1
jmp 0x14001311e
xor bpl, bpl
cmp r15b, sil
mov r15, qword [rsp + 0x60]
jne 0x14001312d
cmp r14b, bpl
je 0x1400131a2
cmp dword [rbx + 0x158], 0
jne 0x1400131d1
cmp byte [rbx + 0x165], 0
je 0x1400131d1
mov ecx, dword [rdi + 0x50]
call fcn.140008bd0
test al, al
je 0x14001316e
movss xmm1, dword [rbx + 0x22c]
subss xmm1, dword [rbx + 0x224]
movss xmm0, dword [rbx + 0x68]
subss xmm0, xmm1
jmp 0x14001318f
mov ecx, dword [rdi + 0x54]
call fcn.140008bd0
test al, al
je 0x1400131b8
movss xmm0, dword [rbx + 0x22c]
subss xmm0, dword [rbx + 0x224]
addss xmm0, dword [rbx + 0x68]
movss dword [rbx + 0x78], xmm0
xor eax, eax
mov dword [rbx + 0x88], eax
mov dword [rbx + 0x80], eax
xorps xmm0, xmm0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
test r14b, r14b
je 0x1400131c4
xor eax, eax
mov dword [rbx + 0x78], eax
jmp 0x140013196
test bpl, bpl
je 0x1400131a2
mov eax, dword [rbx + 0x70]
mov dword [rbx + 0x78], eax
jmp 0x140013194
movsxd rsi, dword [rdi + 0x1e64]
mov rax, qword [rbx + 0x390]
add rsi, 0x3c
movss xmm0, dword [rcx + 0x19dc]
mulss xmm0, dword [rbx + 0x2b8]
shl rsi, 4
add rsi, rbx
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm7
test rax, rax
je 0x140013211
mulss xmm0, dword [rax + 0x2b8]
movss xmm1, dword [rbx + 0x22c]
xorps xmm7, xmm7
subss xmm1, dword [rbx + 0x224]
mov ecx, dword [rdi + 0x50]
xorps xmm6, xmm6
subss xmm1, xmm0
movss xmm0, dword [rsi + 0xc]
subss xmm0, dword [rsi + 4]
addss xmm1, xmm0
maxss xmm7, xmm1
call fcn.140008bd0
test al, al
je 0x140013283
movaps xmm6, xmm7
mov dword [rdi + 0x1e98], 3
xorps xmm6, xmmword [0x14003dc90]
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rdi + 0x1ea0], 2
mov dword [rdi + 0x1e8c], 0x30
jmp 0x1400131a5
mov ecx, dword [rdi + 0x54]
call fcn.140008bd0
test al, al
je 0x1400132ab
movaps xmm6, xmm7
mov dword [rdi + 0x1ea0], 3
mov dword [rdi + 0x1e8c], 0x30
jmp 0x140013340
test r14b, r14b
je 0x140013302
movss xmm1, dword [rbx + 0x68]
xorps xmm1, xmmword [0x14003dc90]
movss xmm0, dword [rsi]
comiss xmm0, dword [rsi + 8]
movss dword [rsi + 0xc], xmm1
movss dword [rsi + 4], xmm1
ja 0x1400132d5
comiss xmm1, xmm1
jbe 0x1400132dc
xor eax, eax
mov dword [rsi + 8], eax
mov dword [rsi], eax
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rdi + 0x1e98], 3
mov dword [rdi + 0x1e8c], 0x50
jmp 0x1400131a5
test bpl, bpl
je 0x14001334a
movss xmm1, dword [rbx + 0x70]
addss xmm1, dword [rbx + 0x24]
movss xmm0, dword [rsi]
comiss xmm0, dword [rsi + 8]
subss xmm1, dword [rbx + 0x68]
movss dword [rsi + 0xc], xmm1
movss dword [rsi + 4], xmm1
ja 0x14001332f
comiss xmm1, xmm1
jbe 0x140013336
xor eax, eax
mov dword [rsi + 8], eax
mov dword [rsi], eax
mov dword [rdi + 0x1e8c], 0x50
mov dword [rdi + 0x1e98], 2
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
jmp 0x1400131a5