Function at 0x1004e9b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c77e9
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x1022b584]
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], ecx
test esi, esi
je 0x1004ed04
test eax, eax
je 0x1004ed04
test edi, edi
je 0x1004ed04
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x1004ede9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x7c], eax
push esi
mov dword [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or ebx, 0xffffffff
push esi
test eax, eax
je 0x1004eaa2
lea ecx, [ebp - 0x74]
call fcn.10010980
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1004c800
add esp, 8
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.100117f0
mov edx, dword [ebp - 0x78]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004ea82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x74]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004eaaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1004eaaa
lea ecx, [ebp - 0x7c]
call fcn.10018e10
mov esi, dword [ebp - 0x7c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004eb99
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 0x1004ecdf
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 byte [ebp - 4], 6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000cf00
mov byte [ebp - 4], 7
call fcn.100a97a0
mov ebx, eax
lea ecx, [ebp - 0x11c]
push 0x28a
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10007f90
mov edi, eax
push str.RunLocalExe_file_not_found:
push edi
mov byte [ebp - 4], 8
call fcn.10008dd0
test esi, esi
mov ecx, 0x101d2100
cmovne ecx, esi
push ecx
push edi
call fcn.1000fad0
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x11c]
call fcn.10008e90
lea ecx, [ebp - 0x28]
call fcn.10007310
lea ecx, [ebp - 0x40]
call fcn.10007310
or ebx, 0xffffffff
jmp 0x1004ecdf
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004eba0
sub ecx, edx
sar ecx, 1
je 0x1004ebc2
push edi
push esi
call fcn.1015b0e0
mov edi, eax
add esp, 8
mov dword [ebp - 0x74], edi
jmp 0x1004ebd0
push esi
call fcn.1015b3b0
add esp, 4
mov dword [ebp - 0x74], 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 0x1004ecae
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 - 0x78], eax
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 ebx, eax
lea ecx, [ebp - 0x11c]
push 0x296
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], 0xb
call fcn.10008dd0
push dword [ebp - 0x78]
push edi
call fcn.10008dd0
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x11c]
call fcn.10008e90
lea ecx, [ebp - 0x40]
call fcn.10007310
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10007310
or ebx, 0xffffffff
cmp dword [ebp - 0x74], 0
je 0x1004ecd2
push dword [ebp - 0x80]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp - 0x84]
push esi
call fcn.1004a730
add esp, 0x18
mov edi, eax
jmp 0x1004ece1
push str.file_sign_error
call fcn.1005eb00
add esp, 4
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1004ecfd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x1004edcd
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 0x1004edcb
push 0xf
push str.CommonUtil.cpp
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.1000cf00
mov byte [ebp - 4], 1
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x1b4]
push 0x27e
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10007f90
mov esi, eax
push str.RunLocalExe_param_error
push esi
mov byte [ebp - 4], 2
call fcn.10008dd0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x1b4]
call fcn.10008e90
lea ecx, [ebp - 0x58]
call fcn.10007310
lea ecx, [ebp - 0x70]
call fcn.10007310
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.101799ce
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10009b10
int3