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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push r12
push r14
sub rsp, 0xa8
cmp dword [rcx + 4], 1
mov r14, rdx
mov r12, rcx
jle 0x1800404a4
mov qword [rax - 0x18], rbx
xor edx, edx
mov qword [rax - 0x20], rbp
mov qword [rax - 0x28], rsi
mov qword [rax - 0x30], rdi
mov qword [rax - 0x38], r13
mov qword [rax - 0x40], r15
movsxd rax, dword [rcx]
test eax, eax
je 0x18003ffe4
movups xmm0, xmmword [r14]
mov rcx, rax
mov rax, qword [r12 + 0x10]
shl rcx, 5
movups xmmword [rcx + rax], xmm0
movsxd rcx, dword [r12]
mov rax, qword [r12 + 0x10]
movups xmm0, xmmword [r14 + 0x10]
shl rcx, 5
movups xmmword [rcx + rax + 0x10], xmm0
mov rax, qword [r12 + 0x10]
mov dword [r12], edx
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
mov rax, qword [r12 + 0x10]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm0
mov rax, qword [r14 + 0x18]
movsxd rcx, dword [r14 + 0x10]
lea rcx, [rax + rcx*2]
movsxd rax, dword [r14]
mov qword [r14 + 0x50], rcx
test eax, eax
je 0x18003ffdc
imul rcx, rax, 0x38
mov rax, qword [r14 + 8]
add rax, 0xffffffffffffffc8
add rcx, rax
je 0x18003ffdc
cmp dword [rcx + 0x20], 0
lea rdx, [r14 + 0x88]
jne 0x18003ffcd
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rdx + 0x10]
movsd qword [rcx + 0x10], xmm1
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
jmp 0x18003ffe4
mov r8d, 0x1c
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18003ffe4
mov rcx, r14
call fcn.180039fb0
movsxd rcx, dword [r14]
mov edx, ecx
test ecx, ecx
je 0x180040029
mov rax, qword [r14 + 8]
imul r8, rcx, 0x38
cmp dword [r8 + rax - 0x18], 0
jne 0x180040029
cmp qword [r8 + rax - 0x10], 0
jne 0x180040029
test ecx, ecx
jg 0x180040023
mov r8d, 0x6d2
lea rdx, str.C:UsersAdminDesktop_fivemimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
dec dword [r14]
mov edx, dword [r14]
mov eax, dword [r12 + 4]
xor ebp, ebp
xor edi, edi
mov dword [rsp + 0xc0], ebp
test eax, eax
jle 0x180040060
test edx, edx
jle 0x180040060
mov rcx, r14
call fcn.180044f20
mov r15, rax
mov eax, dword [r12 + 4]
test r15, r15
je 0x180040063
mov esi, dword [r15 + 0x20]
add esi, dword [r15 + 0x1c]
jmp 0x180040065
xor r15d, r15d
xor esi, esi
mov ecx, 1
mov dword [rsp + 0xd8], ecx
lea r13d, [rcx + 0x1f]
cmp eax, ecx
jle 0x180040271
mov eax, ecx
mov qword [rsp + 0x28], rcx
mov ebx, r13d
mov r14d, edi
nop word [rax + rax]
test rax, rax
js 0x18004009c
cmp ecx, dword [r12 + 8]
jl 0x1800400b6
mov r8d, 0x6bd
lea rdx, str.C:UsersAdminDesktop_fivemimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdi, qword [r12 + 0x10]
movsxd rax, dword [rbx + rdi]
mov ebp, eax
mov r13d, eax
test eax, eax
jle 0x1800400e1
imul rcx, rax, 0x38
mov rax, qword [rbx + rdi + 8]
cmp dword [rcx + rax - 0x18], 0
jne 0x1800400e1
dec dword [rbx + rdi]
mov ebp, dword [rbx + rdi]
mov r13d, ebp
mov eax, ebp
mov edx, r13d
test ebp, ebp
jle 0x1800401bd
test r15, r15
je 0x1800401bd
mov rax, qword [rbx + rdi + 8]
mov r8d, 0x1c
mov rdx, rax
mov qword [rsp + 0x30], rax
mov rcx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
mov edx, r13d
mov eax, ebp
jne 0x1800401bd
cmp qword [r15 + 0x28], 0
jne 0x1800401bd
mov rcx, qword [rsp + 0x30]
cmp qword [rcx + 0x28], 0
jne 0x1800401bd
mov eax, dword [rcx + 0x20]
add dword [r15 + 0x20], eax
add esi, dword [rcx + 0x20]
mov rbp, qword [rbx + rdi + 8]
movsxd rax, dword [rbx + rdi]
imul rcx, rax, 0x38
add rcx, rbp
cmp rbp, rcx
jb 0x180040173
mov r8d, 0x6d4
lea rdx, str.C:UsersAdminDesktop_fivemimguiimgui.h
lea rcx, [0x1800c6250]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + rdi + 8]
movabs rax, 0x4924924924924925
sub rbp, rcx
imul rbp
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x38
add rcx, rax
movsxd rax, dword [rbx + rdi]
sub rax, rdx
imul r8, rax, 0x38
lea rdx, [rcx + 0x38]
sub r8, 0x38
call sub.VCRUNTIME140.dll_memmove
dec dword [rbx + rdi]
mov eax, dword [rbx + rdi]
mov edx, eax
mov ebp, dword [rsp + 0xc0]
test eax, eax
jle 0x18004021a
add r14d, dword [rbx + rdi + 0x10]
lea eax, [rdx - 1]
movsxd rcx, eax
add ebp, edx
imul r15, rcx, 0x38
xor ecx, ecx
mov dword [rsp + 0xc0], ebp
add r15, qword [rbx + rdi + 8]
test edx, edx
jle 0x180040228
mov rdx, qword [rbx + rdi + 8]
xor eax, eax
nop dword [rax]
nop word [rax + rax]
mov dword [rax + rdx + 0x1c], esi
lea rax, [rax + 0x38]
mov rdx, qword [rbx + rdi + 8]
inc ecx
add esi, dword [rax + rdx - 0x18]
cmp ecx, dword [rbx + rdi]
jl 0x180040200
jmp 0x180040228
add ebp, eax
add r14d, dword [rbx + rdi + 0x10]
mov dword [rsp + 0xc0], ebp
mov ecx, dword [rsp + 0xd8]
add rbx, 0x20
mov rax, qword [rsp + 0x28]
inc ecx
inc rax
mov dword [rsp + 0xd8], ecx
mov qword [rsp + 0x28], rax
cmp ecx, dword [r12 + 4]
jl 0x180040090
mov dword [rsp + 0xd0], r14d
mov r13d, 0x20
mov edi, dword [rsp + 0xd0]
mov r14, qword [rsp + 0xc8]
mov edx, dword [r14]
mov rcx, r14
add edx, ebp
call fcn.1800453a0
mov edx, dword [r14 + 0x10]
lea rbx, [r14 + 0x10]
add edx, edi
mov qword [rsp + 0xd0], rbx
mov rcx, rbx
call fcn.180045240
movsxd rcx, dword [r14]
mov esi, 1
movsxd rax, ebp
sub rcx, rax
imul rax, rcx, 0x38
movsxd rcx, dword [rbx]
add rax, qword [r14 + 8]
mov qword [rsp + 0xc0], rax
movsxd rax, edi
sub rcx, rax
mov rax, qword [r14 + 0x18]
lea r15, [rax + rcx*2]
cmp dword [r12 + 4], esi
jle 0x18004036c
mov r14, qword [rsp + 0xc0]
mov ebp, esi
nop dword [rax]
test rbp, rbp
js 0x1800402ec
cmp esi, dword [r12 + 8]
jl 0x180040306
mov r8d, 0x6bd
lea rdx, str.C:UsersAdminDesktop_fivemimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdi, qword [r12 + 0x10]
movsxd rax, dword [rdi + r13]
test eax, eax
je 0x18004032a
mov rdx, qword [rdi + r13 + 8]
mov rcx, r14
imul rbx, rax, 0x38
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
add r14, rbx
movsxd rax, dword [rdi + r13 + 0x10]
test eax, eax
je 0x18004034c
mov rdx, qword [rdi + r13 + 0x18]
mov rbx, rax
add rbx, rbx
mov rcx, r15
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
add r15, rbx
inc esi
inc rbp
add r13, 0x20
cmp esi, dword [r12 + 4]
jl 0x1800402e0
mov r14, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xd0]
mov eax, dword [r14]
mov r13, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x98]
mov qword [r14 + 0x50], r15
mov r15, qword [rsp + 0x78]
test eax, eax
je 0x1800403cb
jg 0x1800403b8
mov r8d, 0x6c6
lea rdx, str.C:UsersAdminDesktop_fivemimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, dword [r14]
imul rcx, rax, 0x38
mov rax, qword [r14 + 8]
cmp qword [rcx + rax - 0x10], 0
je 0x180040445
movups xmm1, xmmword [r14 + 0x88]
mov rax, qword [r14 + 0x98]
xor edx, edx
xorps xmm0, xmm0
mov qword [rsp + 0x48], rax
mov eax, dword [r14 + 0xa0]
movdqu xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x50], eax
mov eax, dword [rbx]
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xaa
comiss xmm0, xmm1
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x54], eax
movups xmmword [rsp + 0x38], xmm1
jb 0x18004041e
movss xmm0, dword [rsp + 0x44]
comiss xmm0, dword [rsp + 0x3c]
jae 0x180040438
mov r8d, 0x219
lea rdx, str.C:UsersAdminDesktop_fivemimguiimgui_draw.cpp
lea rcx, str.draw_cmd.ClipRect.x___draw_cmd.ClipRect.z__draw_cmd.ClipRect.y___draw_cmd.ClipRect.w
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.180044fa0
movsxd rax, dword [r14]
mov rdx, r14
mov rbx, qword [rsp + 0xa0]
add rdx, 0x88
imul rcx, rax, 0x38
add rcx, 0xffffffffffffffc8
add rcx, qword [r14 + 8]
cmp dword [rcx + 0x20], 0
jne 0x180040484
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rdx + 0x10]
movsd qword [rcx + 0x10], xmm1
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
jmp 0x18004049b
mov r8d, 0x1c
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18004049b
mov rcx, r14
call fcn.180039fb0
mov dword [r12 + 4], 1
add rsp, 0xa8
pop r14
pop r12
ret