Function at 0x10058480
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10150380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
push edi
mov edi, edx
mov dword [ebp - 0x244], edi
cmp eax, 0x40
jle 0x10058510
lea ecx, [eax*8 + 4]
mov eax, dword [0x1017bfd8]
test eax, eax
je 0x100584f6
inc dword [eax + 0x36c]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [ebp - 0x218]
add esp, 4
mov edx, eax
mov dword [ebp - 0x214], eax
jmp 0x1005851c
lea edx, [ebp - 0x210]
mov dword [ebp - 0x214], edx
mov eax, dword [ecx]
movss xmm1, dword [0x10145040]
lea eax, [edx + eax*4]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x238], eax
mov eax, dword [ecx + 4]
add eax, dword [ebp + 0x14]
movd xmm0, eax
lea eax, [ebx + ebx*4]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movss dword [edi + eax*4 + 4], xmm0
cmp dword [ecx + 4], esi
jle 0x100588b0
nop dword [eax + eax]
movd xmm0, dword [ebp - 0x238]
lea ebx, [ebp - 0x220]
mov eax, dword [ecx]
cvtdq2ps xmm0, xmm0
shl eax, 2
push eax
push 0
push edx
movss dword [ebp - 0x22c], xmm0
addss xmm0, xmm1
movss dword [ebp - 0x240], xmm0
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x218]
add esp, 0xc
mov eax, dword [eax]
lea eax, [eax*4 + 4]
push eax
push 0
push dword [ebp - 0x230]
call sub.VCRUNTIME140.dll_memset
movss xmm3, dword [ebp - 0x22c]
add esp, 0xc
test esi, esi
je 0x1005860c
xorps xmm1, xmm1
comiss xmm3, dword [esi + 0x18]
jb 0x100585f8
mov eax, dword [esi]
mov dword [ebx], eax
movss xmm0, dword [esi + 0x10]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x100588a8
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x10], 0
mov dword [esi], eax
mov dword [ebp - 0x21c], esi
jmp 0x100585fa
mov ebx, dword [ebx]
mov esi, dword [ebx]
test esi, esi
jne 0x100585c5
mov esi, dword [ebp - 0x220]
mov dword [ebp - 0x234], esi
movss xmm0, dword [ebp - 0x240]
comiss xmm0, dword [edi + 4]
jb 0x10058794
nop
movss xmm0, dword [edi + 4]
ucomiss xmm0, dword [edi + 0xc]
lahf
test ah, 0x44
jnp 0x10058779
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x10058649
mov ecx, eax
mov eax, dword [eax]
mov dword [ebp - 0x21c], eax
jmp 0x100586a7
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
jne 0x1005868b
mov eax, dword [0x1017bfd8]
test eax, eax
je 0x10058662
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 0x10058678
xor ecx, ecx
jmp 0x100586a7
mov ecx, dword [ebp - 0x228]
mov dword [eax], ecx
mov ecx, 0x7d0
mov dword [ebp - 0x228], eax
dec ecx
mov dword [ebp - 0x23c], ecx
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx + eax*4]
add ecx, 4
movss xmm2, dword [edi + 8]
movss xmm0, dword [edi + 0xc]
subss xmm2, dword [edi]
subss xmm0, dword [edi + 4]
divss xmm2, xmm0
test ecx, ecx
je 0x100588a8
movss xmm4, dword [0x10145040]
xorps xmm0, xmm0
ucomiss xmm2, xmm0
movss dword [ecx + 8], xmm2
lahf
test ah, 0x44
jnp 0x100586e6
movaps xmm0, xmm4
divss xmm0, xmm2
movss xmm3, dword [ebp - 0x22c]
movss dword [ecx + 0xc], xmm0
movaps xmm1, xmm3
subss xmm1, dword [edi + 4]
movd xmm0, dword [ebp + 0x10]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm2
addss xmm1, dword [edi]
subss xmm1, xmm0
movss dword [ecx + 4], xmm1
cmp dword [edi + 0x10], 0
je 0x1005871f
movaps xmm0, xmm4
jmp 0x10058727
movss xmm0, dword [0x10145324]
cmp dword [ebp - 0x224], 0
movss dword [ecx + 0x10], xmm0
mov eax, dword [edi + 4]
mov dword [ecx + 0x14], eax
movss xmm0, dword [edi + 0xc]
movss dword [ecx + 0x18], xmm0
movaps xmm1, xmm0
mov dword [ecx], 0
jne 0x10058760
cmp dword [ebp + 0x14], 0
je 0x10058760
comiss xmm3, xmm0
jbe 0x10058760
movss dword [ecx + 0x18], xmm3
jmp 0x10058769
comiss xmm1, xmm3
jb 0x100588a8
mov dword [ecx], esi
mov esi, ecx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x220], esi
movss xmm0, dword [ebp - 0x240]
add edi, 0x14
mov dword [ebp - 0x244], edi
comiss xmm0, dword [edi + 4]
jae 0x10058620
mov ebx, dword [ebp - 0x214]
test esi, esi
je 0x100587c0
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x230]
push ecx
movss dword [esp], xmm3
mov ecx, ebx
push esi
push dword [eax]
lea edx, [edx + 4]
call fcn.10057e00
add esp, 0xc
mov eax, dword [ebp - 0x218]
xor edx, edx
xorps xmm1, xmm1
cmp dword [eax], edx
jle 0x10058848
mov edi, dword [ebp - 0x230]
mov esi, eax
mov ebx, dword [ebp - 0x214]
sub edi, ebx
movss xmm2, dword [0x10145264]
movss xmm3, dword [0x10144fec]
addss xmm1, dword [edi + ebx]
movaps xmm0, xmm1
addss xmm0, dword [ebx]
call fcn.10003c50
mulss xmm0, xmm2
mov eax, 0xff
addss xmm0, xmm3
cvttss2si ecx, xmm0
cmp ecx, 0xff
cmovg ecx, eax
mov eax, dword [esi + 8]
imul eax, dword [ebp - 0x224]
add ebx, 4
add eax, dword [esi + 0xc]
mov byte [eax + edx], cl
inc edx
cmp edx, dword [esi]
jl 0x100587f3
mov esi, dword [ebp - 0x234]
mov edi, dword [ebp - 0x244]
mov ebx, dword [ebp - 0x214]
lea ecx, [ebp - 0x220]
test esi, esi
je 0x10058877
mov eax, esi
nop dword [eax]
nop dword [eax + eax]
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 0x10058860
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x218]
inc eax
inc dword [ebp - 0x238]
mov dword [ebp - 0x224], eax
cmp eax, dword [ecx + 4]
jge 0x100588b6
movss xmm1, dword [0x10145040]
mov edx, dword [ebp - 0x214]
jmp 0x10058560
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ebx, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x228]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ecx, ecx
je 0x100588e3
mov eax, dword [0x1017bfd8]
mov esi, dword [ecx]
test eax, eax
je 0x100588d7
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov ecx, esi
test esi, esi
jne 0x100588c6
lea eax, [ebp - 0x210]
cmp ebx, eax
je 0x10058906
test ebx, ebx
je 0x10058900
mov eax, dword [0x1017bfd8]
test eax, eax
je 0x10058900
dec dword [eax + 0x36c]
push ebx
call edi
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010fe2d
mov esp, ebp
pop ebp
ret