Function at 0x1001ca50
Capabilities:
Create thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x4c
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x14], 0
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x14]
mov dword [esp], 0xa
mov dword [ebp - 0x1c], eax
call dword [sym.imp.kernel32.dll_IsProcessorFeaturePresent]
sub esp, 4
movzx eax, al
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.1001a290
mov dword [esp], str.kernelbase.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [0x1003b070], eax
sub esp, 4
test eax, eax
je 0x1001cae5
mov dword [esp + 4], str.SetThreadDescription
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x1003b06c], eax
sub esp, 8
test eax, eax
je 0x1001cdf0
call fcn.1001c9c0
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
test ebx, ebx
je 0x1001cb08
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
mov edx, dword [esi]
movq xmm1, qword [esi + 4]
mov edi, eax
movzx eax, word [esi + 0x10]
cmp word [esi], 0xfffe
mov dword [ebx], edx
mov edx, dword [esi + 0xc]
mov word [ebx + 0x10], ax
mov dword [ebx + 0xc], edx
movq qword [ebx + 4], xmm1
je 0x1001ce80
mov edx, dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x34], edx
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov edx, dword [ebp - 0x34]
sub esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
lea ecx, [ebp - 0x14]
mov dword [edi + 8], eax
mov eax, dword [0x1003b078]
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 - 0x14]
sub esp, 0x10
mov edx, dword [eax]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x17
mov dword [esp + 4], 0x1002a410
mov dword [esp], eax
call dword [edx + 0xc]
mov eax, dword [ebp - 0x14]
sub esp, 0x14
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [ebp - 0x34], 0x9c3ff
sub esp, 4
and dword [ebp - 0x24], 0x8000
mov dword [ebp - 0x30], 0
jne 0x1001cc31
mov dword [ebp - 0x34], 0x493e0
mov dword [ebp - 0x30], 0
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
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 - 0x18]
sub esp, 0x10
test eax, eax
je 0x1001cc8c
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 0x1001ce10
movzx edx, word [eax + 0x10]
mov word [ebx + 0x10], dx
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
sub esp, 4
mov eax, dword [edi]
mov edx, dword [ebp - 0x34]
mov ecx, dword [eax]
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x20], 0x100335f8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 8], pe_overlay
mov dword [esp + 4], 0
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x2c]
sub esp, 0x24
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x34]
mov eax, dword [ebx]
movq xmm2, qword [ebx + 4]
sub esp, 8
cmp word [ebx], 0xfffe
mov edx, dword [ebx + 4]
mov dword [esi], eax
mov eax, dword [ebx + 0xc]
movq qword [esi + 4], xmm2
mov dword [esi + 0xc], eax
je 0x1001ce40
mov ecx, 0x12
mov word [esi + 0x10], cx
mov eax, dword [edi]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1001cde0
add edx, 0x80000000
pxor xmm0, xmm0
pxor xmm3, xmm3
movupd xmm4, xmmword [0x1002a480]
cvtsi2sd xmm0, edx
addsd xmm0, qword [0x1002a470]
divsd xmm0, qword [0x1002a478]
movsd xmm3, xmm0
movupd xmm5, xmm4
cmplepd xmm4, xmm3
andpd xmm5, xmm4
pslld xmm4, 0x1f
subpd xmm3, xmm5
cvttpd2dq xmm3, xmm3
pxor xmm3, xmm4
movd edx, xmm3
mov dword [ebx + 0x38], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x1001c2d0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov esi, dword [ebp - 0x28]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x38]
sub esp, 0x18
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov ecx, 0x51eb851f
mov eax, edx
mul ecx
shr edx, 5
jmp 0x1001cd89
mov eax, dword [0x1003b070]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [0x1003b070], 0
sub esp, 4
jmp 0x1001cae5
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 0x1001cc80
mov eax, 0x16
mov ecx, dword [ebx + 0x24]
mov word [esi + 0x10], ax
movzx eax, word [ebx + 0x12]
mov word [esi + 0x12], ax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x34]
mov esi, dword [ebx + 0x1c]
mov dword [eax + 0xc], ecx
mov dword [eax + 4], esi
mov esi, dword [ebx + 0x20]
mov dword [eax + 8], esi
jmp 0x1001cd17
mov ecx, dword [esi + 0x18]
movzx eax, word [esi + 0x12]
mov edx, dword [esi + 0x24]
mov dword [ebx + 0x18], ecx
mov ecx, dword [esi + 0x1c]
mov word [ebx + 0x12], ax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esi + 0x20]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], edx
jmp 0x1001cb53