Function at 0x51adb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aaf77
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc0], 0
test ebx, ebx
je 0x51aec3
cmp dword [ebx], 0x3c
jne 0x51aec3
test byte [ebx + 4], 0xc
jne 0x51b00e
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x51aec3
cmp word [eax], 0
je 0x51aec3
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x51aec3
cmp word [eax], 0
je 0x51aec3
push eax
lea ecx, [ebp - 0x40]
call fcn.0043fa80
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push str..exe
push eax
mov dword [ebp - 0xc0], 1
call fcn.00522520
add esp, 8
test al, al
je 0x51ae90
push str.open
push dword [ebx + 0xc]
call fcn.00566ed2
add esp, 8
test eax, eax
je 0x51ae87
push str.runas
push dword [ebx + 0xc]
call fcn.00566ed2
add esp, 8
test eax, eax
jne 0x51ae90
mov byte [ebp - 0xb9], 1
jmp 0x51ae97
mov byte [ebp - 0xb9], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0042aad0
cmp byte [ebp - 0xb9], 0
mov edx, dword [ebx + 0x10]
je 0x51aee1
push edx
call fcn.0051b550
add esp, 4
test eax, eax
jne 0x51b00e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
test edx, edx
je 0x51aec3
cmp word [edx], 0
je 0x51aec3
mov ecx, edx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
jmp 0x51af10
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51af10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0042e2d0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00522640
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.00521d10
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
call fcn.00523270
add esp, 0x18
lea ecx, [ebp - 0x58]
call fcn.0042aad0
lea ecx, [ebp - 0x70]
call fcn.0042aad0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x51afaa
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x51afa0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51b078
push edx
push ecx
call fcn.00558004
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x14], 7
call fcn.00522790
add esp, 4
test al, al
je 0x51aff5
lea eax, [ebp - 0x40]
push eax
call fcn.00522750
add esp, 4
test al, al
je 0x51aff5
lea eax, [ebp - 0x40]
push eax
call fcn.005227b0
add esp, 4
test al, al
jne 0x51aff5
mov esi, 1
jmp 0x51aff7
xor esi, esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0042aad0
test esi, esi
je 0x51aec3
mov esi, dword [ebx + 0x14]
lea ecx, [ebp - 0x40]
mov edi, dword [ebx + 0x10]
push str.kSafeRunProcess
call fcn.0043fa80
push esi
push edi
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 8
push eax
lea ecx, [ebp - 0xb8]
call fcn.00478a50
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.0042aad0
push 2
lea ecx, [ebp - 0xc4]
call fcn.00521ad0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0xc4]
mov esi, eax
call fcn.00521b70
lea ecx, [ebp - 0xb8]
call fcn.00479140
mov eax, esi
jmp 0x51aec5
call fcn.00566a14
int3