Function at 0x1002a3f0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058a5b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x188
mov eax, dword [0x10070090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], ecx
mov edi, dword [ebx + 8]
push ecx
lea ecx, [ebp - 0x198]
call fcn.1001f930
lea ecx, [ebp - 0x188]
mov dword [ebp - 4], 0
call fcn.10021620
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x74]
push eax
call fcn.1001b8f0
mov edx, eax
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.10021890
mov edx, str.___ExportSharedPalette__
mov ecx, eax
call fcn.100218c0
mov ecx, dword [ebp - 0x7c]
mov esi, eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1001b8f0
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.10021890
mov edx, 0x100673ac
mov ecx, eax
call fcn.100218c0
mov ecx, dword [ebp - 0x78]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1001b8f0
mov edx, eax
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.10021890
mov edx, 0x1006727c
mov ecx, eax
call fcn.100218c0
lea ecx, [ebp - 0x2c]
call fcn.10007370
lea ecx, [ebp - 0x5c]
call fcn.10007370
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0
call fcn.10007370
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x198]
call fcn.1001f8e0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x44]
call fcn.1001fbc0
lea ecx, [ebp - 0x44]
mov esi, dword [eax]
lea eax, [ebp - 0xa0]
push eax
call fcn.1001fc00
push ecx
push esi
lea ecx, [ebp - 0x9c]
push dword [eax]
call fcn.10021b90
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x78], 0
call fcn.1001f040
lea eax, [ebp - 0x90]
mov dword [ebp - 0xe8], 0x44
push eax
lea eax, [ebp - 0xe8]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x9c]
movlpd qword [ebp - 0xe4], xmm0
movlpd qword [ebp - 0xdc], xmm0
movlpd qword [ebp - 0xd4], xmm0
movlpd qword [ebp - 0xcc], xmm0
movlpd qword [ebp - 0xc4], xmm0
movlpd qword [ebp - 0xbc], xmm0
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xac], xmm0
movups xmmword [ebp - 0x90], xmm0
call fcn.1000e8f0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1002a644
push 0xffffffffffffffff
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x90]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x8c]
call esi
cmp dword [ebp - 0x80], 0
je 0x1002a608
push str.Lunar_Magic_failed_to_export_shared_palettes
jmp 0x1002a649
lea ecx, [ebp - 0x9c]
call fcn.1001f080
lea ecx, [ebp - 0x44]
call fcn.10007370
lea ecx, [ebp - 0x198]
call fcn.1001ecb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002eca1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Failed_to_create_Lunar_Magic_process_to_export_shared_palettes
lea ecx, [ebp - 0x20]
call fcn.10001760
push 0x1006ef60
lea eax, [ebp - 0x20]
push eax
call fcn.10030c9e
int3