Function at 0x10009030
Capabilities:
Create process on windows
Create process suspended
Enumerate processes
Enumerate threads
Hide graphical window
Set current directory
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x1002c61c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
mov esi, 0x19
jmp 0x10009060
push str.BattlEye_Launcher
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x1000907a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x64
call edi
dec esi
jne 0x10009060
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 2
call esi
mov ebx, eax
mov dword [ebp - 0x258], ebx
cmp ebx, 0xffffffff
je 0x10009147
lea eax, [ebp - 0x238]
push eax
push ebx
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10009163
lea ecx, [ecx]
mov ecx, str.XQB.exe
lea eax, [ebp - 0x214]
jmp 0x100090d0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100090f6
test dx, dx
je 0x100090f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100090f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100090d0
xor eax, eax
jmp 0x100090fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10009186
lea ecx, [ebp - 0x238]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100090c0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x19
push str.BattlEye_Launcher
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x1000913b
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x64
call edi
dec esi
jne 0x10009121
jmp 0x10009050
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d867
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d867
mov esp, ebp
pop ebp
ret
push 0x44
lea edx, [ebp - 0x2b0]
push 0
push edx
call fcn.10017b60
add esp, 0xc
push str.C:ProgramData_
mov dword [ebp - 0x2b0], 0x44
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x2b0]
push ecx
push 0
push 0
push 0x8000004
push 0
push 0
push 0
lea edx, [ebp - 0x214]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10009163
push 0
push 4
mov dword [ebp - 0x254], 0x1c
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x10009223
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x268]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push ebx
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d867
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x254]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10009287
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x10009240
mov edx, dword [ebp - 0x248]
cmp edx, dword [ebp - 0x230]
jne 0x1000926f
mov eax, dword [ebp - 0x24c]
push eax
push 0
push 2
call ebx
mov esi, eax
test esi, esi
je 0x1000926f
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x254]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10009240
mov ebx, dword [ebp - 0x258]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
mov edx, dword [ebp - 0x268]
push edx
call esi
mov eax, dword [ebp - 0x264]
push eax
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1000d867
mov esp, ebp
pop ebp
ret