Function at 0x670a45e0
Capabilities:
Create thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
mov eax, dword [ecx]
mov dword [ebp - 0x1c], 0
mov ebx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x34], eax
mov dword [esp], 0xa
call dword [sym.imp.kernel32.dll_IsProcessorFeaturePresent]
sub esp, 4
movzx eax, al
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.670a1e10
mov dword [esp], str.kernelbase.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
sub esp, 4
mov dword [0x670bba50], eax
test eax, eax
je 0x670a4675
mov dword [esp + 4], str.SetThreadDescription
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov dword [0x670bba4c], eax
test eax, eax
je 0x670a49a0
call fcn.670a4550
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
test ebx, ebx
je 0x670a4698
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp], 0x3c
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 4], 1
mov dword [esp], 0xc
mov ebx, eax
call sub.ucrtbase.dll_calloc
movd xmm0, dword [edi]
mov esi, eax
mov eax, dword [edi + 0xc]
movq xmm3, qword [edi + 4]
movd dword [ebx], xmm0
movq qword [ebx + 4], xmm3
mov dword [ebx + 0xc], eax
movzx eax, word [edi + 0x10]
mov word [ebx + 0x10], ax
pextrw eax, xmm0, 0
cmp ax, 0xfffe
je 0x670a4a30
mov edx, dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x50], edx
call edx
sub esp, 0x10
mov dword [ebp - 0x44], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov edx, dword [ebp - 0x50]
call edx
lea ecx, [ebp - 0x1c]
mov dword [esi + 8], eax
mov eax, dword [0x670bba58]
sub esp, 0x10
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x1c]
sub esp, 0x10
mov edx, dword [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x17
mov dword [esp + 4], 0x670b21c8
mov dword [esp], eax
call dword [edx + 0xc]
mov eax, dword [ebp - 0x1c]
sub esp, 0x14
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [ebp - 0x50], 0x493e0
sub esp, 4
mov dword [ebp - 0x4c], 0
and dword [ebp - 0x3c], 0x8000
je 0x670a47ca
mov dword [ebp - 0x50], 0x9c3ff
mov dword [ebp - 0x4c], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x20]
sub esp, 0x10
test eax, eax
je 0x670a4824
mov edx, dword [eax]
cmp word [eax], 0xfffe
mov dword [ebx], edx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov edx, dword [eax + 8]
mov dword [ebx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0xc], edx
je 0x670a49c0
movzx edx, word [eax + 0x10]
mov word [ebx + 0x10], dx
mov dword [esp], eax
call sub.ole32.dll_CoTaskMemFree
sub esp, 4
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov dword [esp + 0x20], 0x670bac38
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dword [esp + 8], 0x40000
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov eax, dword [ebp - 0x48]
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x44]
sub esp, 0x24
mov edx, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x34]
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
sub esp, 8
movd xmm0, dword [ebx]
mov ecx, eax
movd dword [edi], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [edi + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
pextrw eax, xmm0, 0
cmp ax, 0xfffe
je 0x670a49f0
mov edx, 0x12
mov word [edi + 0x10], dx
mov eax, dword [ebp - 0x3c]
movd xmm1, dword [esi + 8]
movd xmm4, dword [ebp - 0x38]
movd xmm0, dword [esi]
movd xmm5, dword [ebp - 0x44]
punpckldq xmm1, xmm4
punpckldq xmm0, xmm5
punpcklqdq xmm0, xmm1
movups xmmword [ebx + 0x28], xmm0
test eax, eax
je 0x670a4990
add ecx, 0x80000000
pxor xmm0, xmm0
pxor xmm6, xmm6
movddup xmm1, qword [0x670b2228]
cvtsi2sd xmm0, ecx
movapd xmm2, xmm1
addsd xmm0, qword [0x670b2228]
divsd xmm0, qword [0x670b2230]
movsd xmm6, xmm0
cmplepd xmm2, xmm6
andpd xmm1, xmm2
subpd xmm6, xmm1
pslld xmm2, 0x1f
cvttpd2dq xmm6, xmm6
pxor xmm6, xmm2
movd edx, xmm6
mov dword [ebx + 0x38], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x670a4420
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edi, dword [ebp - 0x40]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x38]
sub esp, 0x18
mov dword [edi], eax
mov eax, dword [ebp - 0x34]
mov dword [eax], esi
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, 0x51eb851f
mul ecx
shr edx, 5
jmp 0x670a493d
mov eax, dword [0x670bba50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [0x670bba50], 0
sub esp, 4
jmp 0x670a4675
mov edx, dword [eax + 0x10]
mov dword [ebx + 0x10], edx
mov edx, dword [eax + 0x14]
mov dword [ebx + 0x14], edx
mov edx, dword [eax + 0x18]
mov dword [ebx + 0x18], edx
mov edx, dword [eax + 0x1c]
mov dword [ebx + 0x1c], edx
mov edx, dword [eax + 0x20]
mov dword [ebx + 0x20], edx
mov edx, dword [eax + 0x24]
mov dword [ebx + 0x24], edx
jmp 0x670a4819
mov eax, 0x16
mov edx, dword [ebx + 0x24]
mov word [edi + 0x10], ax
movzx eax, word [ebx + 0x12]
mov word [edi + 0x12], ax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x50]
mov edi, dword [ebx + 0x1c]
mov dword [eax + 0xc], edx
mov dword [eax + 4], edi
mov edi, dword [ebx + 0x20]
mov dword [eax + 8], edi
jmp 0x670a48bf
mov ecx, dword [edi + 0x18]
movzx eax, word [edi + 0x12]
mov edx, dword [edi + 0x24]
mov dword [ebx + 0x18], ecx
mov ecx, dword [edi + 0x1c]
mov word [ebx + 0x12], ax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x1c], ecx
mov ecx, dword [edi + 0x20]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x20], ecx
jmp 0x670a46ec