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

Disassembly:
push rbx
push rsi
push r12
push r15
sub rsp, 0x78
mov rsi, qword [0x1400a6370]
mov rbx, rcx
mov r12d, dword [rcx + 0xc]
mov dword [rcx + 0x44], 0xffffffff
cmp dword [rsi + 0x4208], 0
jg 0x140045773
mov r8d, 0x74d
lea rdx, str.C:UsersGavinDesktopImGui_Standalone_mainSourceImGui_StandaloneImGuiimgui.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 + 0x3d40], 0x400
mov rax, qword [rsi + 0x4210]
mov qword [rsp + 0xb0], rdi
mov r15, qword [rax]
jne 0x1400457d3
cmp byte [rbx + 0xca], 0
je 0x1400457b4
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x88], rbx
jne 0x1400457b4
xor edi, edi
xorps xmm0, xmm0
mov dword [rax + 0x10], edi
movss dword [rax + 0x14], xmm0
mov qword [rbx + 0x30], r15
mov eax, dword [r15]
mov dword [rbx + 0x38], eax
cmp qword [r15 + 0x88], rbx
sete al
mov byte [rbx + 0xca], al
jmp 0x140045dff
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 + 0xca], 0
je 0x140045816
cmp byte [rbx + 0xd1], dil
je 0x140045816
mov qword [rbx + 0x30], rdi
mov dword [rbx + 0x38], edi
test dword [rsi + 0x40f0], 0x100
jne 0x1400458aa
mov rax, qword [rbx + 0x30]
test rax, rax
jne 0x1400458aa
mov rax, qword [rbx + 0x390]
test rax, rax
je 0x14004585a
cmp byte [rax + 0xd3], dil
je 0x14004584d
cmp byte [rax + 0xcc], dil
je 0x14004585a
mov rax, qword [rax + 0x30]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x1400458aa
mov ecx, dword [rbx + 0x38]
test ecx, ecx
je 0x1400458aa
call fcn.140043f10
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x1400458aa
movss xmm0, dword [rbx + 0x3c]
lea r8, [rbx + 0x3c]
movss xmm1, dword [0x140095e04]
ucomiss xmm0, xmm1
jp 0x140045887
je 0x1400458aa
movss xmm0, dword [rbx + 0x40]
ucomiss xmm0, xmm1
jp 0x140045893
je 0x1400458aa
mov edx, dword [rbx + 8]
lea r9, [rbx + 0x50]
mov rcx, rbx
mov dword [rsp + 0x20], edi
call fcn.1400451d0
mov qword [rbx + 0x30], rax
movss xmm8, dword [0x140095e20]
xor r13b, r13b
test dword [rsi + 0x40f0], 0x100
je 0x1400458e5
mov ecx, dword [rsi + 0x4154]
lea r14, [rbx + 0x30]
call fcn.140043f10
mov qword [r14], rax
mov r13b, 1
mov eax, dword [rsi + 0x4154]
mov dword [rbx + 0x38], eax
jmp 0x140045ae0
mov rax, qword [rbx + 0x420]
test r12d, 0x11000000
jne 0x140045a92
test rax, rax
je 0x14004591a
mov rax, qword [rax + 0x88]
test rax, rax
je 0x14004591a
mov rax, qword [rax + 0x30]
lea r14, [rbx + 0x30]
mov qword [r14], rax
jmp 0x140045ae0
bt r12d, 0x19
jae 0x140045934
mov rax, qword [rsi + 0x4228]
lea r14, [rbx + 0x30]
mov qword [r14], rax
jmp 0x140045ae0
mov rax, qword [0x1400a6370]
cmp byte [rax + 0x74], dil
jne 0x14004594a
test dword [rbx + 0x1c], 0x800
je 0x14004597e
test dword [rax + 0x3d40], 0x400
je 0x14004597e
test byte [rbx + 0x401], 1
jne 0x14004597e
mov eax, dword [rbx + 0xc]
test eax, 0x13000000
jne 0x14004597e
and eax, 0xc000000
cmp eax, 0x4000000
je 0x14004597e
lea r14, [rbx + 0x30]
jmp 0x1400459ff
mov rax, qword [rsi + 0x4000]
test rax, rax
je 0x140045a1e
cmp qword [rax + 0x3b0], rbx
jne 0x140045a1e
cmp qword [0x1400a6370], rdi
jne 0x1400459be
mov r8d, 0x2070
lea rdx, str.C:UsersGavinDesktopImGui_Standalone_mainSourceImGui_StandaloneImGuiimgui.cpp
lea rcx, str.GImGui___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x1400a6370]
movss xmm0, dword [rax + 0xd9c]
comiss xmm0, xmm8
movss xmm1, dword [rax + 0xda0]
jb 0x140045a1e
comiss xmm1, xmm8
jb 0x140045a1e
mov rax, qword [rbx + 0x30]
lea r14, [rbx + 0x30]
test rax, rax
je 0x140045ae0
cmp qword [rax + 0x88], rbx
jne 0x140045ae0
mov edx, dword [rbx + 8]
lea r9, [rbx + 0x50]
lea r8, [rbx + 0x48]
mov dword [rsp + 0x20], edi
mov rcx, rbx
call fcn.1400451d0
mov qword [r14], rax
jmp 0x140045ae0
mov rax, qword [rbx + 0x30]
lea r14, [rbx + 0x30]
test rax, rax
je 0x140045ae0
cmp rbx, qword [rax + 0x88]
jne 0x140045ae0
cmp dword [rsi + 0x4034], edi
je 0x140045a51
cmp byte [rsi + 0x4041], dil
je 0x140045ae0
mov rbp, qword [0x1400a6370]
cmp dword [rbp + 0x4208], edi
jg 0x140045a7a
mov r8d, 0x74d
lea rdx, str.C:UsersGavinDesktopImGui_Standalone_mainSourceImGui_StandaloneImGuiimgui.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 + 0x4210]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.140044090
mov ebp, dword [rsp + 0x30]
jmp 0x140045ae0
test rax, rax
je 0x140045ace
mov rdx, qword [rax + 0x88]
test rdx, rdx
je 0x140045ace
mov rax, qword [rbx + 0x390]
mov rcx, qword [rax + 0x30]
cmp qword [rdx + 0x30], rcx
je 0x140045ace
mov r8d, 0x32fb
lea rdx, str.C:UsersGavinDesktopImGui_Standalone_mainSourceImGui_StandaloneImGuiimgui.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 + 0x390]
lea r14, [rbx + 0x30]
mov rcx, qword [rax + 0x30]
mov qword [r14], rcx
cmp qword [r14], rdi
jne 0x140045b0e
mov rdx, r15
mov rcx, rbx
call fcn.140044090
test al, al
jne 0x140045b0e
mov edx, dword [rbx + 8]
lea r9, [rbx + 0x50]
lea r8, [rbx + 0x48]
mov dword [rsp + 0x20], edi
mov rcx, rbx
call fcn.1400451d0
mov qword [r14], rax
test r13b, r13b
mov r13, qword [rsp + 0xb8]
jne 0x140045dd4
test ebp, ebp
je 0x140045ce7
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
bt r12d, 0x19
jae 0x140045b41
lea rax, [rsi + 0xd9c]
jmp 0x140045b80
cmp dword [rsi + 0x41f0], edi
jg 0x140045b63
mov r8d, 0x756
lea rdx, str.C:UsersGavinDesktopImGui_Standalone_mainSourceImGui_StandaloneImGuiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, dword [rsi + 0x41f0]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x41f8]
add rax, 0xfffffffffffffff8
shl rcx, 4
add rax, rcx
movss xmm6, dword [rax]
movss xmm7, dword [rax + 4]
cmp byte [rsi + 0x42aa], dil
jne 0x140045ba9
cmp byte [rsi + 0x42ab], dil
je 0x140045ba9
cmp qword [rsi + 0x4268], rdi
je 0x140045ba9
xor sil, sil
jmp 0x140045bac
mov sil, 1
cmp qword [0x1400a6370], rdi
jne 0x140045bcf
mov r8d, 0x2070
lea rdx, str.C:UsersGavinDesktopImGui_Standalone_mainSourceImGui_StandaloneImGuiimgui.cpp
lea rcx, str.GImGui___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
comiss xmm6, xmm8
jb 0x140045bdf
comiss xmm7, xmm8
jb 0x140045bdf
mov al, 1
jmp 0x140045be1
xor al, al
cmp byte [rbx + 0xd1], dil
jne 0x140045bf3
test r12d, 0x12000000
je 0x140045bfc
test sil, sil
je 0x140045c2b
test al, al
jne 0x140045c18
mov rax, qword [r14]
movsx edi, word [rax + 0x80]
mov dword [rbx + 0x44], edi
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x60]
jmp 0x140045dd4
movss dword [rsp + 0x30], xmm6
lea r12, [rsp + 0x30]
movss dword [rsp + 0x34], xmm7
jmp 0x140045c38
lea rcx, [rsp + 0x38]
call fcn.14003f050
mov r12, rax
mov r15, qword [0x1400a6370]
mov ecx, dword [r15 + 0x38c8]
test ecx, ecx
jle 0x140045cd0
mov rbp, rdi
mov rsi, rdi
test rbp, rbp
js 0x140045c5d
cmp edi, ecx
jl 0x140045c77
mov r8d, 0x74d
lea rdx, str.C:UsersGavinDesktopImGui_Standalone_mainSourceImGui_StandaloneImGuiimgui.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 + 0x38d0]
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 0x140045cbc
movss xmm0, dword [r12 + 4]
comiss xmm0, xmm3
jb 0x140045cbc
comiss xmm1, xmm4
jbe 0x140045cbc
comiss xmm2, xmm0
ja 0x140045cd5
mov ecx, dword [r15 + 0x38c8]
inc edi
inc rbp
add rsi, 0x24
cmp edi, ecx
jl 0x140045c54
mov edi, 0xffffffff
mov dword [rbx + 0x44], edi
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x60]
jmp 0x140045dd4
mov rcx, qword [r14]
test rcx, rcx
je 0x140045dbe
mov rax, qword [rcx + 0x88]
cmp rbx, rax
je 0x140045dbe
test rax, rax
je 0x140045dbe
bt r12d, 0x18
jb 0x140045dbe
cmp qword [rbx + 0x420], rdi
jne 0x140045dbe
movzx edx, byte [rbx + 0x401]
and dl, 5
test dword [rbx + 0xc], 0x20000000
je 0x140045d5e
mov eax, dword [rsi + 0x3f60]
cmp dword [rcx + 0x64], eax
jge 0x140045d5e
cmp dl, 1
je 0x140045d5e
mov qword [rcx + 0x88], rbx
mov eax, dword [rbx + 8]
mov rcx, qword [r14]
mov dword [rcx], eax
mov rax, qword [r14]
mov dword [rax + 0x6c], edi
jmp 0x140045dd4
mov rdi, qword [0x1400a6370]
cmp dword [rdi + 0x4208], 0
jg 0x140045d88
mov r8d, 0x74d
lea rdx, str.C:UsersGavinDesktopImGui_Standalone_mainSourceImGui_StandaloneImGuiimgui.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 + 0x4210]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.140044090
test al, al
jne 0x140045dd4
mov edx, dword [rbx + 8]
lea r9, [rbx + 0x50]
lea r8, [rbx + 0x48]
mov dword [rsp + 0x20], 0x20
mov rcx, rbx
call fcn.1400451d0
mov qword [r14], rax
jmp 0x140045dd4
cmp dword [rbx + 0x44], edi
jge 0x140045dd4
bt r12d, 0x18
jb 0x140045dd4
movsx eax, word [rcx + 0x80]
mov dword [rbx + 0x44], eax
mov rcx, qword [r14]
movaps xmm8, xmmword [rsp + 0x40]
mov r14, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xa8]
cmp rbx, qword [rcx + 0x88]
sete al
mov byte [rbx + 0xca], al
mov eax, dword [rcx]
mov dword [rbx + 0x38], eax
mov rdi, qword [rsp + 0xb0]
add rsp, 0x78
pop r15
pop r12
pop rsi
pop rbx
ret