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

Disassembly:
push rbx
push rsi
push r12
push r15
sub rsp, 0x78
mov rsi, qword [0x14011c338]
mov rbx, rcx
mov r12d, dword [rcx + 0x14]
mov dword [rcx + 0x4c], 0xffffffff
cmp dword [rsi + 0x49f8], 0
jg 0x140046bb3
mov r8d, 0x754
lea rdx, str.F:OvixLoaderimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test dword [rsi + 0x3d2c], 0x400
mov rax, qword [rsi + 0x4a00]
mov qword [rsp + 0xb0], rdi
mov r15, qword [rax]
jne 0x140046c0d
cmp byte [rbx + 0xea], 0
je 0x140046bf1
mov rax, qword [rbx + 0x38]
cmp qword [rax + 0x60], rbx
jne 0x140046bf1
xor edi, edi
xorps xmm0, xmm0
mov dword [rax + 0x10], edi
movss dword [rax + 0x14], xmm0
mov qword [rbx + 0x38], r15
mov eax, dword [r15]
mov dword [rbx + 0x40], eax
cmp qword [r15 + 0x60], rbx
sete al
mov byte [rbx + 0xea], al
jmp 0x140047249
mov qword [rsp + 0xa8], rbp
xor edi, edi
mov qword [rsp + 0xb8], r13
mov ebp, r12d
and ebp, 0x6000000
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x30], ebp
movaps xmmword [rsp + 0x40], xmm8
mov byte [rbx + 0xea], 0
je 0x140046c50
cmp byte [rbx + 0xf1], dil
je 0x140046c50
mov qword [rbx + 0x38], rdi
mov dword [rbx + 0x40], edi
test dword [rsi + 0x48e0], 0x100
jne 0x140046ce4
mov rax, qword [rbx + 0x38]
test rax, rax
jne 0x140046ce4
mov rax, qword [rbx + 0x3a8]
test rax, rax
je 0x140046c94
cmp byte [rax + 0xf3], dil
je 0x140046c87
cmp byte [rax + 0xec], dil
je 0x140046c94
mov rax, qword [rax + 0x38]
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x140046ce4
mov ecx, dword [rbx + 0x40]
test ecx, ecx
je 0x140046ce4
call fcn.140045150
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x140046ce4
movss xmm0, dword [rbx + 0x44]
lea r8, [rbx + 0x44]
movss xmm1, dword [0x1400e28fc]
ucomiss xmm0, xmm1
jp 0x140046cc1
je 0x140046ce4
movss xmm0, dword [rbx + 0x48]
ucomiss xmm0, xmm1
jp 0x140046ccd
je 0x140046ce4
mov edx, dword [rbx + 0x10]
lea r9, [rbx + 0x58]
mov rcx, rbx
mov dword [rsp + 0x20], edi
call fcn.1400465c0
mov qword [rbx + 0x38], rax
movss xmm8, dword [0x1400e2918]
xor r13b, r13b
test dword [rsi + 0x48e0], 0x100
je 0x140046d1f
mov ecx, dword [rsi + 0x4944]
lea r14, [rbx + 0x38]
call fcn.140045150
mov qword [r14], rax
mov r13b, 1
mov eax, dword [rsi + 0x4944]
mov dword [rbx + 0x40], eax
jmp 0x140046f11
mov rax, qword [rbx + 0x438]
test r12d, 0x11000000
jne 0x140046ec3
test rax, rax
je 0x140046d54
mov rax, qword [rax + 0x88]
test rax, rax
je 0x140046d54
mov rax, qword [rax + 0x38]
lea r14, [rbx + 0x38]
mov qword [r14], rax
jmp 0x140046f11
bt r12d, 0x19
jae 0x140046d6e
mov rax, qword [rsi + 0x4a18]
lea r14, [rbx + 0x38]
mov qword [r14], rax
jmp 0x140046f11
mov rax, qword [0x14011c338]
cmp byte [rax + 0x7c], dil
jne 0x140046d84
test dword [rbx + 0x24], 0x200
je 0x140046db5
test dword [rax + 0x3d2c], 0x400
je 0x140046db5
test byte [rbx + 0x41d], 1
jne 0x140046db5
mov eax, dword [rbx + 0x14]
test eax, 0x13000000
jne 0x140046db5
and eax, 0xc000000
cmp eax, 0x4000000
je 0x140046db5
lea r14, [rbx + 0x38]
jmp 0x140046e33
mov rax, qword [rsi + 0x4020]
test rax, rax
je 0x140046e52
cmp qword [rax + 0x3c8], rbx
jne 0x140046e52
cmp qword [0x14011c338], rdi
jne 0x140046df5
mov r8d, 0x22a3
lea rdx, str.F:OvixLoaderimguiimgui.cpp
lea rcx, str.GImGui___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x14011c338]
movss xmm0, dword [rax + 0xe10]
comiss xmm0, xmm8
movss xmm1, dword [rax + 0xe14]
jb 0x140046e52
comiss xmm1, xmm8
jb 0x140046e52
mov rax, qword [rbx + 0x38]
lea r14, [rbx + 0x38]
test rax, rax
je 0x140046f11
cmp qword [rax + 0x60], rbx
jne 0x140046f11
mov edx, dword [rbx + 0x10]
lea r9, [rbx + 0x58]
lea r8, [rbx + 0x50]
mov dword [rsp + 0x20], edi
mov rcx, rbx
call fcn.1400465c0
mov qword [r14], rax
jmp 0x140046f11
mov rax, qword [rbx + 0x38]
lea r14, [rbx + 0x38]
test rax, rax
je 0x140046f11
cmp rbx, qword [rax + 0x60]
jne 0x140046f11
cmp dword [rsi + 0x4068], edi
je 0x140046e82
cmp byte [rsi + 0x4075], dil
je 0x140046f11
mov rbp, qword [0x14011c338]
cmp dword [rbp + 0x49f8], edi
jg 0x140046eab
mov r8d, 0x754
lea rdx, str.F:OvixLoaderimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdx, qword [rbp + 0x4a00]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.1400452d0
mov ebp, dword [rsp + 0x30]
jmp 0x140046f11
test rax, rax
je 0x140046eff
mov rdx, qword [rax + 0x88]
test rdx, rdx
je 0x140046eff
mov rax, qword [rbx + 0x3a8]
mov rcx, qword [rax + 0x38]
cmp qword [rdx + 0x38], rcx
je 0x140046eff
mov r8d, 0x37b0
lea rdx, str.F:OvixLoaderimguiimgui.cpp
lea rcx, str.window__DockNode__HostWindow__Viewport__window__ParentWindow__Viewport
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x3a8]
lea r14, [rbx + 0x38]
mov rcx, qword [rax + 0x38]
mov qword [r14], rcx
cmp qword [r14], rdi
jne 0x140046f3f
mov rdx, r15
mov rcx, rbx
call fcn.1400452d0
test al, al
jne 0x140046f3f
mov edx, dword [rbx + 0x10]
lea r9, [rbx + 0x58]
lea r8, [rbx + 0x50]
mov dword [rsp + 0x20], edi
mov rcx, rbx
call fcn.1400465c0
mov qword [r14], rax
test r13b, r13b
mov r13, qword [rsp + 0xb8]
jne 0x140047221
test ebp, ebp
je 0x140047114
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
bt r12d, 0x19
jae 0x140046f72
lea rax, [rsi + 0xe10]
jmp 0x140046fad
cmp dword [rsi + 0x49e0], edi
jg 0x140046f94
mov r8d, 0x75d
lea rdx, str.F:OvixLoaderimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, dword [rsi + 0x49e0]
imul rcx, rax, 0x38
mov rax, qword [rsi + 0x49e8]
add rax, 0xfffffffffffffff4
add rax, rcx
movss xmm6, dword [rax]
movss xmm7, dword [rax + 4]
cmp byte [rsi + 0x4a96], dil
jne 0x140046fd6
cmp byte [rsi + 0x4a97], dil
je 0x140046fd6
cmp qword [rsi + 0x4a58], rdi
je 0x140046fd6
xor sil, sil
jmp 0x140046fd9
mov sil, 1
cmp qword [0x14011c338], rdi
jne 0x140046ffc
mov r8d, 0x22a3
lea rdx, str.F:OvixLoaderimguiimgui.cpp
lea rcx, str.GImGui___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
comiss xmm6, xmm8
jb 0x14004700c
comiss xmm7, xmm8
jb 0x14004700c
mov al, 1
jmp 0x14004700e
xor al, al
cmp byte [rbx + 0xf1], dil
jne 0x140047020
test r12d, 0x12000000
je 0x140047029
test sil, sil
je 0x140047058
test al, al
jne 0x140047045
mov rax, qword [r14]
movsx edi, word [rax + 0x8a]
mov dword [rbx + 0x4c], edi
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x60]
jmp 0x140047221
movss dword [rsp + 0x38], xmm6
lea r12, [rsp + 0x38]
movss dword [rsp + 0x3c], xmm7
jmp 0x140047065
lea rcx, [rsp + 0x30]
call fcn.14003fe90
mov r12, rax
mov r15, qword [0x14011c338]
mov ecx, dword [r15 + 0x38c0]
test ecx, ecx
jle 0x1400470fd
mov rbp, rdi
mov rsi, rdi
test rbp, rbp
js 0x14004708a
cmp edi, ecx
jl 0x1400470a4
mov r8d, 0x754
lea rdx, str.F:OvixLoaderimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [r15 + 0x38c8]
movss xmm4, dword [r12]
movss xmm0, dword [rsi + rax]
comiss xmm4, xmm0
movss xmm3, dword [rsi + rax + 4]
movaps xmm1, xmm0
addss xmm1, dword [rsi + rax + 8]
movaps xmm2, xmm3
addss xmm2, dword [rsi + rax + 0xc]
jb 0x1400470e9
movss xmm0, dword [r12 + 4]
comiss xmm0, xmm3
jb 0x1400470e9
comiss xmm1, xmm4
jbe 0x1400470e9
comiss xmm2, xmm0
ja 0x140047102
mov ecx, dword [r15 + 0x38c0]
inc edi
inc rbp
add rsi, 0x24
cmp edi, ecx
jl 0x140047081
mov edi, 0xffffffff
mov dword [rbx + 0x4c], edi
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x60]
jmp 0x140047221
mov rcx, qword [r14]
test rcx, rcx
je 0x14004720b
mov r9, qword [rcx + 0x60]
cmp rbx, r9
je 0x14004720b
test r9, r9
je 0x14004720b
bt r12d, 0x18
jb 0x14004720b
cmp qword [rbx + 0x438], rdi
jne 0x14004720b
movzx edx, byte [rbx + 0x41d]
and dl, 5
test dword [rbx + 0x14], 0x20000000
je 0x1400471ab
mov eax, dword [rsi + 0x3f60]
cmp dword [rcx + 0x6c], eax
jge 0x1400471ab
cmp dl, 1
je 0x1400471ab
test dword [rsi + 0x5e94], 0x100
je 0x140047194
mov r8d, dword [rcx]
lea rcx, str._viewport__Window__s_steal_Viewport__08X_from_Window__s_n
mov r9, qword [r9 + 8]
mov rdx, qword [rbx + 8]
call fcn.140053a30
mov rax, qword [r14]
mov qword [rax + 0x60], rbx
mov eax, dword [rbx + 0x10]
mov rcx, qword [r14]
mov dword [rcx], eax
mov rax, qword [r14]
mov dword [rax + 0x74], edi
jmp 0x140047221
mov rdi, qword [0x14011c338]
cmp dword [rdi + 0x49f8], 0
jg 0x1400471d5
mov r8d, 0x754
lea rdx, str.F:OvixLoaderimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdx, qword [rdi + 0x4a00]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.1400452d0
test al, al
jne 0x140047221
mov edx, dword [rbx + 0x10]
lea r9, [rbx + 0x58]
lea r8, [rbx + 0x50]
mov dword [rsp + 0x20], 0x20
mov rcx, rbx
call fcn.1400465c0
mov qword [r14], rax
jmp 0x140047221
cmp dword [rbx + 0x4c], edi
jge 0x140047221
bt r12d, 0x18
jb 0x140047221
movsx eax, word [rcx + 0x8a]
mov dword [rbx + 0x4c], eax
mov rcx, qword [r14]
movaps xmm8, xmmword [rsp + 0x40]
mov r14, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xa8]
cmp rbx, qword [rcx + 0x60]
sete al
mov byte [rbx + 0xea], al
mov eax, dword [rcx]
mov dword [rbx + 0x40], eax
mov rdi, qword [rsp + 0xb0]
add rsp, 0x78
pop r15
pop r12
pop rsi
pop rbx
ret