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

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x90
mov qword [rax + 0x20], rbp
mov rbx, rcx
mov qword [rax - 0x10], rsi
xor ebp, ebp
mov qword [rax - 0x18], rdi
mov rdi, qword [0x14004dd30]
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r13
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
xor r15d, r15d
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov eax, dword [rcx]
mov byte [rcx + 0x58], 0
test eax, eax
jle 0x140031448
xor r13d, r13d
xor r12d, r12d
xor r14d, r14d
xor esi, esi
cmp ebp, eax
jl 0x14003138f
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 8]
mov eax, dword [rbx + 0x24]
cmp dword [rsi + rcx + 8], eax
jge 0x1400313b4
mov eax, dword [rbx + 0x14]
cmp dword [rsi + rcx], eax
jne 0x140031435
mov dword [rbx + 0x14], 0
jmp 0x140031435
cmp r12, r13
je 0x14003142b
cmp ebp, dword [rbx]
jl 0x1400313d7
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 8]
movups xmm6, xmmword [rsi + rax]
movsd xmm7, qword [rsi + rax + 0x10]
mov eax, dword [rsi + rax + 0x18]
mov dword [rsp + 0xa0], eax
cmp r15d, dword [rbx]
jl 0x14003140f
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 8]
mov ecx, dword [rsp + 0xa0]
movups xmmword [r14 + rax], xmm6
movsd qword [r14 + rax + 0x10], xmm7
mov dword [r14 + rax + 0x18], ecx
inc r15d
inc r12
add r14, 0x1c
mov eax, dword [rbx]
inc ebp
inc r13
add rsi, 0x1c
cmp ebp, eax
jl 0x14003138f
cmp eax, r15d
je 0x14003147d
mov ecx, dword [rbx + 4]
cmp r15d, ecx
jle 0x14003147a
test ecx, ecx
je 0x140031464
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140031469
mov eax, 8
cmp eax, r15d
mov edx, r15d
mov rcx, rbx
cmovg edx, eax
call fcn.140033880
mov dword [rbx], r15d
mov eax, dword [rbx + 0x18]
xor r13d, r13d
mov dword [rsp + 0xa0], r13d
test eax, eax
je 0x1400314a3
mov r13d, eax
mov dword [rsp + 0xa0], eax
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x18], 0
mov edx, dword [rbx + 0x50]
movabs rbp, 0x4924924924924925
xorps xmm9, xmm9
test edx, edx
je 0x14003159e
mov rcx, rbx
call fcn.140031d70
mov rsi, rax
test rax, rax
je 0x140031597
mov rax, qword [rbx + 8]
cmp rsi, rax
jb 0x1400314e8
movsxd r8, dword [rbx]
imul rdx, r8, 0x1c
add rdx, rax
cmp rsi, rdx
jbe 0x140031505
mov r8d, 0x5da
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.it___Data__it___DataSize
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r8d, dword [rbx]
mov r9, qword [rbx + 8]
mov rcx, rsi
sub rcx, r9
mov rax, rbp
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
add edx, dword [rbx + 0x54]
js 0x140031574
cmp edx, r8d
jge 0x140031574
movups xmm3, xmmword [rsi]
mov ecx, dword [rsi + 0x18]
movsd xmm2, qword [rsi + 0x10]
movsxd rax, edx
imul rdx, rax, 0x1c
add rdx, r9
movups xmm0, xmmword [rdx]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rdx + 0x10]
movsd qword [rsi + 0x10], xmm1
mov eax, dword [rdx + 0x18]
mov dword [rsi + 0x18], eax
movups xmmword [rdx], xmm3
movsd qword [rdx + 0x10], xmm2
mov dword [rdx + 0x18], ecx
mov eax, dword [rdx]
cmp eax, dword [rbx + 0x14]
cmove r13d, eax
mov dword [rsp + 0xa0], r13d
test dword [rbx + 0x4c], 0x800000
je 0x140031597
mov rcx, qword [0x14004dd30]
comiss xmm9, dword [rcx + 0x2d9c]
jb 0x140031597
mov eax, dword [rcx + 0x1c]
mov dword [rcx + 0x2d9c], eax
mov dword [rbx + 0x50], 0
mov ebp, dword [rbx]
mov ecx, dword [rdi + 0x1e44]
cmp ebp, ecx
jle 0x14003163f
test ecx, ecx
je 0x1400315bd
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1400315c2
mov eax, 8
cmp eax, ebp
mov esi, ebp
cmovg esi, eax
cmp esi, ecx
jle 0x14003163f
mov rax, qword [0x14004dd30]
test rax, rax
je 0x1400315df
inc dword [rax + 0x3c8]
movsxd rcx, esi
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rdi + 0x1e48]
mov r14, rax
test rdx, rdx
je 0x140031632
movsxd r8, dword [rdi + 0x1e40]
mov rcx, rax
shl r8, 3
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rdi + 0x1e48]
test rcx, rcx
je 0x14003162c
mov rax, qword [0x14004dd30]
test rax, rax
je 0x14003162c
dec dword [rax + 0x3c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1e48], r14
mov dword [rdi + 0x1e44], esi
xor r12d, r12d
mov dword [rdi + 0x1e40], ebp
mov ecx, dword [rbx]
xor r14d, r14d
mov qword [rsp + 0xb0], r12
xorps xmm7, xmm7
mov byte [rsp + 0xa8], r12b
mov edx, ecx
lea ebp, [r12 + 1]
test ecx, ecx
jle 0x140031797
xor r15d, r15d
mov r13d, r12d
cmp r14d, ecx
jl 0x140031694
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rsi, qword [rbx + 8]
mov eax, dword [rbx + 0x24]
add rsi, r12
cmp dword [rsi + 8], eax
jge 0x1400316bd
mov r8d, 0x174f
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui_widgets.cpp
lea rcx, str.tab__LastFrameVisible___tab_bar__PrevFrameVisible
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test r13, r13
je 0x1400316cb
mov eax, dword [rsi + 0xc]
cmp dword [r13 + 0xc], eax
jge 0x1400316ce
mov r13, rsi
mov ecx, dword [rsp + 0xa8]
mov eax, dword [rbx + 0x14]
cmp dword [rsi], eax
movzx ecx, cl
cmove ecx, ebp
mov dword [rsp + 0xa8], ecx
test r14d, r14d
jle 0x1400316f6
movss xmm0, dword [rdi + 0x159c]
jmp 0x1400316fa
movaps xmm0, xmm9
addss xmm0, dword [rsi + 0x18]
addss xmm7, xmm0
cmp r14d, dword [rdi + 0x1e40]
jl 0x140031726
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rdi + 0x1e48]
mov dword [r15 + rax], r14d
movss xmm6, dword [rsi + 0x18]
cmp r14d, dword [rdi + 0x1e40]
jl 0x140031759
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rdi + 0x1e48]
inc r14d
add r12, 0x1c
movss dword [rax + r15 + 4], xmm6
add r15, 8
mov ecx, dword [rbx]
mov edx, ecx
cmp r14d, ecx
jl 0x140031694
mov qword [rsp + 0xb0], r13
mov r12, qword [rsp + 0xb0]
mov r13d, dword [rsp + 0xa0]
movss xmm0, dword [rbx + 0x30]
subss xmm0, dword [rbx + 0x28]
movss xmm8, dword [0x140046008]
comiss xmm7, xmm0
jbe 0x140031a48
subss xmm7, xmm0
comiss xmm7, xmm9
jbe 0x140031a48
test byte [rbx + 0x4c], 0x20
je 0x140031a48
cmp ecx, ebp
jle 0x1400317f0
movsxd rdx, dword [rdi + 0x1e40]
lea r9, [0x140030de0]
mov rcx, qword [rdi + 0x1e48]
mov r8d, 8
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov r14, rbp
cmp ebp, dword [rbx]
jge 0x140031922
nop dword [rax + rax]
cmp dword [rdi + 0x1e40], 0
jg 0x140031823
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rsi, qword [rdi + 0x1e48]
cmp ebp, dword [rdi + 0x1e40]
jl 0x14003184c
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rdi + 0x1e48]
movss xmm0, dword [rsi + 4]
ucomiss xmm0, dword [rax + r14*8 + 4]
jp 0x1400319da
jne 0x1400319da
inc ebp
inc r14
cmp ebp, dword [rbx]
jl 0x140031800
mov eax, dword [rdi + 0x1e40]
test eax, eax
jg 0x140031897
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rdi + 0x1e48]
movss xmm1, dword [rax + 4]
subss xmm1, xmm8
movd xmm0, ebp
movaps xmm6, xmm7
cvtdq2ps xmm0, xmm0
xor r15d, r15d
xor esi, esi
divss xmm6, xmm0
minss xmm6, xmm1
test r14, r14
jle 0x140031909
cmp r15d, dword [rdi + 0x1e40]
jl 0x1400318e7
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rdi + 0x1e48]
inc r15d
movss xmm0, dword [rax + rsi*8 + 4]
subss xmm0, xmm6
movss dword [rax + rsi*8 + 4], xmm0
inc rsi
cmp rsi, r14
jl 0x1400318c4
movd xmm0, ebp
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm6
subss xmm7, xmm0
comiss xmm7, xmm9
ja 0x1400317f3
mov ecx, dword [rbx]
xor esi, esi
mov edx, ecx
test ecx, ecx
jle 0x140031aa7
xor r14d, r14d
cmp esi, dword [rdi + 0x1e40]
jl 0x140031955
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rdi + 0x1e48]
cvttss2si ecx, dword [rax + r14 + 4]
movd xmm6, ecx
cvtdq2ps xmm6, xmm6
cmp esi, dword [rdi + 0x1e40]
jl 0x14003198c
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rdi + 0x1e48]
movsxd rbp, dword [r14 + rax]
cmp ebp, dword [rbx]
jl 0x1400319b5
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 8]
inc esi
imul rcx, rbp, 0x1c
add r14, 8
movss dword [rcx + rax + 0x14], xmm6
mov ecx, dword [rbx]
mov edx, ecx
cmp esi, ecx
jl 0x140031933
jmp 0x140031aa7
mov eax, dword [rdi + 0x1e40]
cmp ebp, dword [rbx]
jge 0x140031879
cmp ebp, eax
jl 0x140031a06
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp dword [rdi + 0x1e40], 0
mov rsi, qword [rdi + 0x1e48]
jg 0x140031a30
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rdi + 0x1e48]
movss xmm1, dword [rax + 4]
subss xmm1, dword [rsi + r14*8 + 4]
jmp 0x1400318a8
mov rax, qword [0x14004dd30]
xor esi, esi
movss xmm6, dword [rax + 0x18f8]
mulss xmm6, dword [0x14004609c]
test ecx, ecx
jle 0x140031aa7
xor ebp, ebp
cmp esi, ecx
jl 0x140031a85
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 8]
inc esi
movss xmm0, dword [rax + rbp + 0x18]
minss xmm0, xmm6
movss dword [rax + rbp + 0x14], xmm0
add rbp, 0x1c
mov ecx, dword [rbx]
mov edx, ecx
cmp esi, ecx
jl 0x140031a85
movaps xmm7, xmmword [rsp + 0x40]
xor ebp, ebp
mov r15, qword [rsp + 0x60]
movaps xmm6, xmm9
mov r14, qword [rsp + 0x68]
test ecx, ecx
jle 0x140031b1c
xor esi, esi
cmp ebp, ecx
jl 0x140031ae0
mov r8d, 0x5b2
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 8]
movss dword [rsi + rcx + 0x10], xmm6
test r13d, r13d
jne 0x140031afc
mov eax, dword [rsi + rcx]
cmp dword [rdi + 0x1b60], eax
cmove r13d, eax
movss xmm0, dword [rsi + rcx + 0x14]
inc ebp
addss xmm0, dword [rdi + 0x159c]
mov ecx, dword [rbx]
add rsi, 0x1c
addss xmm6, xmm0
cmp ebp, ecx
jl 0x140031ae0
jmp 0x140031b1e
mov ecx, edx
subss xmm6, dword [rdi + 0x159c]
mov rbp, qword [rsp + 0xb8]
mov dword [rbx + 0x40], 0
maxss xmm6, xmm9
movss dword [rbx + 0x3c], xmm6
movss xmm0, dword [rbx + 0x30]
subss xmm0, dword [rbx + 0x28]
comiss xmm6, xmm0
jbe 0x140031b72
cmp ecx, 1
jle 0x140031b72
mov eax, dword [rbx + 0x4c]
test al, 0x10
jne 0x140031b72
test al, 0x40
je 0x140031b72
mov rcx, rbx
call fcn.140031e20
test rax, rax
je 0x140031b72
mov r13d, dword [rax]
mov dword [rbx + 0x14], r13d
cmp byte [rsp + 0xa8], 0
jne 0x140031b83
mov dword [rbx + 0x14], 0
mov ecx, dword [rbx + 0x14]
mov eax, ecx
test ecx, ecx
jne 0x140031ba1
cmp dword [rbx + 0x18], ecx
jne 0x140031ba1
test r12, r12
je 0x140031ba1
mov r13d, dword [r12]
mov eax, r13d
mov dword [rbx + 0x14], r13d
mov r12, qword [rsp + 0x78]
mov dword [rbx + 0x1c], eax
mov byte [rbx + 0x59], 0
test r13d, r13d
je 0x140031c95
mov edx, r13d
mov rcx, rbx
call fcn.140031d70
mov rsi, rax
test rax, rax
je 0x140031c95
mov rcx, qword [0x14004dd30]
mov r11, qword [rbx + 8]
movss xmm6, dword [rcx + 0x18f8]
cmp rax, r11
jb 0x140031bf4
movsxd r9, dword [rbx]
imul r10, r9, 0x1c
add r10, r11
cmp rax, r10
jbe 0x140031c0e
mov r8d, 0x5da
lea rdx, str.C:Users_sakooDownloads7.407.40___KorpImguiimgui.h
lea rcx, str.it___Data__it___DataSize
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, rsi
movabs rax, 0x4924924924924925
sub rcx, qword [rbx + 8]
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test edx, edx
jle 0x140031c40
movaps xmm2, xmm6
xorps xmm2, xmmword [0x140046300]
jmp 0x140031c44
movaps xmm2, xmm9
movss xmm1, dword [rsi + 0x10]
lea eax, [rdx + 1]
movaps xmm0, xmm1
addss xmm0, xmm2
cmp eax, dword [rbx]
jl 0x140031c5b
movaps xmm6, xmm8
addss xmm1, dword [rsi + 0x14]
movss xmm3, dword [rbx + 0x48]
comiss xmm3, xmm0
addss xmm1, xmm6
jbe 0x140031c76
movss dword [rbx + 0x48], xmm0
movaps xmm3, xmm0
movss xmm2, dword [rbx + 0x30]
subss xmm2, dword [rbx + 0x28]
movaps xmm0, xmm2
addss xmm0, xmm3
comiss xmm1, xmm0
jbe 0x140031c95
subss xmm1, xmm2
movss dword [rbx + 0x48], xmm1
movss xmm0, dword [rbx + 0x30]
subss xmm0, dword [rbx + 0x28]
movss xmm3, dword [rbx + 0x3c]
movss xmm4, dword [rbx + 0x44]
movaps xmm1, xmm3
mov eax, dword [rbx + 0x24]
movaps xmm8, xmmword [rsp + 0x30]
inc eax
movaps xmm6, xmmword [rsp + 0x50]
subss xmm1, xmm0
mov r13, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
minss xmm4, xmm1
movss xmm1, dword [rbx + 0x48]
maxss xmm4, xmm9
movss dword [rbx + 0x44], xmm4
movss xmm0, dword [rbx + 0x30]
subss xmm0, dword [rbx + 0x28]
subss xmm3, xmm0
minss xmm1, xmm3
maxss xmm1, xmm9
movaps xmm9, xmmword [rsp + 0x20]
movss dword [rbx + 0x48], xmm1
cmp eax, dword [rdi + 0x1990]
jge 0x140031d14
movss xmm0, dword [0x1400460e4]
jmp 0x140031d29
movss xmm0, dword [rdi + 0x18f8]
mulss xmm0, dword [rdi + 0x18]
mulss xmm0, dword [0x1400460a8]
ucomiss xmm4, xmm1
mov rdi, qword [rsp + 0x80]
jp 0x140031d38
je 0x140031d65
comiss xmm1, xmm4
jbe 0x140031d53
addss xmm4, xmm0
minss xmm4, xmm1
movss dword [rbx + 0x44], xmm4
add rsp, 0x90
pop rbx
ret
comiss xmm4, xmm1
jbe 0x140031d60
subss xmm4, xmm0
maxss xmm4, xmm1
movss dword [rbx + 0x44], xmm4
add rsp, 0x90
pop rbx
ret