Function at 0x1007dbf0
Capabilities:
Allocate or change rwx memory
Create directory
Create thread
Execute shellcode via indirect call
Get common file path
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100819d1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x1008b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 0
push eax
push 0
push 0x8000
push 0x10082500
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
test eax, eax
jne 0x1007dc67
push 0x104
push dword [ebp - 0x144]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
add esp, 0xc
jmp 0x1007dc7c
push str.error_getting_appdata_path_n
push 2
call edi
add esp, 4
push eax
call fcn.10004f00
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x1bc], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x1b8], 0
movups xmmword [ebp - 0x1cc], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007dca3
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x1cc]
call fcn.1000f330
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1b8]
mov eax, edx
mov ecx, dword [ebp - 0x1bc]
sub eax, ecx
push 0x12
push str.CelestialConfigs
cmp eax, 0x12
jb 0x1007dd12
cmp edx, 0xf
lea esi, [ebp - 0x1cc]
lea eax, [ecx + 0x12]
cmova esi, dword [ebp - 0x1cc]
add esi, ecx
mov dword [ebp - 0x1bc], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x12], 0
lea eax, [ebp - 0x1cc]
jmp 0x1007dd25
push dword [ebp - 0x144]
lea ecx, [ebp - 0x1cc]
push 0x12
call fcn.1000f770
mov dword [ebp - 0x130], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x140], xmm0
mov dword [ebp - 0x12c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x140], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x130], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1b8]
cmp ecx, 0xf
jbe 0x1007ddab
mov edx, dword [ebp - 0x1cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007dda1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007dda1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007e30a
add esp, 8
cmp dword [ebp - 0x12c], 0xf
lea eax, [ebp - 0x140]
push 0
cmova eax, dword [ebp - 0x140]
push eax
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0xf
mov byte [ebp - 0x1cc], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1007dded
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10116c58]
mov dword [ebp - 0x124], 0
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1011740c]
cmp eax, dword [esi + 4]
jle 0x1007de40
push 0x1011740c
call fcn.1007e394
add esp, 4
cmp dword [0x1011740c], 0xffffffff
jne 0x1007de40
mov eax, dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x1011740c
mov dword [0x10117414], eax
call fcn.1007e343
add esp, 4
mov eax, dword [0x10117410]
cmp eax, dword [esi + 4]
jle 0x1007de7d
push 0x10117410
call fcn.1007e394
add esp, 4
cmp dword [0x10117410], 0xffffffff
jne 0x1007de7d
mov eax, dword [0x10117414]
add eax, 6
push 0x10117410
mov dword [0x10117408], eax
call fcn.1007e343
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x124]
push eax
push 0x40
push 6
push dword [0x10117414]
call esi
mov eax, dword [0x10117414]
lea ecx, [ebp - 0x124]
push ecx
mov dword [eax + 2], 0x10117408
mov byte [eax + 6], 0xc3
push dword [ebp - 0x124]
push 6
push eax
call esi
mov dword [ebp - 0x120], 0
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
call edi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
push eax
push 0x10085654
lea eax, [ebp - 0x120]
push str.CONIN_
push eax
call esi
push 1
call edi
push eax
push 0x10085650
lea eax, [ebp - 0x120]
push str.CONOUT_
push eax
call esi
push 2
call edi
push eax
push 0x10085650
lea eax, [ebp - 0x120]
push str.CONOUT_
push eax
call esi
add esp, 0x3c
push 0x63
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [ebp - 0x1b1]
call fcn.100282a0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.DiscordHook.dll
call edi
mov dword [ebp - 0x120], eax
push str.dxgi.dll
call edi
push 0x1f4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x1007df50
push 0
mov dword [ebp - 0x1b0], 0x30
mov dword [ebp - 0x1ac], 0x40
mov dword [ebp - 0x1a8], 0x10023380
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 0
call edi
mov dword [ebp - 0x19c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x188], 0x1008445c
push eax
movups xmmword [ebp - 0x198], xmm0
mov dword [ebp - 0x184], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [ebp - 0x19c]
push 0
push 0
push 0x12c
push 0x12c
push 0x64
push 0x64
push 0xcf0000
push 0
push 0x1008445c
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [ebp - 0x120]
test ecx, ecx
je 0x1007e036
mov eax, dword [ecx + 0xb3ed4]
mov dword [0x10116d9c], eax
mov eax, dword [ecx + 0xb3ee8]
mov dword [ecx + 0xb3ed4], 0x100233d0
mov dword [0x10116de8], eax
mov dword [ecx + 0xb3ee8], 0x10023b10
jmp 0x1007e154
push 0x10116d58
mov dword [ebp - 0x154], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x124]
movlpd qword [ebp - 0x16c], xmm0
push eax
push 0x10116d60
push 0x10116d74
lea eax, [ebp - 0x180]
mov dword [ebp - 0x158], 2
push eax
push 7
push 2
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x180], 0
push eax
push 0
push 0
push 1
push 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x170], 0x1c
mov dword [ebp - 0x178], 0x3c
mov dword [ebp - 0x174], 1
mov dword [ebp - 0x148], 2
mov dword [ebp - 0x15c], 0x20
mov dword [ebp - 0x164], 1
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x150], 1
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x11c], 0xb000
mov dword [ebp - 0x118], 0xa000
call dword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
mov eax, dword [0x10116d74]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [eax]
lea eax, [ebp - 0x120]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [esi + 0x20]
mov dword [0x10116d9c], eax
mov eax, dword [esi + 0x34]
mov dword [0x10116de8], eax
lea eax, [ebp - 0x120]
push eax
mov dword [esi + 0x20], 0x100233d0
mov dword [esi + 0x34], 0x10023b10
push dword [ebp - 0x120]
push 4
push esi
call edi
push 1
call fcn.1007e3f8
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 3
push ecx
push 0
push eax
push 0x1007e240
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x128], eax
test eax, eax
je 0x1007e207
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x124]
test ecx, ecx
je 0x1007e1ff
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
jne 0x1007e1ff
mov ecx, dword [ebp - 0x12c]
cmp ecx, 0xf
jbe 0x1007e1e4
mov edx, dword [ebp - 0x140]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007e1da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007e1da
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007e30a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007e2f7
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x124], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3