Function at 0x49336c
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ee97b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x5550ec]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push esi
push edi
mov eax, dword [0x5550ec]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x90]
mov ebx, edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ecx, ecx
mov dword [esp + 0x2c0], ecx
xor eax, eax
mov dword [esp + 0x34], ecx
lea edi, [esp + 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
push ecx
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
call sub.MSVCR80.dll_memset
xor eax, eax
inc eax
mov dword [esp + 0x7c], eax
mov word [esp + 0x80], ax
xor eax, eax
add esp, 0xc
cmp word [esi], 0x22
mov dword [esp + 0x44], 0x44
setne al
mov edi, eax
test edi, edi
je 0x493433
push 0x50e590
lea ecx, [esp + 0x94]
call dword [0x506424]
push esi
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
test edi, edi
je 0x493457
push 0x50e590
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
test ebx, ebx
je 0x49347b
push 0x50e594
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push ebx
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea eax, [esp + 0x20]
push eax
mov edi, 0xf01ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4934aa
mov dword [esp + 0x10], 0xfffffff9
jmp 0x493788
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
lea ebx, [esp + 0x2c]
call fcn.0048fcad
test eax, eax
pop ecx
pop ecx
jne 0x4934cf
mov dword [esp + 0x10], 0xfffffff8
jmp 0x493788
mov eax, dword [esp + 0x24]
push dword [eax]
call fcn.0048fc1c
test eax, eax
pop ecx
je 0x493586
lea eax, [esp + 0x14]
push eax
call fcn.0048fd2c
test eax, eax
pop ecx
jne 0x4934ff
mov dword [esp + 0x10], 0xfffffffe
jmp 0x493788
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.0048fdcf
test eax, eax
pop ecx
pop ecx
jne 0x493520
mov dword [esp + 0x10], 0xfffffffd
jmp 0x493788
push dword [esp + 0x18]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x493788
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push ebx
call esi
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x493563
lea eax, [esp + 0x94]
xor edi, edi
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x49376a
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea ebx, [esp + 0x18]
lea edi, [esp + 0x1c]
call fcn.0048fb88
test eax, eax
pop ecx
je 0x493780
cmp dword [esp + 0x18], 2
jne 0x493738
cmp dword [esp + 0x14], 6
jb 0x493738
push dword [esp + 0x20]
call fcn.0048fc3d
pop ecx
call dword [sym.imp.USER32.dll_GetShellWindow]
xor edi, edi
cmp eax, edi
jne 0x4935e8
mov dword [esp + 0x10], 0xfffffff6
jmp 0x493788
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
jne 0x493609
mov dword [esp + 0x10], 0xfffffff5
jmp 0x493788
push dword [esp + 0x18]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [esp + 0x2c], eax
jne 0x49362e
mov dword [esp + 0x10], 0xfffffff3
jmp 0x493788
lea ecx, [esp + 0x14]
push ecx
push 2
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x493730
lea eax, [esp + 0x1c]
push eax
push 1
push 2
push edi
push 0x18b
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x49372a
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [esp + 0x28], eax
je 0x49372a
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x493720
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x4936ae
lea eax, [esp + 0x94]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
push ecx
push edi
push edi
push edi
push eax
push edi
push edi
push dword [esp + 0x3c]
call ebx
cmp eax, edi
jne 0x493710
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x493720
call fcn.00493f23
test eax, eax
je 0x493720
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x4936f6
lea eax, [esp + 0x94]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
push ecx
push edi
push edi
push edi
push eax
push edi
push edi
push dword [esp + 0x3c]
call ebx
cmp eax, edi
je 0x493720
push dword [esp + 0x38]
call esi
push dword [esp + 0x34]
call esi
mov dword [esp + 0x10], edi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [esp + 0x14]
call esi
push dword [esp + 0x2c]
call esi
jmp 0x493788
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x493750
lea eax, [esp + 0x94]
xor edi, edi
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
je 0x493788
push dword [esp + 0x38]
call esi
push dword [esp + 0x34]
call esi
and dword [esp + 0x10], edi
jmp 0x493788
mov dword [esp + 0x10], 0xfffffff4
xor edi, edi
cmp dword [esp + 0x20], edi
je 0x493796
push dword [esp + 0x20]
call esi
cmp dword [esp + 0x1c], edi
je 0x4937a2
push dword [esp + 0x1c]
call esi
cmp dword [esp + 0x24], edi
je 0x4937b3
push dword [esp + 0x24]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push 0x1fe
lea eax, [esp + 0xb2]
push edi
push eax
mov word [esp + 0xb8], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push dword [esp + 0x10]
lea eax, [esp + 0xb0]
push str.from1ver0.3errcode_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea esi, [esp + 0x2c]
call fcn.0044a4cc
mov byte [esp + 0x2c0], 1
mov ecx, dword [esp + 0x30]
cmp ecx, edi
je 0x49380e
mov eax, dword [ecx]
push str.duba_createprocess_by_svc
call dword [eax + 0xc]
lea eax, [esp + 0xac]
push eax
lea esi, [esp + 0x30]
call fcn.00493fa4
cmp dword [esp + 0xac], 8
mov eax, dword [esp + 0x98]
pop ecx
jae 0x493838
lea eax, [esp + 0x94]
mov esi, dword [esp + 0x30]
cmp esi, edi
je 0x493855
mov edx, dword [esi]
push eax
push str.cmdline
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x20]
cmp esi, edi
mov byte [esp + 0x2c0], 0
je 0x493868
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
or dword [esp + 0x2c0], 0xffffffff
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.004d6e66
mov esp, ebp
pop ebp
ret