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

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r15
sub rsp, 0xd8
mov rax, qword [0x1800b83c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, qword [0x18010b2c8]
mov r15d, 3
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], r12
mov qword [r11 - 0x28], r14
test byte [rdi + 8], 2
movaps xmmword [r11 - 0x78], xmm10
mov byte [rdi + 0xdb], 0
je 0x180021886
test byte [rdi + 0xc], 1
je 0x180021886
movdqa xmm0, xmmword [0x1800ac9e0]
lea r14, [rsp + 0x50]
movdqa xmm1, xmmword [0x1800ac9f0]
mov sil, 1
movdqu xmmword [rsp + 0x50], xmm0
movdqu xmmword [rsp + 0x60], xmm1
nop dword [rax + rax]
mov ebx, dword [r14]
mov edx, ebx
mov rcx, qword [0x18010b2c8]
call fcn.180019f10
cmp byte [rax], 0
je 0x180021876
lea eax, [rbx - 0x200]
cmp eax, 0x8b
jbe 0x18002185b
cmp ebx, 0x1000
je 0x18002185b
cmp ebx, 0x2000
je 0x18002185b
cmp ebx, 0x4000
je 0x18002185b
cmp ebx, 0x8000
je 0x18002185b
cmp ebx, 0x800
jne 0x18002186f
mov rcx, qword [0x18010b2c8]
mov edx, ebx
call fcn.18000a160
cmp byte [rax + 8], 0
jne 0x180021876
mov dword [rdi + 0x48f4], r15d
add r14, 4
lea rax, [rsp + 0x70]
cmp r14, rax
jne 0x180021810
jmp 0x180021889
xor sil, sil
movzx r15d, byte [rdi + 8]
movdqa xmm0, xmmword [0x1800ac9d0]
and r15b, 1
mov byte [rsp + 0x20], r15b
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x201
mov dword [rsp + 0x44], 0x203
mov dword [rsp + 0x48], 0x204
je 0x180021947
lea r14, [rsp + 0x30]
nop dword [rax + rax]
mov ebx, dword [r14]
mov edx, ebx
mov rcx, qword [0x18010b2c8]
call fcn.180019f10
cmp byte [rax], 0
je 0x180021939
lea eax, [rbx - 0x200]
cmp eax, 0x8b
jbe 0x18002191b
cmp ebx, 0x1000
je 0x18002191b
cmp ebx, 0x2000
je 0x18002191b
cmp ebx, 0x4000
je 0x18002191b
cmp ebx, 0x8000
je 0x18002191b
cmp ebx, 0x800
jne 0x18002192f
mov rcx, qword [0x18010b2c8]
mov edx, ebx
call fcn.18000a160
cmp byte [rax + 8], 0
jne 0x180021939
mov dword [rdi + 0x48f4], 2
add r14, 4
lea rax, [rsp + 0x4c]
cmp r14, rax
jne 0x1800218d0
xor ebp, ebp
cmp dword [rdi + 0x4904], ebp
je 0x180021a5d
mov rbx, qword [0x18010b2c8]
mov r9, qword [rbx + 0x48c0]
test r9, r9
je 0x180021a5d
test byte [rbx + 0x5cac], 8
je 0x180021992
mov r9, qword [r9 + 8]
lea rcx, str._nav__NavInitRequest:_ApplyResult:_NavID_0x_08X_in_Layer__d_Window___s__n
mov r8d, dword [rbx + 0x48f8]
mov edx, dword [rbx + 0x4904]
call fcn.180026a20
mov rbp, qword [0x18010b2c8]
movsxd r14, dword [rbx + 0x48f8]
mov r15d, dword [rbx + 0x4904]
cmp qword [rbp + 0x48c0], 0
jne 0x1800219cb
mov r8d, 0x2976
lea rdx, str.D:ProjectsScropts_QOL_v3ImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
lea rcx, str.g.NavWindow___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp r14d, 1
jbe 0x1800219eb
mov r8d, 0x2977
lea rdx, str.D:ProjectsScropts_QOL_v3ImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
lea rcx, str.nav_layer__ImGuiNavLayer_Main__nav_layer__ImGuiNavLayer_Menu
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbp + 0x48c0]
mov rcx, r14
mov dword [rbp + 0x48c8], r15d
add rcx, rcx
mov dword [rbp + 0x48f8], r14d
mov dword [rbp + 0x48cc], 0
mov dword [rax + r14*4 + 0x3a0], r15d
mov rax, qword [rbp + 0x48c0]
xor ebp, ebp
movups xmm0, xmmword [rbx + 0x4908]
movzx r15d, byte [rsp + 0x20]
movups xmmword [rax + rcx*8 + 0x3a8], xmm0
mov byte [rbx + 0x48fc], 1
cmp byte [rbx + 0x4902], bpl
je 0x180021a5d
mov rax, qword [0x18010b2c8]
mov word [rax + 0x48fd], 1
mov byte [rax + 0x48ff], 1
cmp byte [rdi + 0x4918], 0
mov word [rdi + 0x4901], 0
mov dword [rdi + 0x4904], ebp
mov dword [rdi + 0x48e0], ebp
je 0x180021a80
call fcn.180022f90
xor al, al
mov dword [rdi + 0x495c], ebp
mov r12d, 1
mov word [rdi + 0x4918], 0
mov dword [rsp + 0x24], eax
cmp byte [rdi + 0x48fd], al
je 0x180021ace
cmp byte [rdi + 0x48fc], al
je 0x180021ace
cmp byte [rdi + 0x48fe], al
jne 0x180021ace
cmp byte [rdi + 0x48ff], al
je 0x180021ace
cmp qword [rdi + 0x48c0], 0
movzx eax, al
cmovne eax, r12d
mov dword [rsp + 0x24], eax
mov byte [rdi + 0x48fd], 0
cmp dword [rdi + 0x48f8], r12d
jbe 0x180021af8
mov r8d, 0x2bc1
lea rdx, str.D:ProjectsScropts_QOL_v3ImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
lea rcx, str.g.NavLayer__ImGuiNavLayer_Main__g.NavLayer__ImGuiNavLayer_Menu
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rdi + 0x48c0]
test rcx, rcx
je 0x180021b33
mov rax, rcx
cmp qword [rax + 0x378], rax
je 0x180021b27
test dword [rax + 0x14], 0x14000000
jne 0x180021b27
mov rax, qword [rax + 0x368]
test rax, rax
jne 0x180021b07
jmp 0x180021b33
cmp rax, rcx
je 0x180021b33
mov qword [rax + 0x398], rcx
mov rax, qword [rdi + 0x48c0]
test rax, rax
je 0x180021b59
cmp qword [rax + 0x398], 0
je 0x180021b59
cmp dword [rdi + 0x48f8], 0
jne 0x180021b59
mov qword [rax + 0x398], rbp
mov qword [rsp + 0x110], r13
call fcn.180023e90
test r15b, r15b
jne 0x180021b74
test sil, sil
je 0x180021cd6
mov rax, qword [rdi + 0x48c0]
test rax, rax
je 0x180021cd6
test dword [rax + 0x14], 0x40000
jne 0x180021cd6
mov byte [rdi + 0xdd], r12b
cmp dword [rdi + 0x48c8], 0
je 0x180021cdd
lea r15, [rdi + 0x48fe]
cmp byte [r15], 0
jne 0x180021cdd
lea r13, [rdi + 0x4a28]
movzx eax, r12b
movzx r14d, sil
mov byte [rdi + 0xde], al
call fcn.1800232b0
cmp dword [rdi + 0x48c8], 0
mov qword [rdi + 0x48d4], 0
mov dword [rdi + 0x48d0], ebp
mov dword [rdi + 0x48dc], ebp
je 0x180021e40
lea rbx, [rdi + 0x48fe]
cmp byte [rbx], 0
mov r15, rbx
jne 0x180021e40
cmp qword [r13], 0
jne 0x180021e40
mov rax, qword [rdi + 0x48c0]
test rax, rax
je 0x180021e40
test dword [rax + 0x14], 0x40000
jne 0x180021e40
movzx ebp, byte [rsp + 0x20]
test bpl, bpl
je 0x180021c66
mov rcx, qword [0x18010b2c8]
mov edx, 0x20c
call fcn.180019f10
cmp byte [rax], 0
je 0x180021c66
mov rcx, qword [0x18010b2c8]
mov edx, 0x20c
call fcn.18000a160
cmp byte [rax + 8], 0
je 0x180021c9c
test sil, sil
je 0x180021cfd
mov rcx, qword [0x18010b2c8]
mov edx, 0x26e
call fcn.180019f10
cmp byte [rax], 0
je 0x180021cfd
mov rcx, qword [0x18010b2c8]
mov edx, 0x26e
call fcn.18000a160
cmp byte [rax + 8], 0
jne 0x180021cfd
movzx r15d, r12b
test bpl, bpl
je 0x180021cb8
xor r8d, r8d
xor edx, edx
mov ecx, 0x20c
call fcn.18001a7e0
test al, al
jne 0x180021cd0
test sil, sil
je 0x180021d00
xor r8d, r8d
xor edx, edx
mov ecx, 0x26e
call fcn.18001a7e0
test al, al
je 0x180021d00
movzx r14d, r12b
jmp 0x180021d03
mov byte [rdi + 0xdd], 0
lea r13, [rdi + 0x4a28]
cmp qword [r13], 0
lea r15, [rdi + 0x48fe]
jne 0x180021bbd
xor al, al
jmp 0x180021bc1
xor r15b, r15b
xor r14b, r14b
test bpl, bpl
je 0x180021d35
mov rcx, qword [0x18010b2c8]
mov edx, 0x20d
call fcn.180019f10
cmp byte [rax], 0
je 0x180021d35
mov rcx, qword [0x18010b2c8]
mov edx, 0x20d
call fcn.18000a160
cmp byte [rax + 8], 0
je 0x180021d67
test sil, sil
je 0x180021da3
mov rcx, qword [0x18010b2c8]
mov edx, 0x26d
call fcn.180019f10
cmp byte [rax], 0
je 0x180021da3
mov rcx, qword [0x18010b2c8]
mov edx, 0x26d
call fcn.18000a160
cmp byte [rax + 8], 0
jne 0x180021da3
cmp byte [rsp + 0x20], 0
movzx ebp, r12b
je 0x180021d85
xor r8d, r8d
xor edx, edx
mov ecx, 0x20d
call fcn.18001a7e0
test al, al
jne 0x180021d9d
test sil, sil
je 0x180021da6
xor r8d, r8d
xor edx, edx
mov ecx, 0x26d
call fcn.18001a7e0
test al, al
je 0x180021da6
movzx edx, r12b
jmp 0x180021da8
xor bpl, bpl
xor dl, dl
mov ecx, dword [rdi + 0x3f40]
test ecx, ecx
jne 0x180021dcf
test r14b, r14b
je 0x180021dd7
mov eax, dword [rdi + 0x48c8]
mov dword [rdi + 0x48d0], eax
mov dword [rdi + 0x48dc], 2
jmp 0x180021dd7
cmp ecx, dword [rdi + 0x48c8]
jne 0x180021e14
test dl, dl
je 0x180021dee
mov eax, dword [rdi + 0x48c8]
mov dword [rdi + 0x48d0], eax
mov dword [rdi + 0x48dc], r12d
test ecx, ecx
je 0x180021dfa
cmp ecx, dword [rdi + 0x48c8]
jne 0x180021e14
test r15b, r15b
jne 0x180021e04
test bpl, bpl
je 0x180021e10
mov eax, dword [rdi + 0x48c8]
mov dword [rdi + 0x48d4], eax
test ecx, ecx
je 0x180021e1f
mov r15, rbx
cmp ecx, dword [rdi + 0x48c8]
jne 0x180021e3a
test r14b, r14b
jne 0x180021e2b
mov r15, rbx
test dl, dl
je 0x180021e3a
mov eax, dword [rdi + 0x48c8]
mov r15, rbx
mov dword [rdi + 0x48d8], eax
movzx r14d, sil
xor ebp, ebp
mov rax, qword [rdi + 0x48c0]
test rax, rax
je 0x180021e58
test dword [rax + 0x14], 0x40000
je 0x180021e58
mov byte [r15], r12b
mov eax, dword [rdi + 0x48d0]
test eax, eax
je 0x180021e84
cmp dword [rdi + 0x48d4], eax
je 0x180021e84
mov r8d, 0x2bee
lea rdx, str.D:ProjectsScropts_QOL_v3ImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
lea rcx, str.g.NavActivateDownId__g.NavActivateId
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [rdi + 0x48ec]
test eax, eax
je 0x180021eac
mov dword [rdi + 0x48d8], eax
mov dword [rdi + 0x48d4], eax
mov dword [rdi + 0x48d0], eax
mov eax, dword [rdi + 0x48f0]
mov dword [rdi + 0x48dc], eax
mov dword [rdi + 0x48ec], ebp
call fcn.180022430
cmp dword [rdi + 0x4928], 0xffffffff
xorps xmm10, xmm10
jne 0x18002204e
mov rbx, qword [0x18010b2c8]
cmp dword [rbx + 0x4928], 0xffffffff
mov rbp, qword [rbx + 0x48c0]
je 0x180021ef9
mov r8d, 0x2cbe
lea rdx, str.D:ProjectsScropts_QOL_v3ImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
lea rcx, str.g.NavMoveDir__ImGuiDir_None
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rbp, rbp
je 0x18002204c
cmp qword [rbx + 0x4a28], 0
jne 0x18002204c
test dword [rbp + 0x14], 0x40000
jne 0x18002204c
mov rcx, qword [0x18010b2c8]
mov edx, 0x200
call fcn.180019f10
cmp byte [rax], 0
je 0x18002204c
movss xmm0, dword [rax + 4]
comiss xmm10, xmm0
ja 0x18002204c
ucomiss xmm0, xmm10
jp 0x180021f4e
je 0x180021f7a
mov rax, qword [0x18010b2c8]
movss xmm1, dword [rax + 0x3c]
comiss xmm0, xmm1
jbe 0x18002204c
movss xmm2, dword [rax + 0x40]
mov ecx, 0x200
call fcn.18001a0f0
test eax, eax
jle 0x18002204c
mov rcx, qword [0x18010b2c8]
cmp byte [rcx + 0x4754], 0
je 0x180021f97
cmp dword [rcx + 0x3f40], 0xffffffff
jne 0x18002204c
mov edx, 0x200
call fcn.18000a160
cmp dword [rax], 0xffffffff
jne 0x18002204c
cmp byte [rbx + 0xe24], 0
jne 0x18002204c
cmp byte [rbx + 0xe26], 0
jne 0x18002204c
movzx eax, byte [rbx + 0xe25]
test byte [rbx + 8], r12b
je 0x180021ff4
test al, al
je 0x180021fdd
mov r12d, 0xffffffff
jmp 0x18002200e
cmp byte [rbx + 0x48fe], r12b
jne 0x18002200e
cmp dword [rbx + 0x3f40], 0
jne 0x18002200e
xor r12d, r12d
jmp 0x18002200e
test al, al
je 0x180022000
mov r12d, 0xffffffff
jmp 0x18002200e
xor r12d, r12d
cmp dword [rbx + 0x3f40], r12d
setne r12b
mov dword [rbx + 0x4958], r12d
mov eax, 0x21
cmp byte [rbp + 0xbc], 0
mov r9d, 3
mov r8d, 0x400
cmovne r9d, eax
sar r12d, 0x1f
lea ecx, [rax - 0x22]
lea edx, [r12 + 3]
call fcn.180020e00
mov dword [rbx + 0x495c], 0xffffffff
xor ebp, ebp
mov rax, qword [0x18010b2c8]
mov r12, qword [rsp + 0x108]
cmp byte [rax + 0x4919], 0
jne 0x180022078
cmp byte [rax + 0x4901], 0
jne 0x180022078
mov byte [rax + 0x4900], 0
jmp 0x1800220a7
cmp qword [rax + 0x48c0], 0
movzx esi, r14b
mov byte [rax + 0x4900], 1
jne 0x1800220a7
mov r8d, 0x2b3f
lea rdx, str.D:ProjectsScropts_QOL_v3ImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
lea rcx, str.g.NavWindow___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r14, qword [rdi + 0x48c0]
mov byte [rdi + 0x48fc], 0
test r14, r14
je 0x18002237b
test dword [r14 + 0x14], 0x40000
jne 0x18002237b
cmp qword [r13], 0
jne 0x18002237b
mov rax, qword [r14]
movaps xmmword [rsp + 0xa0], xmm8
movaps xmmword [rsp + 0x90], xmm9
movss xmm0, dword [rax + 0x3c1c]
mov rax, qword [r14 + 0x368]
mulss xmm0, dword [r14 + 0x290]
test rax, rax
je 0x180022111
mulss xmm0, dword [rax + 0x290]
cmp word [r14 + 0x15c], 0
mulss xmm0, dword [0x1800ac8bc]
mov ecx, dword [rdi + 0x4928]
movss xmm8, dword [0x1800ac844]
mulss xmm0, dword [rdi + 0x18]
addss xmm0, dword [0x1800ac804]
cvttss2si eax, xmm0
movd xmm9, eax
cvtdq2ps xmm9, xmm9
jne 0x1800221f0
cmp byte [r14 + 0x161], 0
je 0x1800221f0
cmp ecx, 0xffffffff
je 0x1800221f0
movss xmm1, dword [0x1800ac938]
test ecx, ecx
je 0x18002217f
cmp ecx, 1
jne 0x1800221b2
movaps xmm0, xmm8
jmp 0x180022182
movaps xmm0, xmm1
mulss xmm0, xmm9
mov dword [r14 + 0x9c], ebp
mov dword [r14 + 0xa4], ebp
addss xmm0, dword [r14 + 0x84]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [r14 + 0x94], xmm0
cmp ecx, 2
je 0x1800221c0
cmp ecx, 3
jne 0x1800221f0
movaps xmm1, xmm8
mulss xmm1, xmm9
mov dword [r14 + 0xa0], ebp
mov dword [r14 + 0xa8], ebp
addss xmm1, dword [r14 + 0x88]
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [r14 + 0x98], xmm0
test sil, sil
je 0x180022369
mov rcx, qword [0x18010b2c8]
mov edx, 0x27c
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm7
call fcn.180019f10
mov rcx, qword [0x18010b2c8]
mov edx, 0x27b
mov rbx, rax
call fcn.180019f10
movss xmm6, dword [rbx + 0xc]
mov edx, 0x27a
mov rcx, qword [0x18010b2c8]
subss xmm6, dword [rax + 0xc]
call fcn.180019f10
mov rcx, qword [0x18010b2c8]
mov edx, 0x279
mov rbx, rax
call fcn.180019f10
movss xmm7, dword [rbx + 0xc]
mov edx, 0x273
mov rcx, qword [0x18010b2c8]
subss xmm7, dword [rax + 0xc]
call fcn.180019f10
cmp byte [rax], 0
je 0x18002229f
mov rcx, qword [0x18010b2c8]
mov edx, 0x273
call fcn.18000a160
cmp byte [rax + 8], 0
jne 0x18002229f
movss xmm8, dword [0x1800ac7e0]
jmp 0x1800222d5
mov rcx, qword [0x18010b2c8]
mov edx, 0x274
call fcn.180019f10
cmp byte [rax], 0
je 0x1800222d5
mov rcx, qword [0x18010b2c8]
mov edx, 0x274
call fcn.18000a160
cmp byte [rax + 8], 0
jne 0x1800222d5
movss xmm8, dword [0x1800ac890]
ucomiss xmm7, xmm10
jp 0x1800222dd
je 0x18002231c
cmp byte [r14 + 0xb4], 0
je 0x18002231c
mulss xmm7, xmm9
mov dword [r14 + 0x9c], ebp
mov dword [r14 + 0xa4], ebp
mulss xmm7, xmm8
addss xmm7, dword [r14 + 0x84]
cvttss2si eax, xmm7
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [r14 + 0x94], xmm0
ucomiss xmm6, xmm10
movaps xmm7, xmmword [rsp + 0xb0]
jp 0x18002232c
je 0x180022361
mulss xmm6, xmm9
mov dword [r14 + 0xa0], ebp
mov dword [r14 + 0xa8], ebp
mulss xmm6, xmm8
addss xmm6, dword [r14 + 0x88]
cvttss2si eax, xmm6
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [r14 + 0x98], xmm0
movaps xmm6, xmmword [rsp + 0xc0]
movaps xmm8, xmmword [rsp + 0xa0]
movaps xmm9, xmmword [rsp + 0x90]
cmp byte [rsp + 0x20], 0
movaps xmm10, xmmword [rsp + 0x80]
mov r14, qword [rsp + 0xd0]
mov r13, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x100]
jne 0x1800223b5
test sil, sil
jne 0x1800223b5
mov byte [r15], 1
mov byte [rdi + 0x48ff], sil
jmp 0x180022402
cmp byte [rsp + 0x24], 0
je 0x180022402
test byte [rdi + 8], 4
je 0x180022402
test byte [rdi + 0xc], 4
je 0x180022402
lea rcx, [rsp + 0x24]
call fcn.180021410
movss xmm0, dword [rax]
movss xmm1, dword [rax + 4]
movss dword [rdi + 0x36f0], xmm0
movss dword [rdi + 0x36f4], xmm1
movss dword [rdi + 0xe08], xmm0
movss dword [rdi + 0xe0c], xmm1
mov byte [rdi + 0xdb], 1
mov dword [rdi + 0x4954], ebp
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180065b10
add rsp, 0xd8
pop r15
pop rdi
pop rsi
pop rbp
ret