Function at 0x5192e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xb8
mov eax, dword [0x546560]
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 0x519356
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x519356
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x519356
mov ecx, dword [esp + 0x10]
lea eax, [esi + 1]
cmp eax, edi
mov esi, ecx
jne 0x519331
cmp ecx, edi
jne 0x51934b
push eax
push ecx
push 0xffffffffffffffff
push str.runas
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jle 0x51934b
mov word [esi + eax*2 - 2], di
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00405bb0
mov ebp, dword [esp + 0xd0]
mov edx, dword [0x546560]
cmp ebp, edi
mov dword [esp + 0x14], edx
je 0x5193ba
mov eax, ebp
shr eax, 0x10
jne 0x519386
mov ecx, ebp
and ecx, 0xffff
push ecx
lea ecx, [esp + 0x18]
call fcn.00413c90
jmp 0x5193ba
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, edi
je 0x5193ba
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x5193ba
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.00531809
mov ecx, dword [0x546564]
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 0x519402
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x519402
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x51942d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x51942d
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
test bl, bl
je 0x51946b
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.005198f0
test eax, eax
je 0x519755
lea ecx, [esp + 0xac]
call fcn.00519790
mov eax, dword [esp + 0xc0]
cmp eax, edi
je 0x51973c
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 0x519733
cmp ebp, edi
mov esi, 0x553d98
je 0x5194d7
push ebp
lea ecx, [esp + 0x58]
mov dword [esp + 0xc8], 1
call fcn.00412740
mov ecx, eax
call fcn.0042cf70
mov dword [esp + 0x14], eax
jmp 0x5194db
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0xdc]
cmp eax, edi
je 0x51950e
mov edx, dword [esp + 0xc4]
push eax
or edx, 2
lea ecx, [esp + 0x44]
mov dword [esp + 0xc8], edx
call fcn.00412740
mov ecx, eax
call fcn.0042cf70
mov dword [esp + 0x18], eax
jmp 0x519512
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xd8]
cmp eax, edi
je 0x519541
mov edx, dword [esp + 0xc4]
push eax
or edx, 4
lea ecx, [esp + 0x5c]
mov dword [esp + 0xc8], edx
call fcn.00412740
mov ecx, eax
call fcn.0042cf70
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.00419510
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.00419510
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.00419510
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.00519a50
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.004bddc0
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 0x519714
lea ecx, [esp + 0x58]
and ebx, 0xfffffffb
call fcn.00405700
test bl, 2
je 0x519725
lea ecx, [esp + 0x40]
and ebx, 0xfffffffd
call fcn.00405700
test bl, 1
je 0x519733
lea ecx, [esp + 0x54]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.004bddc0
lea ecx, [esp + 0xac]
call fcn.00519910
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