Function at 0x49eea0
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.004dce30
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ebx, dword [ebp + 0x18]
test bl, 1
mov dword [esp + 0x4c], eax
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]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x44], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x49f0fc
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x49f0cf
test bl, 2
jne 0x49ef66
cmp edi, 0xffffffff
jne 0x49ef38
xor eax, eax
push eax
push eax
push dword [esp + 0x7c]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
jmp 0x49f0cf
mov ecx, 0x2710
mov eax, edi
mul ecx
neg eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
adc edx, 0
push 0
push dword [esp + 0x7c]
neg edx
mov dword [esp + 0x28], edx
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
jmp 0x49f0cf
mov eax, dword [0x7ffe0324]
mov esi, dword [0x7ffe0320]
cmp eax, dword [0x7ffe0328]
je 0x49ef92
mov ecx, 0x7ffe0324
mov edx, 0x7ffe0320
mov ebx, 0x7ffe0328
pause
mov eax, dword [ecx]
mov esi, dword [edx]
cmp eax, dword [ebx]
jne 0x49ef88
mov ecx, dword [0x7ffe0004]
mul ecx
mov dword [esp + 0x1c], 0
mov ebx, eax
mov eax, edx
shld eax, ebx, 8
mov dword [esp + 0x10], eax
mov eax, esi
mul ecx
shl ebx, 8
mov esi, 0x7ffe0324
shrd eax, edx, 0x18
shr edx, 0x18
add ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, edi
adc dword [esp + 0x10], edx
lea ecx, [ecx]
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 0x49eff5
cmp eax, 1
jl 0x49f0cf
cmp eax, 0x80
jl 0x49f007
cmp eax, 0x81
jl 0x49f0cf
cmp eax, 1
jne 0x49f0cf
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 0x49f05d
jmp 0x49f030
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 0x49f030
cmp edi, 0xffffffff
je 0x49efd0
mov eax, dword [esi]
mov ecx, 0x7ffe0320
mov edx, 0x7ffe0328
mov edi, dword [ecx]
cmp eax, dword [edx]
je 0x49f082
pause
mov eax, dword [esi]
mov edi, dword [ecx]
cmp eax, dword [edx]
jne 0x49f078
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 + 0x14]
adc esi, dword [esp + 0x10]
test esi, esi
mov esi, 0x7ffe0324
jg 0x49efd0
jl 0x49f0cf
test ebx, ebx
jae 0x49efd0
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x49f0e7
mov eax, dword [esp + 0x74]
mov dword [ecx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push dword [esp + 0x74]
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