Function at 0x4b5260
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xb8
mov eax, dword [0x4d9540]
push ebx
push ebp
push esi
push edi
mov ecx, str.runas
xor edi, edi
mov dword [esp + 0x10], eax
test ecx, ecx
mov dword [esp + 0xc4], edi
je 0x4b52d6
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x4b52d6
push esi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x4b52d6
mov ecx, dword [esp + 0x10]
lea eax, [esi + 1]
cmp eax, edi
mov esi, ecx
jne 0x4b52b1
cmp ecx, edi
jne 0x4b52cb
push eax
push ecx
push 0xffffffffffffffff
push str.runas
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jle 0x4b52cb
mov word [esi + eax*2 - 2], di
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00401970
mov ebp, dword [esp + 0xd0]
mov edx, dword [0x4d9540]
cmp ebp, edi
mov dword [esp + 0x14], edx
je 0x4b533a
mov eax, ebp
shr eax, 0x10
jne 0x4b5306
mov ecx, ebp
and ecx, 0xffff
push ecx
lea ecx, [esp + 0x18]
call fcn.0040ff70
jmp 0x4b533a
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, edi
je 0x4b533a
push esi
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x4b533a
mov edi, dword [esp + 0x14]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.004c5509
mov ecx, dword [0x4d9544]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
mov eax, dword [esp + 0x14]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4b5382
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4b5382
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4b53ad
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4b53ad
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
test bl, bl
je 0x4b53eb
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0xd4]
push edx
push eax
push ebp
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret
call fcn.004b5870
test eax, eax
je 0x4b56d5
lea ecx, [esp + 0xac]
call fcn.004b5710
mov eax, dword [esp + 0xc0]
cmp eax, edi
je 0x4b56bc
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x1c]
cmp dword [esp + 0x10], edi
je 0x4b56b3
cmp ebp, edi
mov esi, 0x4e3a28
je 0x4b5457
push ebp
lea ecx, [esp + 0x58]
mov dword [esp + 0xc8], 1
call fcn.0040ea20
mov ecx, eax
call fcn.00424580
mov dword [esp + 0x14], eax
jmp 0x4b545b
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0xdc]
cmp eax, edi
je 0x4b548e
mov edx, dword [esp + 0xc4]
push eax
or edx, 2
lea ecx, [esp + 0x44]
mov dword [esp + 0xc8], edx
call fcn.0040ea20
mov ecx, eax
call fcn.00424580
mov dword [esp + 0x18], eax
jmp 0x4b5492
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xd8]
cmp eax, edi
je 0x4b54c1
mov edx, dword [esp + 0xc4]
push eax
or edx, 4
lea ecx, [esp + 0x5c]
mov dword [esp + 0xc8], edx
call fcn.0040ea20
mov ecx, eax
call fcn.00424580
mov esi, eax
mov eax, dword [esp + 0xe0]
mov edx, dword [esp + 0x98]
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x94], eax
mov ebx, eax
mov eax, dword [esp + 0x14]
mov word [esp + 0x8c], 3
mov edi, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0xac], edx
mov word [esp + 0x80], 0
call fcn.00415140
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
push edx
lea ecx, [esp + 0x70]
mov dword [esp + 0x28], eax
mov word [esp + 0x70], 0
call fcn.00415140
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x48], ecx
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov word [esp + 0x60], 0
call fcn.00415140
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x68]
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x40]
call fcn.004b59d0
sub esp, 0x10
mov eax, dword [eax]
mov edx, esp
sub esp, 0x10
mov ecx, dword [eax]
mov dword [edx], edi
mov edi, dword [esp + 0xc8]
mov dword [edx + 4], ebp
mov dword [edx + 8], ebx
mov dword [edx + 0xc], edi
mov edi, dword [esp + 0x3c]
mov edx, esp
sub esp, 0x10
mov dword [edx], edi
mov edi, dword [esp + 0x50]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x54]
mov dword [edx + 8], edi
mov edi, dword [esp + 0x58]
mov dword [edx + 0xc], edi
mov edi, dword [esp + 0x74]
mov edx, esp
mov dword [edx], edi
mov edi, dword [esp + 0x78]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x7c]
mov dword [edx + 8], edi
mov edi, dword [esp + 0x80]
sub esp, 0x10
mov dword [edx + 0xc], edi
mov edi, dword [esp + 0x6c]
mov edx, esp
push esi
push eax
mov dword [edx], edi
mov edi, dword [esp + 0x78]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x7c]
mov dword [edx + 8], edi
mov edi, dword [esp + 0x80]
mov dword [edx + 0xc], edi
call dword [ecx + 0x7c]
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.004a7410
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x5c]
push eax
call esi
lea ecx, [esp + 0x6c]
push ecx
call esi
lea edx, [esp + 0x7c]
push edx
call esi
lea eax, [esp + 0x8c]
push eax
call esi
mov ebx, dword [esp + 0xc4]
test bl, 4
je 0x4b5694
lea ecx, [esp + 0x58]
and ebx, 0xfffffffb
call fcn.004014c0
test bl, 2
je 0x4b56a5
lea ecx, [esp + 0x40]
and ebx, 0xfffffffd
call fcn.004014c0
test bl, 1
je 0x4b56b3
lea ecx, [esp + 0x54]
call fcn.004014c0
lea ecx, [esp + 0x10]
call fcn.004a7410
lea ecx, [esp + 0xac]
call fcn.004b5890
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0xd4]
push eax
push ecx
push ebp
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret