Function at 0x10023810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp + 0x14]
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.100210a0
mov dword [esp], str.kernelbase.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [0x10042a48], eax
sub esp, 4
test eax, eax
je 0x10023880
mov dword [esp + 4], str.SetThreadDescription
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x10042a44], eax
sub esp, 8
test eax, eax
je 0x10023b60
call fcn.10023780
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100238a0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
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
cmp word [esi], 0xfffe
mov edi, eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
movzx eax, word [esi + 0x10]
mov word [ebx + 0x10], ax
je 0x10023bf0
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 - 0x40], edx
call edx
sub esp, 0x10
mov dword [ebp - 0x38], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov edx, dword [ebp - 0x40]
call edx
lea ecx, [ebp - 0x1c]
mov dword [edi + 8], eax
mov eax, dword [0x10042a50]
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], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x17
mov dword [esp + 4], 0x100310dc
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], 0x9c3ff
sub esp, 4
mov dword [ebp - 0x3c], 0
and eax, 0x8000
mov dword [ebp - 0x30], eax
jne 0x100239cf
mov dword [ebp - 0x40], 0x493e0
mov dword [ebp - 0x3c], 0
mov eax, dword [edi]
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 0x10023a2a
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 0x10023b80
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 ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov dword [esp + 0x20], 0x1003a518
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 8], 0x40000
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x38]
sub esp, 0x24
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x34]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
sub esp, 8
cmp word [ebx], 0xfffe
mov dword [esi], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
je 0x10023bb0
mov ecx, 0x12
mov word [esi + 0x10], cx
mov eax, dword [edi]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10023b50
fnstcw word [ebp - 0x2a]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], 0
fild qword [ebp - 0x38]
fdiv dword [0x1003113c]
movzx eax, word [ebp - 0x2a]
or ah, 0xc
mov word [ebp - 0x2c], ax
fldcw word [ebp - 0x2c]
fistp qword [ebp - 0x38]
fldcw word [ebp - 0x2a]
mov edx, dword [ebp - 0x38]
mov dword [ebx + 0x38], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x10023650
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edx, dword [ebx + 0x38]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x18]
sub esp, 0x18
mov dword [eax], edx
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x51eb851f
mul edx
shr edx, 5
jmp 0x10023aff
mov eax, dword [0x10042a48]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [0x10042a48], 0
sub esp, 4
jmp 0x10023880
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 0x10023a1e
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 - 0x40], eax
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x40]
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 0x10023ab4
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 0x100238ed