Function at 0x1004ee00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c78ac
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], eax
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004ef8a
push 0xf
push str.CommonUtil.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000cf00
mov byte [ebp - 4], 1
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2a6
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10007f90
mov esi, eax
push str.call_RunLocalExeByAssignParent__parent_pid:
push esi
mov byte [ebp - 4], 2
call fcn.1000fad0
add esp, 8
mov ecx, esi
push dword [ebp - 0x50]
call fcn.1002c180
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.10008e90
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1004ef37
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004ef2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004f431
push edx
push ecx
call fcn.101799c0
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x1004ef84
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004ef7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004f436
push edx
push ecx
call fcn.101799c0
add esp, 8
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x54]
cmp dword [ebp - 0x50], 0
je 0x1004f414
test esi, esi
je 0x1004f34d
cmp dword [ebp - 0x60], 0
je 0x1004f34d
test edi, edi
je 0x1004f34d
lea ecx, [ebp - 0x48]
call fcn.10020010
push esi
mov dword [ebp - 4], 6
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
push esi
test eax, eax
je 0x1004f008
lea ecx, [ebp - 0x4c]
call fcn.10010980
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.1004c800
add esp, 8
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.100117f0
lea ecx, [ebp - 0x44]
call fcn.1000e5b0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.1000e5b0
jmp 0x1004f010
lea ecx, [ebp - 0x48]
call fcn.10018e10
mov esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004f100
push str.file_not_found
call fcn.1005eb00
add esp, 4
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004f0f9
push 0xf
push str.CommonUtil.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000cf00
mov byte [ebp - 4], 0xa
call fcn.100a97a0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x10c]
push 0x2ba
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10007f90
mov edi, eax
push str.RunLocalExe_file_not_found:
push edi
mov byte [ebp - 4], 0xb
call fcn.10008dd0
test esi, esi
mov ecx, 0x101d2100
cmovne ecx, esi
push ecx
push edi
call fcn.1000fad0
mov ecx, dword [ebp - 0x44]
add esp, 0x10
mov eax, dword [ecx]
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.10008e90
lea ecx, [ebp - 0x40]
call fcn.10007310
lea ecx, [ebp - 0x28]
call fcn.10007310
xor edi, edi
jmp 0x1004f327
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004f105
sub ecx, edx
sar ecx, 1
je 0x1004f127
push edi
push esi
call fcn.1015b0e0
mov edi, eax
add esp, 8
mov dword [ebp - 0x4c], edi
jmp 0x1004f135
push esi
call fcn.1015b3b0
add esp, 4
mov dword [ebp - 0x4c], eax
mov edi, eax
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004f212
mov ecx, str._FAILED
mov dword [ebp - 0x18], 0
test edi, edi
mov dword [ebp - 0x14], 0xf
mov eax, str._suc
mov byte [ebp - 0x28], 0
cmove eax, ecx
lea ecx, [ebp - 0x28]
push 0xf
push str.CommonUtil.cpp
mov dword [ebp - 0x44], eax
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000cf00
mov byte [ebp - 4], 0xd
call fcn.100a97a0
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x10c]
push 0x2c6
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10007f90
mov edi, eax
push str.RunLocalExe_check_sign
push edi
mov byte [ebp - 4], 0xe
call fcn.10008dd0
push dword [ebp - 0x44]
push edi
call fcn.10008dd0
mov ecx, dword [ebp - 0x58]
add esp, 0x10
mov eax, dword [ecx]
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.10008e90
lea ecx, [ebp - 0x40]
call fcn.10007310
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.10007310
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x1004f31a
push dword [ebp - 0x50]
push str.parent_pid:
push 0x1022f7d8
call fcn.100492c0
add esp, 8
mov ecx, eax
call fcn.10049cc0
mov dword [ebp - 0x44], eax
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x58], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x10
push eax
call fcn.100495e0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0x58], al
mov byte [ebp - 4], 0x11
test edi, edi
je 0x1004f291
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1004f291
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.10051ae0
mov ecx, dword [ebp - 0x44]
call fcn.100518d0
push dword [ebp - 0x50]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x74]
xorps xmm0, xmm0
push ecx
push dword [ebp - 0x60]
movups xmmword [ebp - 0x74], xmm0
push dword [ebp - 0x54]
push eax
call fcn.1004b1d0
add esp, 0x10
mov edi, eax
test eax, eax
je 0x1004f311
cmp dword [ebp + 0x14], 0
je 0x1004f2ee
push 0
push dword [ebp + 0x18]
push dword [ebp - 0x74]
call fcn.100501a0
add esp, 0xc
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x64]
cmove edi, ecx
test eax, eax
je 0x1004f306
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004f327
xor edi, edi
push str.shell_exec_runas_error
jmp 0x1004f31f
push str.file_sign_error
call fcn.1005eb00
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1004f346
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x1004f416
push str.invalid_param
call fcn.1005eb00
add esp, 4
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004f414
push 0xf
push str.CommonUtil.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 3
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000cf00
mov byte [ebp - 4], 4
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x10c]
push 0x2ae
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10007f90
mov esi, eax
push str.RunLocalExe_param_error
push esi
mov byte [ebp - 4], 5
call fcn.10008dd0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x10c]
call fcn.10008e90
lea ecx, [ebp - 0x40]
call fcn.10007310
lea ecx, [ebp - 0x28]
call fcn.10007310
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
call fcn.10190cce
call fcn.10190cce
int3