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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009e01f
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x100d07a8]
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 + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x368], ebx
mov dword [ebp - 0x350], esi
mov eax, dword [esi + 4]
test eax, eax
je 0x10022baa
cmp eax, 1
je 0x10022baa
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10022baa
cmp eax, dword [ebx + 0x2c]
jne 0x10022baa
mov edi, dword [esi + 0x70]
lea eax, [ebp - 0x348]
mov dword [ebp - 0x34c], eax
test edi, edi
jne 0x10022088
xor eax, eax
mov dword [ebp - 0x34c], eax
jmp 0x10022161
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022090
sub ecx, edx
push 0x80
lea eax, [ecx + 1]
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x354], eax
push ecx
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.10012800
mov eax, dword [ebp - 0x354]
add esp, 0x10
push eax
push dword [ebp - 0x34c]
push eax
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x358], ecx
test eax, eax
jne 0x10022153
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1002214d
push 0
push 0
push dword [ebp - 0x354]
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [ebp - 0x348]
push 0x80
push eax
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.10012800
add esp, 0x10
push esi
push dword [ebp - 0x34c]
push dword [ebp - 0x354]
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 0x350]
mov ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x10022153
mov ecx, dword [ebp - 0x358]
test ecx, ecx
jne 0x10022bc8
mov eax, dword [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x364]
mov dword [ebp - 4], 0
call fcn.10002930
mov eax, dword [ebp - 0x34c]
lea ecx, [ebp - 0x348]
cmp eax, ecx
je 0x1002218d
push eax
call fcn.1007b84f
add esp, 4
lea ecx, [ebp - 0x360]
call fcn.10021a00
cmp dword [esi + 4], 2
mov ecx, str.failed.
mov eax, str.success
mov byte [ebp - 4], 3
cmovne eax, ecx
push eax
push dword [ebp - 0x364]
lea eax, [ebp - 0x360]
push str.download_url__s__s
push eax
call fcn.10002ef0
add esp, 0x10
call fcn.100689b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
mov esi, dword [ebp - 0x360]
movzx eax, al
sub eax, 1
jne 0x100222be
push 0x5c
push str.d:jenkins.jenkinsworkspacelib_commonpop_popexpoppop_popexpoppopexeserialrunner.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000a260
push 3
push 0x100a680c
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1000a260
mov byte [ebp - 4], 5
call fcn.100689b0
mov ebx, eax
lea ecx, [ebp - 0x440]
push 0xdc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10004790
mov edi, eax
test esi, esi
mov byte [ebp - 4], 6
mov ecx, 0x100a68c0
cmovne ecx, esi
push ecx
push edi
call fcn.10003800
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x440]
call fcn.10005bc0
lea ecx, [ebp - 0x230]
call fcn.10002b00
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.10002b00
mov ebx, dword [ebp - 0x368]
push dword [ebx + 0x3c]
lea edi, [ebx + 0x3c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10022b58
mov eax, dword [ebp - 0x350]
cmp dword [eax + 4], 3
je 0x10022b58
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x35c]
call fcn.10002930
mov ecx, dword [ebx + 0x30]
mov byte [ebp - 4], 7
call fcn.10017f20
test eax, eax
je 0x1002243a
push 0x100a9040
push dword [ebp - 0x35c]
call fcn.1008466c
add esp, 8
test eax, eax
jne 0x1002243a
push edi
lea ecx, [ebp - 0x350]
call fcn.100219d0
mov eax, dword [ebp - 0x350]
mov byte [ebp - 4], 8
cmp dword [eax - 4], 1
jle 0x10022355
push dword [eax - 0xc]
lea ecx, [ebp - 0x350]
call fcn.10002e70
mov eax, dword [ebp - 0x350]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x350]
call fcn.10022fe0
push edi
lea ecx, [ebp - 0x354]
call fcn.100219d0
push str..exe
push 0x104
lea ecx, [ebp - 0x354]
mov byte [ebp - 4], 9
call fcn.10021fb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x354]
call fcn.10022fe0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10075650
mov edi, dword [ebp - 0x350]
add esp, 0xc
push dword [ebp - 0x354]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x350]
push eax
lea edi, [ebx + 0x3c]
push edi
call fcn.10012360
lea ecx, [ebp - 0x218]
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022402
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10003220
lea ecx, [ebp - 0x354]
call fcn.10002ae0
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 7
call fcn.10002ae0
mov eax, dword [ebx + 0x4c]
lea ecx, [ebp - 0x350]
add eax, 0x10
push eax
call fcn.100219d0
mov eax, dword [ebp - 0x350]
mov byte [ebp - 4], 0xa
cmp dword [eax - 0xc], 0
jne 0x1002252c
push dword [edi]
call fcn.1004c350
add esp, 4
test eax, eax
jne 0x10022646
push eax
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.100689b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1002262b
push 0x5c
push str.d:jenkins.jenkinsworkspacelib_commonpop_popexpoppop_popexpoppopexeserialrunner.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000a260
push 3
push 0x100a680c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000a260
mov byte [ebp - 4], 0xc
call fcn.100689b0
mov ebx, eax
lea ecx, [ebp - 0x440]
push 0xfe
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10004790
mov edi, eax
mov byte [ebp - 4], 0xd
jmp 0x100225f4
push eax
push dword [edi]
call fcn.1004bf30
add esp, 8
test eax, eax
jne 0x10022646
push eax
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.100689b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1002262b
push 0x5c
push str.d:jenkins.jenkinsworkspacelib_commonpop_popexpoppop_popexpoppopexeserialrunner.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000a260
push 3
push 0x100a680c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000a260
mov byte [ebp - 4], 0xf
call fcn.100689b0
mov ebx, eax
lea ecx, [ebp - 0x440]
push 0x107
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10004790
mov edi, eax
mov byte [ebp - 4], 0x10
push str.check_sign_failed.
push edi
call fcn.10003800
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x440]
call fcn.10005bc0
lea ecx, [ebp - 0x248]
call fcn.10002b00
lea ecx, [ebp - 0x230]
call fcn.10002b00
lea ecx, [ebp - 0x350]
call fcn.10002ae0
lea ecx, [ebp - 0x35c]
call fcn.10002ae0
jmp 0x10022b6a
lea ecx, [ebp - 0x354]
call fcn.10021a00
mov eax, dword [ebx + 0x4c]
mov byte [ebp - 4], 0x11
test eax, eax
je 0x10022673
lea ecx, [eax + 0x20]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x10022673
push ecx
lea ecx, [ebp - 0x354]
call fcn.10003470
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [ebp - 0x398], eax
mov eax, dword [ebp - 0x354]
mov dword [ebp - 0x394], eax
lea eax, [ebp - 0x3a8]
push eax
movlpd qword [ebp - 0x3a0], xmm0
mov dword [ebp - 0x390], 0
movlpd qword [ebp - 0x388], xmm0
movlpd qword [ebp - 0x380], xmm0
movlpd qword [ebp - 0x378], xmm0
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x3a8], 0x3c
mov dword [ebp - 0x38c], 1
mov dword [ebp - 0x3a4], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x358], eax
call fcn.100689b0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x100227db
push 0x5c
mov dword [ebp - 0x220], ecx
mov byte [ebp - 0x230], cl
lea ecx, [ebp - 0x230]
push str.d:jenkins.jenkinsworkspacelib_commonpop_popexpoppop_popexpoppopexeserialrunner.cpp
mov dword [ebp - 0x21c], 0xf
call fcn.1000a260
push 3
push 0x100a680c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000a260
mov byte [ebp - 4], 0x13
call fcn.100689b0
mov edi, eax
lea ecx, [ebp - 0x440]
push 0x11b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10004790
mov esi, eax
push str.run_exe
push esi
mov byte [ebp - 4], 0x14
call fcn.10003800
add esp, 8
mov ecx, esi
push dword [ebp - 0x358]
call fcn.10005710
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x440]
call fcn.10005bc0
lea ecx, [ebp - 0x248]
call fcn.10002b00
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.10002b00
cmp dword [ebp - 0x358], 0
je 0x10022a23
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10022810
push dword [eax + 8]
mov ecx, dword [ebx + 0x30]
call fcn.10020b00
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x30]
add eax, 0xc
push eax
call fcn.10017ae0
mov ecx, eax
call fcn.100302a0
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp - 0x370]
push 0xffffffffffffffff
mov dword [ebp - 0x368], eax
lea eax, [ebp - 0x36c]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x370]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.100689b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
test esi, esi
jne 0x10022940
sub eax, 1
jne 0x10022929
push 0x5c
push str.d:jenkins.jenkinsworkspacelib_commonpop_popexpoppop_popexpoppopexeserialrunner.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000a260
push 3
push 0x100a680c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000a260
mov byte [ebp - 4], 0x16
call fcn.100689b0
mov edi, eax
lea ecx, [ebp - 0x440]
push 0x126
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10004790
mov esi, eax
push str.stop_event__quit
push esi
mov byte [ebp - 4], 0x17
call fcn.10003800
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x440]
call fcn.10005bc0
lea ecx, [ebp - 0x248]
call fcn.10002b00
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.10002b00
push 0
push 0
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10022b14
sub eax, 1
jne 0x10022a0c
push 0x5c
push str.d:jenkins.jenkinsworkspacelib_commonpop_popexpoppop_popexpoppopexeserialrunner.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000a260
push 3
push 0x100a680c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000a260
mov byte [ebp - 4], 0x19
call fcn.100689b0
mov edi, eax
lea ecx, [ebp - 0x440]
push 0x12b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10004790
mov esi, eax
push str.process_quit__start_next
push esi
mov byte [ebp - 4], 0x1a
call fcn.10003800
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x440]
call fcn.10005bc0
lea ecx, [ebp - 0x248]
call fcn.10002b00
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.10002b00
push 0
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10022b14
push 0
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.100689b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10022b14
push 0x5c
push str.d:jenkins.jenkinsworkspacelib_commonpop_popexpoppop_popexpoppopexeserialrunner.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000a260
push 3
push 0x100a680c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000a260
mov byte [ebp - 4], 0x1c
call fcn.100689b0
mov edi, eax
lea ecx, [ebp - 0x440]
push 0x132
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10004790
mov esi, eax
push str.run_process_failed__start_next
push esi
mov byte [ebp - 4], 0x1d
call fcn.10003800
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x440]
call fcn.10005bc0
lea ecx, [ebp - 0x248]
call fcn.10002b00
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.10002b00
lea eax, [ebx + 0x3c]
mov ecx, ebx
push eax
call fcn.10021bb0
lea ecx, [ebp - 0x354]
call fcn.10002ae0
lea ecx, [ebp - 0x350]
call fcn.10002ae0
lea ecx, [ebp - 0x35c]
call fcn.10002ae0
lea ecx, [ebp - 0x360]
call fcn.10002ae0
lea ecx, [ebp - 0x364]
call fcn.10002ae0
jmp 0x10022baa
push 0
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10022b88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x364]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10022baa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.1006a4da
mov esp, ebp
pop ebp
ret 0xc
push 0x80
lea eax, [ebp - 0x348]
push eax
push dword [ebp - 0x34c]
call fcn.10012880
add esp, 0xc
call fcn.10015a00
int3