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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x100fe040]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x10]
mov ecx, 0x1010cb2b
push edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], eax
call fcn.100b1e70
test byte [esi + 8], 0x42
mov edi, dword [0x1010223c]
jne 0x10040f5e
cmp dword [esi + 0x90], 0
jg 0x10040f5e
cmp dword [esi + 0x94], 0
jg 0x10040f5e
cmp byte [esi + 0x7b], 0
je 0x10040f5e
movss xmm0, dword [esi + 0x44]
xor eax, eax
movss xmm2, dword [edi + 0x18bc]
mov edx, 4
addss xmm0, dword [0x100f5ba8]
mov cl, byte [edi + 0xaf]
movaps xmm1, xmm2
mulss xmm2, dword [0x100f5b34]
test cl, cl
mulss xmm1, dword [0x100f5bbc]
cmovne eax, edx
mov dword [esp + 0x48], eax
addss xmm0, xmm2
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100f5b84]
cvttss2si esi, xmm0
je 0x10040705
movss xmm0, dword [0x100f5c58]
jmp 0x10040708
xorps xmm0, xmm0
movss dword [esp + 0x10], xmm0
mov ecx, str.RESIZE
movss xmm0, dword [0x100f5d58]
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x28], xmm0
movss dword [esp + 0xc], xmm0
call fcn.10047170
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0xc], ecx
jle 0x10040ad8
nop word [eax + eax]
mov eax, dword [esp + 0x18]
lea edx, [ecx + ecx*2]
xorps xmm6, xmm6
mov dword [esp + 0x44], edx
cvtsi2ss xmm6, esi
movss xmm0, dword [eax + 0xc]
movss xmm1, dword [eax + 0x10]
movaps xmm3, xmm0
addss xmm3, dword [eax + 0x14]
movaps xmm2, xmm1
addss xmm2, dword [eax + 0x18]
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [edx*8 + 0x10102270]
mulss xmm2, dword [edx*8 + 0x10102274]
addss xmm3, xmm0
movss xmm0, dword [edx*8 + 0x10102278]
movaps xmm5, xmm0
mulss xmm0, dword [esp + 0x10]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [edx*8 + 0x1010227c]
movaps xmm4, xmm1
mulss xmm1, dword [esp + 0x10]
mulss xmm4, xmm6
addss xmm5, xmm3
subss xmm3, xmm0
addss xmm4, xmm2
subss xmm2, xmm1
movss dword [esp + 0x58], xmm5
comiss xmm3, xmm5
movss dword [esp + 0x50], xmm3
movss dword [esp + 0x54], xmm2
movss dword [esp + 0x5c], xmm4
jbe 0x10040803
movss dword [esp + 0x50], xmm5
movss dword [esp + 0x58], xmm3
comiss xmm2, xmm4
jbe 0x10040814
movss dword [esp + 0x54], xmm4
movss dword [esp + 0x5c], xmm2
push 0x2020
lea edx, [esp + 0xe]
push edx
lea edx, [esp + 0x13]
push edx
push ecx
mov ecx, eax
call fcn.10039910
mov edx, eax
lea ecx, [esp + 0x5c]
call fcn.1006f0b0
mov dl, byte [esp + 0x17]
add esp, 0xc
test dl, dl
jne 0x1004084d
mov al, byte [esp + 0xa]
test al, al
je 0x10040a68
mov ecx, dword [esp + 0x14]
mov eax, ecx
not eax
and eax, 1
add eax, 5
mov dword [edi + 0x1c74], eax
mov al, byte [esp + 0xa]
test al, al
je 0x10040a6c
cmp byte [edi + 0x3d5], 0
je 0x100408c2
test ecx, ecx
jne 0x100408c2
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x64]
mov edx, dword [esp + 0x18]
push dword [eax + 4]
push dword [eax]
call fcn.1003fc80
add esp, 8
movss xmm0, dword [eax]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0xc], xmm0
call fcn.10039e40
cmp byte [esp + 0xa], 0
je 0x10040a82
mov ecx, 0x21
jmp 0x10040a90
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x3c]
movd xmm4, esi
cvtdq2ps xmm4, xmm4
movss xmm3, dword [eax*8 + 0x1010227c]
xorps xmm4, xmmword [0x100f6060]
movaps xmm2, xmm3
mulss xmm2, dword [esp + 0x10]
movaps xmm7, xmm4
movss xmm1, dword [eax*8 + 0x10102278]
movss xmm6, dword [eax*8 + 0x10102274]
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x10]
movss xmm5, dword [eax*8 + 0x10102270]
mov eax, dword [esp + 0x18]
mov edx, eax
mulss xmm4, xmm3
mulss xmm7, xmm1
movss xmm1, dword [edi + 0xe4]
subss xmm4, xmm2
subss xmm1, dword [edi + 0x19e0]
subss xmm7, xmm0
mulss xmm4, xmm6
mulss xmm7, xmm5
addss xmm4, xmm2
addss xmm7, xmm0
movss xmm0, dword [edi + 0xe0]
subss xmm0, dword [edi + 0x19dc]
addss xmm1, xmm4
addss xmm7, xmm0
movss xmm0, dword [eax + 0xc]
movaps xmm2, xmm0
addss xmm0, dword [eax + 0x14]
movss dword [esp + 0x24], xmm1
movss xmm1, dword [eax + 0x10]
movss xmm4, dword [esp + 0x24]
subss xmm2, xmm7
movaps xmm3, xmm1
addss xmm1, dword [eax + 0x18]
subss xmm3, xmm4
mulss xmm2, xmm5
mulss xmm3, xmm6
addss xmm2, xmm7
subss xmm7, xmm0
addss xmm3, xmm4
subss xmm4, xmm1
movss dword [esp + 0x1c], xmm2
mulss xmm7, xmm5
mulss xmm4, xmm6
addss xmm7, xmm0
movss dword [esp + 0x20], xmm3
addss xmm4, xmm1
subss xmm7, xmm2
subss xmm4, xmm3
movss dword [esp + 0x2c], xmm7
movss dword [esp + 0xc], xmm7
movss dword [esp + 0x30], xmm4
push dword [esp + 0x30]
movss dword [esp + 0x28], xmm4
push dword [esp + 0x30]
call fcn.1003fc80
mov ecx, dword [esp + 0x4c]
add esp, 8
xorps xmm2, xmm2
movss xmm0, dword [ecx*8 + 0x10102270]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x28], xmm0
lahf
test ah, 0x44
jp 0x10040a2c
subss xmm0, dword [esp + 0xc]
movss xmm1, dword [esp + 0x1c]
subss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
movss xmm0, dword [ecx*8 + 0x10102274]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x40]
movss dword [esp + 0xc], xmm0
lahf
test ah, 0x44
jp 0x10040a60
subss xmm0, dword [esp + 0x24]
movss xmm1, dword [esp + 0x20]
subss xmm1, xmm0
movss dword [esp + 0x20], xmm1
mov al, byte [esp + 0xa]
mov dl, byte [esp + 0xb]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100408ad
test al, al
jne 0x100408b8
test dl, dl
je 0x10040aca
jmp 0x10040a86
mov dl, byte [esp + 0xb]
xor ecx, ecx
test dl, dl
setne cl
add ecx, 0x1f
mov eax, dword [0x1010223c]
add ecx, ecx
movups xmm0, xmmword [eax + ecx*8 + 0x15a8]
lea ecx, [esp + 0x6c]
movups xmmword [esp + 0x6c], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [eax + 0x1500]
movss dword [esp + 0x78], xmm0
call fcn.10036860
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [ebp + 0xc]
jl 0x10040750
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x48], ecx
jbe 0x10040cf8
nop dword [eax + eax]
mov edx, dword [esp + 0x18]
movd xmm0, esi
push ecx
cvtdq2ps xmm3, xmm0
mov dword [esp], 0x40800000
push ecx
lea ecx, [esp + 0x74]
call fcn.100404e0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x12]
add esp, 8
push 0x20
push eax
lea eax, [esp + 0x13]
push eax
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
call fcn.10039910
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.1006f0b0
mov dl, byte [esp + 0x16]
add esp, 0xc
cmp byte [esp + 0xb], 0
je 0x10040b57
movss xmm0, dword [edi + 0x19b4]
comiss xmm0, dword [0x100f5b0c]
ja 0x10040b5f
test dl, dl
je 0x10040ce5
mov ecx, dword [esp + 0x10]
mov eax, ecx
and eax, 1
add eax, 3
mov dword [edi + 0x1c74], eax
test dl, dl
je 0x10040ce9
mov eax, dword [esp + 0x60]
xorps xmm4, xmm4
movss dword [esp + 0xc], xmm4
xorps xmm5, xmm5
movss dword [esp + 0x14], xmm5
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
movss xmm6, dword [eax + 0xc]
movss xmm7, dword [eax + 0x10]
movaps xmm0, xmm6
movaps xmm1, xmm7
test ecx, ecx
jne 0x10040bc3
movss xmm1, dword [edi + 0xe4]
subss xmm1, dword [edi + 0x19e0]
addss xmm1, dword [0x100f5c58]
jmp 0x10040bfe
cmp ecx, 1
jne 0x10040bd2
movss xmm5, dword [0x100f5ba8]
jmp 0x10040be6
cmp ecx, 2
jne 0x10040be1
movss xmm4, dword [0x100f5ba8]
jmp 0x10040ba9
cmp ecx, 3
jne 0x10040c0a
movss xmm0, dword [edi + 0xe0]
subss xmm0, dword [edi + 0x19dc]
addss xmm0, dword [0x100f5c58]
movss dword [esp + 0xc], xmm4
movss dword [esp + 0x14], xmm5
movaps xmm3, xmm7
lea ecx, [esp + 0x3c]
addss xmm7, dword [eax + 0x18]
subss xmm3, xmm1
movaps xmm2, xmm6
addss xmm6, dword [eax + 0x14]
subss xmm2, xmm0
mov edx, eax
mulss xmm3, xmm4
mulss xmm2, xmm5
addss xmm3, xmm1
subss xmm1, xmm7
addss xmm2, xmm0
subss xmm0, xmm6
movss dword [esp + 0x20], xmm3
mulss xmm1, xmm4
mulss xmm0, xmm5
addss xmm1, xmm7
movss dword [esp + 0x1c], xmm2
addss xmm0, xmm6
subss xmm1, xmm3
subss xmm0, xmm2
movss dword [esp + 0x38], xmm1
push dword [esp + 0x38]
movss dword [esp + 0x38], xmm0
push dword [esp + 0x38]
call fcn.1003fc80
movss xmm0, dword [esp + 0x1c]
add esp, 8
xorps xmm2, xmm2
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x28], xmm0
lahf
test ah, 0x44
jp 0x10040cb4
subss xmm0, dword [esp + 0x34]
movss xmm1, dword [esp + 0x1c]
subss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
movss xmm0, dword [esp + 0xc]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x40]
movss dword [esp + 0xc], xmm0
lahf
test ah, 0x44
jp 0x10040ce5
subss xmm0, dword [esp + 0x38]
movss xmm1, dword [esp + 0x20]
subss xmm1, xmm0
movss dword [esp + 0x20], xmm1
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x48]
jl 0x10040af0
mov eax, dword [0x1010223c]
mov esi, dword [eax + 0x199c]
cmp dword [esi + 0x1c0], 0
jg 0x10040d24
push 0x4c3
push str.D:onistrix_2018imguiimgui.h
push str.Size___0
call dword [sym.imp.ucrtbased.dll__wassert]
add esp, 0xc
dec dword [esi + 0x1c0]
mov eax, dword [edi + 0x1aec]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x10040eb5
cmp dword [eax + 0x2f0], esi
jne 0x10040eb5
cmp dword [edi + 0x1ad4], 3
xorps xmm1, xmm1
xorps xmm3, xmm3
movss dword [esp + 0x10], xmm1
movss dword [esp + 0x24], xmm3
jne 0x10040d9c
cmp byte [edi + 0xf9], 0
je 0x10040d9c
push ecx
mov dword [esp], 0
lea ecx, [esp + 0x68]
push 0
mov edx, 1
call fcn.1004a620
add esp, 8
movss xmm3, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esp + 0x24], xmm3
movss dword [esp + 0x10], xmm1
cmp dword [edi + 0x1ad4], 4
jne 0x10040dd8
push ecx
mov dword [esp], 0
lea ecx, [esp + 0x40]
push 0
xorps xmm3, xmm3
mov edx, 2
call fcn.1004a620
add esp, 8
movss xmm3, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esp + 0x24], xmm3
movss dword [esp + 0x10], xmm1
xorps xmm2, xmm2
ucomiss xmm3, xmm2
lahf
test ah, 0x44
jp 0x10040df1
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x10040eb8
movss xmm1, dword [edi + 0xa4]
lea ecx, [esp + 0x6c]
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x100f5d10]
mov eax, dword [0x1010223c]
minss xmm1, dword [edi + 0xa8]
mov byte [edi + 0x1b00], 0
mov byte [edi + 0x1b0f], 1
mulss xmm1, xmm0
movups xmm0, xmmword [eax + 0x17b8]
cvttss2si esi, xmm1
movups xmmword [esp + 0x6c], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [eax + 0x1500]
movss dword [esp + 0x78], xmm0
call fcn.10036860
movss xmm1, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
movd xmm0, esi
mov esi, dword [esp + 0x18]
mov edx, esi
cvtdq2ps xmm0, xmm0
mov dword [ecx], eax
lea ecx, [esp + 0x2c]
mulss xmm1, xmm0
addss xmm1, dword [esi + 0x1c]
movss dword [esp + 0x2c], xmm1
movss xmm1, dword [esp + 0x10]
mulss xmm1, xmm0
addss xmm1, dword [esi + 0x20]
movss dword [esp + 0x30], xmm1
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.1003fc80
add esp, 8
xorps xmm2, xmm2
movss xmm0, dword [eax]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 4]
jmp 0x10040ebe
xorps xmm2, xmm2
movss xmm0, dword [esp + 0xc]
movss xmm1, dword [esp + 0x28]
movss xmm3, dword [0x100f5d58]
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jnp 0x10040f00
test dword [esi + 8], 0x100
mov ecx, dword [0x1010223c]
movss dword [esi + 0x1c], xmm1
movss dword [esi + 0x20], xmm0
jne 0x10040f00
comiss xmm2, dword [ecx + 0x2c50]
jb 0x10040f00
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2c50], eax
movss xmm0, dword [esp + 0x1c]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jnp 0x10040f52
test dword [esi + 8], 0x100
cvttss2si eax, xmm0
mov ecx, dword [0x1010223c]
movd xmm1, eax
cvttss2si eax, dword [esp + 0x20]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0xc], xmm1
movss dword [esi + 0x10], xmm0
jne 0x10040f52
comiss xmm2, dword [ecx + 0x2c50]
jb 0x10040f52
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2c50], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.100afa20
mov esp, ebp
pop ebp
ret