Function at 0x10091a80
Capabilities:
Check os version
Create process on windows
Resume thread
Suspend thread
Terminate process

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 0x1024b62e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x238
push esi
mov dword [ebp - 0x18], 0
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x2c], esi
xor eax, eax
mov dword [ebp - 0x34], 0
push edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
push dword [ebx + 8]
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x148]
push eax
call sym.WMCommon.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_WM::GMSpecialFolderMap::GetRealPath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xe0]
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringToken::SplitCommand_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
mov eax, dword [0x103213c4]
add esp, 0xc
test eax, eax
jne 0x10091b6e
push 0x118
push eax
lea eax, [ebp - 0x244]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x248], 0x11c
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10091d24
mov eax, dword [ebp - 0x244]
mov dword [0x103213c4], eax
cmp eax, 5
jbe 0x10091d24
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMShellUtils::IsRunAsAdministrator_void_
test al, al
jne 0x10091d24
push 7
xor eax, eax
mov dword [ebp - 0x64], 0
push str.cmd.exe
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
call fcn.1001a600
mov byte [ebp - 4], 3
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x18], 1
cmovae edx, dword [ebp - 0x44]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10091bd6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.1001a600
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x74]
cmp edx, dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
cmovb edx, dword [ebp - 0x64]
cmp dword [ebp - 0x60], 8
push edx
cmovae ecx, dword [ebp - 0x74]
cmp dword [ebp - 0x48], 8
push ecx
cmovae eax, dword [ebp - 0x5c]
push eax
call sym.WMCommon.dll_public:_static_int___cdecl_WM::GMStringUtils::CompareNoCase_wchar_t_const___wchar_t_const___unsigned_int_
add esp, 0xc
test eax, eax
je 0x10091c28
cmp byte [ebx + 0x14], 0
mov byte [ebp - 0x11], 0
je 0x10091c2c
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x5c]
call fcn.1001a5a0
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 2
call fcn.1001a5a0
cmp byte [ebp - 0x11], 0
lea edi, [ebp - 0x8c]
mov ecx, str.runas
mov dword [ebp - 0xc8], 0x3c
mov eax, 0x10266aac
lea esi, [ebp - 0x44]
cmovne eax, ecx
xorps xmm0, xmm0
cmp dword [ebp - 0x78], 8
mov dword [ebp - 0x18], eax
cmovae edi, dword [ebp - 0x8c]
cmp dword [ebp - 0x30], 8
movlpd qword [ebp - 0xc4], xmm0
cmovae esi, dword [ebp - 0x44]
movlpd qword [ebp - 0xbc], xmm0
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xac], xmm0
movlpd qword [ebp - 0xa4], xmm0
movlpd qword [ebp - 0x9c], xmm0
movlpd qword [ebp - 0x94], xmm0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xc4], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10091e5c
cmp dword [ebp - 0xa8], 0x20
mov eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0x2c]
seta cl
mov dword [ebp - 0x28], eax
jmp 0x10091d91
push 0x40
lea eax, [ebp - 0x124]
mov dword [ebp - 0x128], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xfc], 0x81
lea ecx, [ebp - 0x28]
xor eax, eax
cmp dword [ebp - 0xcc], 8
mov word [ebp - 0xf8], ax
lea eax, [ebp - 0xe0]
cmovae eax, dword [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0x128]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
mov eax, dword [ebp - 0x28]
sete cl
test cl, cl
je 0x10091e5c
test eax, eax
je 0x10091e5c
cmp byte [ebx + 0x10], 0
je 0x10091e3b
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
call edi
test eax, eax
je 0x10091e48
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x10091e28
mov eax, dword [eax + 0xc]
push 0
mov byte [ebp - 0x11], 0
push dword [eax]
call edi
test eax, eax
je 0x10091deb
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10091deb
push eax
mov byte [ebp - 0x11], 1
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esi + 0xf8]
push 0xffffffffffffffff
mov eax, dword [eax + 0xc]
push dword [eax]
call edi
cmp byte [ebp - 0x11], 0
je 0x10091e0e
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10091e0e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi + 0xf4], 0
jne 0x10091e2d
mov ecx, dword [esi + 0xf8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x10091e2d
mov eax, dword [ebp - 0x28]
jmp 0x10091db1
push 0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x11], 1
jmp 0x10091e60
push dword [ebx + 0xc]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne byte [ebp - 0x11]
jmp 0x10091e60
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0xe0]
call fcn.1001a5a0
lea ecx, [ebp - 0x8c]
call fcn.1001a5a0
lea ecx, [ebp - 0x44]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10