Function at 0x1002c980
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 0x1002c9a0
mov eax, esi
mov ecx, dword [esp + 0x68]
mov edx, esi
mov ecx, dword [ecx + 4]
cmp ecx, ebp
je 0x1002c9af
mov edx, ecx
mov edi, dword [esp + 0x64]
mov ecx, dword [edi + 4]
cmp ecx, ebp
jne 0x1002c9bc
mov ecx, esi
push eax
push edx
push ecx
push str._comm__shell_exec__s___s___s_.
push 0x10052b94
lea ecx, [esp + 0x80]
call fcn.10030b00
push eax
call fcn.10030b10
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.1002c280
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 0x1002ca4b
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 4]
cmp eax, ebp
je 0x1002ca5e
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x3c], ecx
cmp eax, ebp
je 0x1002ca6d
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 0x1002cbae
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 0x1002cb5b
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 0x1002cab4
mov eax, esi
mov edx, dword [esp + 0x68]
mov ecx, dword [edx + 4]
mov edx, esi
test ecx, ecx
je 0x1002cac3
mov edx, ecx
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x1002cad0
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 0x10052bc4
lea ecx, [esp + 0x80]
call fcn.10030b00
push eax
call fcn.10030b10
add esp, 0x14
lea edx, [esp + 0x24]
mov dword [esp + 0x30], str.runas
push edx
call ebp
test eax, eax
jne 0x1002cbae
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 0x1002cb22
mov ebp, eax
mov eax, dword [esp + 0x68]
mov edi, esi
mov eax, dword [eax + 4]
test eax, eax
je 0x1002cb31
mov edi, eax
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 4]
test eax, eax
je 0x1002cb3e
mov esi, eax
push ecx
call fcn.1002f6e0
add esp, 4
lea ecx, [esp + 0x68]
push eax
push ebp
push edi
push esi
push 0x10052c30
push 0x10052c28
jmp 0x1002cba0
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 0x1002cb69
mov ebp, eax
mov eax, dword [esp + 0x68]
mov edi, esi
mov eax, dword [eax + 4]
test eax, eax
je 0x1002cb78
mov edi, eax
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 4]
test eax, eax
je 0x1002cb85
mov esi, eax
push ecx
call fcn.1002f6e0
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 0x10052c60
call fcn.10030b00
push eax
call fcn.10030b10
add esp, 0x18
mov esi, dword [esp + 0x70]
test esi, esi
je 0x1002cbc9
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1002cbc9
push eax
call fcn.1002c7b0
add esp, 4
mov dword [esi], eax
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1002cbdd
mov dword [esp + 0x10], 0xffffffff
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1002cc09
mov al, byte [ecx - 1]
test al, al
je 0x1002cbff
cmp al, 0xff
je 0x1002cbff
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.10047cb0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret