Function at 0x10026670
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x60]
push ebp
xor ebp, ebp
mov eax, dword [ebx + 4]
push esi
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp eax, ebp
push edi
mov dword [esp + 0x10], ebp
jne 0x10026690
mov eax, esi
mov ecx, dword [esp + 0x68]
mov edx, esi
mov ecx, dword [ecx + 4]
cmp ecx, ebp
je 0x1002669f
mov edx, ecx
mov edi, dword [esp + 0x64]
mov ecx, dword [edi + 4]
cmp ecx, ebp
jne 0x100266ac
mov ecx, esi
push eax
push edx
push ecx
push str._comm__shell_exec__s___s___s_.
push 0x10048418
lea ecx, [esp + 0x80]
call fcn.1002ce00
push eax
call fcn.1002ce10
mov dl, byte [edi]
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
push ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push ebp
push edi
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea edx, [esp + 0x14]
push edx
call fcn.10025f70
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x2c]
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp eax, ebp
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ecx
je 0x1002673b
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 4]
cmp eax, ebp
je 0x1002674e
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x3c], ecx
cmp eax, ebp
je 0x1002675d
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], ebp
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push ecx
mov dword [esp + 0x44], 5
call ebp
test eax, eax
jne 0x1002689e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ecx, eax
mov eax, dword [ebx + 4]
cmp ecx, 5
mov dword [esp + 0x10], ecx
jne 0x1002684b
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
jne 0x100267a4
mov eax, esi
mov edx, dword [esp + 0x68]
mov ecx, dword [edx + 4]
mov edx, esi
test ecx, ecx
je 0x100267b3
mov edx, ecx
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x100267c0
mov ecx, esi
push eax
push edx
push ecx
push str._comm__shell_exec__s___s___s__returns_SE_ERR_ACCESSDENIED__now_use_runas
push 0x10048448
lea ecx, [esp + 0x80]
call fcn.1002ce00
push eax
call fcn.1002ce10
add esp, 0x14
lea edx, [esp + 0x24]
mov dword [esp + 0x30], str.runas
push edx
call ebp
test eax, eax
jne 0x1002689e
call edi
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], ecx
test eax, eax
mov ebp, esi
je 0x10026812
mov ebp, eax
mov eax, dword [esp + 0x68]
mov edi, esi
mov eax, dword [eax + 4]
test eax, eax
je 0x10026821
mov edi, eax
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 4]
test eax, eax
je 0x1002682e
mov esi, eax
push ecx
call fcn.1002ba20
add esp, 4
lea ecx, [esp + 0x68]
push eax
push ebp
push edi
push esi
push 0x100484b4
push 0x100484ac
jmp 0x10026890
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
mov ebp, esi
je 0x10026859
mov ebp, eax
mov eax, dword [esp + 0x68]
mov edi, esi
mov eax, dword [eax + 4]
test eax, eax
je 0x10026868
mov edi, eax
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 4]
test eax, eax
je 0x10026875
mov esi, eax
push ecx
call fcn.1002ba20
add esp, 4
lea ecx, [esp + 0x68]
push eax
push ebp
push edi
push esi
push str._comm__shell_exec__s___s___s__failed:__s
push 0x100484e4
call fcn.1002ce00
push eax
call fcn.1002ce10
add esp, 0x18
mov esi, dword [esp + 0x70]
test esi, esi
je 0x100268b9
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x100268b9
push eax
call fcn.100264a0
add esp, 4
mov dword [esi], eax
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x100268cd
mov dword [esp + 0x10], 0xffffffff
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x100268f9
mov al, byte [ecx - 1]
test al, al
je 0x100268ef
cmp al, 0xff
je 0x100268ef
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
dec ecx
push ecx
call fcn.1003ed30
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret