Function at 0x468052
Capabilities:
Create process on windows

Disassembly:
push 0x29c
mov eax, 0x49c94e
call fcn.00487961
mov esi, ecx
lea ecx, [ebp - 0x22c]
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 [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x260], ecx
lea edi, [ebp - 0x25c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
push ecx
lea eax, [ebp - 0x2a4]
push eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], ecx
call sub.MSVCR80.dll_memset
xor eax, eax
inc eax
mov dword [ebp - 0x27c], eax
mov word [ebp - 0x278], ax
xor eax, eax
add esp, 0xc
cmp word [esi], 0x22
mov dword [ebp - 0x2a8], 0x44
setne al
mov edi, eax
test edi, edi
je 0x4680f7
push 0x4b1258
lea ecx, [ebp - 0x22c]
call dword [0x4a9398]
push esi
lea ecx, [ebp - 0x22c]
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 0x468119
push 0x4b1258
lea ecx, [ebp - 0x22c]
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 0x46813b
push 0x4b125c
lea ecx, [ebp - 0x22c]
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, [ebp - 0x22c]
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, [ebp - 0x240]
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 0x46816e
mov dword [ebp - 0x230], 0xfffffff9
jmp 0x4684ac
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x240]
lea ebx, [ebp - 0x244]
call fcn.00466a49
test eax, eax
pop ecx
pop ecx
jne 0x46819b
mov dword [ebp - 0x230], 0xfffffff8
jmp 0x4684ac
mov eax, dword [ebp - 0x244]
push dword [eax]
call fcn.004669b8
test eax, eax
pop ecx
je 0x468265
lea eax, [ebp - 0x234]
push eax
call fcn.00466ac8
test eax, eax
pop ecx
jne 0x4681d1
mov dword [ebp - 0x230], 0xfffffffe
jmp 0x4684ac
push dword [ebp - 0x234]
lea eax, [ebp - 0x238]
push eax
call fcn.00466b6b
test eax, eax
pop ecx
pop ecx
jne 0x4681f8
mov dword [ebp - 0x230], 0xfffffffd
jmp 0x4684ac
push dword [ebp - 0x238]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4684ac
lea eax, [ebp - 0x23c]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push ebx
call esi
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x46823c
lea eax, [ebp - 0x228]
xor edi, edi
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x2a8]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x468486
xor eax, eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x248]
push eax
lea ebx, [ebp - 0x234]
lea edi, [ebp - 0x238]
call fcn.00466924
test eax, eax
pop ecx
je 0x4684a2
cmp dword [ebp - 0x238], 2
jne 0x468453
cmp dword [ebp - 0x234], 6
jb 0x468453
push dword [ebp - 0x240]
call fcn.004669d9
pop ecx
call dword [sym.imp.USER32.dll_GetShellWindow]
xor edi, edi
cmp eax, edi
jne 0x4682db
mov dword [ebp - 0x230], 0xfffffff6
jmp 0x4684ac
lea ecx, [ebp - 0x238]
push ecx
push eax
mov dword [ebp - 0x238], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
jne 0x468302
mov dword [ebp - 0x230], 0xfffffff5
jmp 0x4684ac
push dword [ebp - 0x238]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x24c], eax
jne 0x46832d
mov dword [ebp - 0x230], 0xfffffff3
jmp 0x4684ac
lea ecx, [ebp - 0x234]
push ecx
push 2
push eax
mov dword [ebp - 0x234], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x468449
lea eax, [ebp - 0x23c]
push eax
push 1
push 2
push edi
push 0x18b
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x468441
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [ebp - 0x248], eax
je 0x468441
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x468435
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x4683b4
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x2a8]
push ecx
push edi
push edi
push edi
push eax
push edi
push edi
push dword [ebp - 0x23c]
call ebx
cmp eax, edi
jne 0x46841f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x468435
call fcn.00468c2d
test eax, eax
je 0x468435
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x4683ff
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x2a8]
push ecx
push edi
push edi
push edi
push eax
push edi
push edi
push dword [ebp - 0x23c]
call ebx
cmp eax, edi
je 0x468435
push dword [ebp - 0x25c]
call esi
push dword [ebp - 0x260]
call esi
mov dword [ebp - 0x230], edi
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x234]
call esi
push dword [ebp - 0x24c]
call esi
jmp 0x4684ac
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x468468
lea eax, [ebp - 0x228]
xor edi, edi
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x2a8]
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 0x4684ac
push dword [ebp - 0x25c]
call esi
push dword [ebp - 0x260]
call esi
and dword [ebp - 0x230], edi
jmp 0x4684ac
mov dword [ebp - 0x230], 0xfffffff4
xor edi, edi
cmp dword [ebp - 0x240], edi
je 0x4684be
push dword [ebp - 0x240]
call esi
cmp dword [ebp - 0x23c], edi
je 0x4684ce
push dword [ebp - 0x23c]
call esi
cmp dword [ebp - 0x244], edi
je 0x4684e3
push dword [ebp - 0x244]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push 0x1fe
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push dword [ebp - 0x230]
lea eax, [ebp - 0x210]
push str.from1ver0.3errcode_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea esi, [ebp - 0x250]
call fcn.00448a6b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24c]
cmp ecx, edi
je 0x46853d
mov eax, dword [ecx]
push str.duba_createprocess_by_svc
call dword [eax + 0xc]
lea eax, [ebp - 0x210]
push eax
lea esi, [ebp - 0x250]
call fcn.00468cae
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
pop ecx
jae 0x468565
lea eax, [ebp - 0x228]
mov esi, dword [ebp - 0x24c]
cmp esi, edi
je 0x468584
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 [ebp - 4], 0
je 0x468593
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
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 [ebp - 0x230]
call fcn.004879e4
ret