Function at 0x101240c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, edx
mov dword [ebp - 0x18], 0
mov edx, ecx
mov dword [ebp - 0x2c], esi
push edi
xor edi, edi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], 0
mov eax, dword [edx]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
cmp eax, 0x40
jle 0x10124126
lea ecx, [eax*8 + 4]
mov eax, dword [0x101e6b78]
test eax, eax
je 0x10124112
inc dword [eax + 0x36c]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, dword [ebp - 4]
add esp, 4
mov ecx, eax
mov dword [ebp - 8], eax
jmp 0x1012412f
lea ecx, [ebp - 0x23c]
mov dword [ebp - 8], ecx
mov eax, dword [edx]
movss xmm3, dword [0x1017f0d8]
lea eax, [ecx + eax*4]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
add eax, ecx
movd xmm0, eax
mov eax, dword [ebp + 8]
cvtdq2ps xmm0, xmm0
lea eax, [eax + eax*4]
addss xmm0, xmm3
movss dword [esi + eax*4 + 4], xmm0
test ecx, ecx
jle 0x1012443b
mov dword [ebp - 0x38], 0xff
movd xmm2, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov esi, dword [edx]
xorps xmm1, xmm1
cvtdq2ps xmm2, xmm2
shl esi, 2
push esi
push 0
mov dword [ebp - 0x34], eax
push dword [ebp - 8]
movaps xmm0, xmm2
addss xmm2, xmm3
addss xmm0, xmm1
movss dword [ebp - 0x30], xmm2
movss dword [ebp + 8], xmm0
call sub.VCRUNTIME140.dll_memset
lea eax, [esi + 4]
push eax
push 0
push dword [ebp - 0x1c]
call sub.VCRUNTIME140.dll_memset
movss xmm3, dword [ebp + 8]
add esp, 0x18
test edi, edi
je 0x10124201
mov ecx, dword [ebp - 0x34]
xorps xmm1, xmm1
comiss xmm3, dword [edi + 0x18]
jb 0x101241f3
mov eax, dword [edi]
mov dword [ecx], eax
movss xmm0, dword [edi + 0x10]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x10124433
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x10], 0
mov dword [edi], eax
mov dword [ebp - 0xc], edi
jmp 0x101241f5
mov ecx, dword [ecx]
mov edi, dword [ecx]
test edi, edi
jne 0x101241c6
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x20], edi
mov esi, dword [ebp - 0x2c]
movss xmm0, dword [ebp - 0x30]
comiss xmm0, dword [esi + 4]
jb 0x10124361
movss xmm0, dword [esi + 4]
ucomiss xmm0, dword [esi + 0xc]
lahf
test ah, 0x44
jnp 0x1012434c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10124236
mov ecx, eax
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x10124285
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x1012426f
mov eax, dword [0x101e6b78]
test eax, eax
je 0x1012424c
inc dword [eax + 0x36c]
push 0xdac4
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
test eax, eax
jne 0x10124262
xor ecx, ecx
jmp 0x10124285
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, 0x7d0
mov dword [ebp - 0x18], eax
dec ecx
mov dword [ebp - 0x28], ecx
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx + eax*4]
add ecx, 4
movss xmm2, dword [esi + 8]
movss xmm0, dword [esi + 0xc]
subss xmm2, dword [esi]
subss xmm0, dword [esi + 4]
divss xmm2, xmm0
test ecx, ecx
je 0x10124433
movss xmm4, dword [0x1017f0d8]
xorps xmm0, xmm0
ucomiss xmm2, xmm0
movss dword [ecx + 8], xmm2
lahf
test ah, 0x44
jnp 0x101242c4
movaps xmm0, xmm4
divss xmm0, xmm2
movss xmm3, dword [ebp + 8]
movss dword [ecx + 0xc], xmm0
movaps xmm1, xmm3
subss xmm1, dword [esi + 4]
movd xmm0, dword [ebp + 0x10]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm2
addss xmm1, dword [esi]
subss xmm1, xmm0
movss dword [ecx + 4], xmm1
cmp dword [esi + 0x10], 0
je 0x101242fa
movaps xmm0, xmm4
jmp 0x10124302
movss xmm0, dword [0x1017f35c]
cmp dword [ebp - 0x14], 0
movss dword [ecx + 0x10], xmm0
mov eax, dword [esi + 4]
mov dword [ecx + 0x14], eax
movss xmm1, dword [esi + 0xc]
movss dword [ecx + 0x18], xmm1
movaps xmm0, xmm1
mov dword [ecx], 0
jne 0x10124339
cmp dword [ebp + 0x14], 0
je 0x10124339
comiss xmm3, xmm1
jbe 0x10124339
movss dword [ecx + 0x18], xmm3
movaps xmm0, xmm3
comiss xmm0, xmm3
jb 0x10124433
mov dword [ecx], edi
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], edi
movss xmm0, dword [ebp - 0x30]
add esi, 0x14
mov dword [ebp - 0x2c], esi
comiss xmm0, dword [esi + 4]
jae 0x10124213
mov esi, dword [ebp - 8]
test edi, edi
je 0x10124384
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
push ecx
movss dword [esp], xmm3
mov ecx, esi
push edi
push dword [eax]
lea edx, [edx + 4]
call fcn.101244a0
add esp, 0xc
mov edx, dword [ebp - 4]
xor ecx, ecx
xorps xmm1, xmm1
cmp dword [edx], ecx
jle 0x101243f7
mov eax, dword [ebp - 4]
mov edx, esi
mov edi, dword [ebp - 0x1c]
movss xmm2, dword [0x1017f970]
sub edi, esi
movss xmm3, dword [0x1017f2b8]
mov esi, dword [eax + 8]
imul esi, dword [ebp - 0x14]
movss xmm4, dword [0x1017f094]
add esi, dword [eax + 0xc]
nop dword [eax]
addss xmm1, dword [edi + edx]
movaps xmm0, xmm1
addss xmm0, dword [edx]
andps xmm0, xmm2
mulss xmm0, xmm3
addss xmm0, xmm4
cvttss2si eax, xmm0
cmp eax, 0xff
cmovg eax, dword [ebp - 0x38]
add edx, 4
mov byte [ecx + esi], al
inc ecx
mov eax, dword [ebp - 4]
cmp ecx, dword [eax]
jl 0x101243c0
mov edi, dword [ebp - 0x20]
mov edx, eax
lea ecx, [ebp - 0x10]
test edi, edi
je 0x10124417
mov eax, edi
movss xmm0, dword [eax + 8]
addss xmm0, dword [eax + 4]
movss dword [eax + 4], xmm0
mov ecx, dword [ecx]
mov eax, dword [ecx]
test eax, eax
jne 0x10124400
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [edx + 4]
jge 0x1012443b
movss xmm3, dword [0x1017f0d8]
jmp 0x10124170
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [ebp - 0x18]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ecx, ecx
je 0x1012446d
nop dword [eax + eax]
mov eax, dword [0x101e6b78]
mov esi, dword [ecx]
test eax, eax
je 0x10124461
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov ecx, esi
test esi, esi
jne 0x10124450
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x23c]
cmp ecx, eax
je 0x10124493
test ecx, ecx
je 0x1012448d
mov eax, dword [0x101e6b78]
test eax, eax
je 0x1012448d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret