Function at 0x10051160
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101018e6
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x10145fb4]
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 edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
test esi, esi
jne 0x100511a5
mov eax, 1
jmp 0x10051405
cmp word [esi], 0
je 0x1005119b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100511b0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x1005119b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100511dc
mov eax, 2
jmp 0x10051405
cmp dword [ebp + 0x14], 0
je 0x100512bc
push ebx
push esi
call fcn.100a5900
add esp, 8
test eax, eax
jne 0x100512bc
call fcn.1007b1e0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100512b2
push 0x5c
push str.d:jenkins.jenkinsworkspacelib_commonjs_basic_branchjs_basicjs_basicjs_basicutils.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.1000af60
push 3
push 0x1010ccec
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.1000af60
mov byte [ebp - 4], 1
call fcn.1007b1e0
mov edi, eax
lea ecx, [ebp - 0x110]
push 0xf6
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10007c00
mov esi, eax
push str.CheckDigitalSign_Failed
push esi
mov byte [ebp - 4], 2
call fcn.10005ad0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x110]
call fcn.10009000
lea ecx, [ebp - 0x28]
call fcn.100087a0
lea ecx, [ebp - 0x40]
call fcn.100087a0
mov eax, 3
jmp 0x10051405
lea ecx, [ebp - 0x74]
call fcn.10033940
push edi
push esi
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 3
push str.__s___s
push eax
call fcn.10014e70
add esp, 0x10
cmp dword [ebp + 0x1c], 0
je 0x10051319
mov eax, dword [ebp - 0x74]
cmp dword [eax - 4], 1
jle 0x100512fb
push dword [eax - 0xc]
lea ecx, [ebp - 0x74]
call fcn.100097a0
mov eax, dword [ebp - 0x74]
push 0
push 0
push 0
push 0
push 0xa
push eax
call fcn.10055be0
add esp, 0x18
test eax, eax
je 0x10051319
xor ebx, ebx
jmp 0x100513fb
push 0xa
push 0
push edi
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
mov dword [ebp - 0x78], eax
cmp eax, 0x20
setg bl
call fcn.1007b1e0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100513f5
push 0x5c
push str.d:jenkins.jenkinsworkspacelib_commonjs_basic_branchjs_basicjs_basicjs_basicutils.cc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.1000af60
push 3
push 0x1010ccec
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.1000af60
mov byte [ebp - 4], 5
call fcn.1007b1e0
mov edi, eax
lea ecx, [ebp - 0x1a8]
push 0x106
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10007c00
mov esi, eax
push str.ShellExecuteW_return_value:
push esi
mov byte [ebp - 4], 6
call fcn.10008f40
add esp, 8
mov ecx, esi
push dword [ebp - 0x78]
call fcn.100144d0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1a8]
call fcn.10009000
lea ecx, [ebp - 0x58]
call fcn.100087a0
lea ecx, [ebp - 0x70]
call fcn.100087a0
xor ebx, 1
shl ebx, 2
lea ecx, [ebp - 0x74]
call fcn.100085e0
mov eax, ebx
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.100b254d
mov esp, ebp
pop ebp
ret