Function at 0x4aefe0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
push edi
push 0x38
lea eax, [esp + 0x44]
mov dword [esp + 0x40], 0x3c
push 0
push eax
call fcn.0051fd40
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ebx, dword [ebp + 0x18]
mov ecx, 0x440
mov dword [esp + 0x4c], eax
test bl, 1
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x44], eax
mov eax, str.runas
cmove eax, dword [esp + 0x48]
test bl, 4
mov dword [esp + 0x48], eax
mov eax, 0x800440
cmovne ecx, eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4af267
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x4af237
test bl, 2
jne 0x4af0c5
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x4af23b
jmp 0x4af080
cmp edi, 0xffffffff
jne 0x4af095
xor eax, eax
push eax
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
jmp 0x4af237
mov eax, edi
mov edx, 0x2710
mul edx
neg eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
adc edx, 0
push 0
neg edx
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
jmp 0x4af0c0
jmp 0x4af237
mov eax, dword [0x7ffe0324]
mov esi, dword [0x7ffe0320]
cmp eax, dword [0x7ffe0328]
je 0x4af0f1
mov ecx, 0x7ffe0324
mov edx, 0x7ffe0320
mov ebx, 0x7ffe0328
pause
mov eax, dword [ecx]
mov esi, dword [edx]
cmp eax, dword [ebx]
jne 0x4af0e7
mov ecx, dword [0x7ffe0004]
mul ecx
mov dword [esp + 0x1c], 0
mov ebx, eax
mov eax, esi
shld edx, ebx, 8
mov esi, 0x7ffe0324
mov dword [esp + 0xc], edx
mul ecx
shl ebx, 8
shrd eax, edx, 0x18
shr edx, 0x18
add ebx, eax
mov dword [esp + 0x10], ebx
mov ebx, edi
adc dword [esp + 0xc], edx
lea ebx, [ebx]
push 0x1cbf
push ebx
push 0
lea eax, [esp + 0x80]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
js 0x4af155
cmp eax, 1
jl 0x4af237
cmp eax, 0x80
jl 0x4af16b
lea esp, [esp]
cmp eax, 0x81
jl 0x4af237
cmp eax, 1
jne 0x4af237
push eax
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4af1bd
lea ebx, [ebx]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4af190
lea ecx, [ecx]
cmp edi, 0xffffffff
je 0x4af130
mov eax, dword [esi]
mov ecx, 0x7ffe0320
mov edx, 0x7ffe0328
mov edi, dword [ecx]
cmp eax, dword [edx]
je 0x4af1ea
jmp 0x4af1e0
pause
mov eax, dword [esi]
mov edi, dword [ecx]
cmp eax, dword [edx]
jne 0x4af1e0
mov ebx, dword [ebp + 0x1c]
mov ecx, 0x7ffe0004
mov esi, 0
mov ecx, dword [ecx]
mul ecx
shld edx, eax, 8
shl eax, 8
sub ebx, eax
mov eax, edi
mov edi, dword [ebp + 0x1c]
sbb esi, edx
mul ecx
shrd eax, edx, 0x18
shr edx, 0x18
sub ebx, eax
sbb esi, edx
add ebx, dword [esp + 0x10]
adc esi, dword [esp + 0xc]
test esi, esi
mov esi, 0x7ffe0324
jg 0x4af130
jl 0x4af237
test ebx, ebx
jae 0x4af130
mov ecx, dword [esp + 0x74]
mov eax, dword ds:[ebp + 0x20]
test eax, eax
je 0x4af251
mov dword [eax], ecx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
test ecx, ecx
je 0x4af25c
push ecx
call dword [sym.imp.ntdll.dll_NtClose]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x1c