Function at 0x541e8b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
cmp dword [ebp + 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
je 0x541f80
and dword [ebp - 0x1c], 0
mov eax, esi
and dword [ebp - 0xc], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 8], 7
jb 0x541ebd
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [ebp + 0xc]
pop ecx
pop ecx
test eax, eax
je 0x54203f
push str.Tencent_Technology_Shenzhen__Company_Limited
call fcn.0057bbea
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
cmp ebx, 8
push eax
push str.Tencent_Technology_Shenzhen__Company_Limited
push dword [ebp - 0xc]
cmovae ecx, edi
push ecx
call fcn.0040fb86
add esp, 0x14
test eax, eax
je 0x541f48
push str.Adobe_Inc.
call fcn.0057bbea
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
cmp ebx, 8
push eax
push str.Adobe_Inc.
push dword [ebp - 0xc]
cmovae ecx, edi
push ecx
call fcn.0040fb86
add esp, 0x14
test eax, eax
je 0x541f48
push 0x5e22bc
lea ecx, [ebp - 0x1c]
call fcn.0040fab8
test eax, eax
jne 0x54203f
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x1c]
cmp ebx, 8
jb 0x541f80
lea ebx, [ebx*2 + 2]
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], ebx
cmp ebx, 0x1000
jb 0x541f77
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040379f
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
pop ecx
pop ecx
push ebx
push edi
call fcn.0056d0c8
pop ecx
pop ecx
push 0x40
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], 0x44
push 0
push eax
call fcn.005713c0
mov ebx, dword [ebp + 0x1c]
lea edi, [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x80], 1
mov word [ebp - 0x7c], ax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x20]
test ebx, ebx
jne 0x5420ad
cmp dword [ebp + 0x18], 0
je 0x5420ad
call fcn.00541d25
test eax, eax
je 0x5420ad
push 0x38
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], 0x3c
push 0
push eax
call fcn.005713c0
add esp, 0xc
mov dword [ebp - 0x64], 0x40
cmp dword [esi + 0x14], 8
jb 0x541ffc
mov esi, dword [esi]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], esi
cmp dword [eax + 0x14], 8
jb 0x54200a
mov eax, dword [eax]
push 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], str.RunAs
call dword [sym.imp.KERNEL32.DLL_SetLastError]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor ecx, ecx
mov esi, 0x80004005
test eax, eax
cmovne esi, ecx
je 0x542086
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
jmp 0x5421d5
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x54207c
mov ecx, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], ecx
cmp eax, 0x1000
jb 0x542073
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040379f
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
mov eax, 0x800704b4
jmp 0x542214
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, 0x4c7
cmp eax, ecx
jne 0x5421d5
mov esi, 0x80004004
test edi, edi
je 0x542203
mov dword [edi], ecx
jmp 0x5421d5
push 0x60a05c
lea ecx, [ebp - 0x1c]
call fcn.00408981
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x5420c4
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004092f8
mov esi, 0x613908
push esi
call fcn.0057bbea
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004092f8
mov eax, dword [ebp + 0x14]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x5420f3
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004092f8
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xac]
push ecx
push esi
push esi
push esi
push 1
push esi
push esi
test ebx, ebx
je 0x542196
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
neg eax
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
jns 0x5421ba
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x522
jne 0x5421cd
push str.CreateProcessWithTokenW
push str.Advapi32
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x54218f
cmp dword [ebp - 8], 8
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0xac]
push edx
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
xor edx, edx
push edx
push edx
push edx
push ecx
push edx
push edx
push ebx
call eax
jmp 0x5421a6
mov esi, 0x80004002
jmp 0x5421cd
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
neg eax
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
test esi, esi
js 0x5421cd
cmp dword [ebp - 0x28], 0
je 0x5421cd
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [ebp - 0x28], 0
lea ecx, [ebp - 0x1c]
call fcn.00403730
test esi, esi
js 0x542203
cmp dword [ebp + 0x10], 0
je 0x542203
push dword [ebp + 0x10]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
neg eax
sbb esi, esi
and esi, 0x8000ffff
test edi, edi
je 0x542203
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp - 0x2c], 0
je 0x542212
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret