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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab98f
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x100db688]
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 - 0x364], ebx
mov dword [ebp - 0x354], esi
mov eax, dword [esi + 4]
test eax, eax
je 0x10021be8
cmp eax, 1
je 0x10021be8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10021be8
cmp eax, dword [ebx + 0x2c]
jne 0x10021be8
push 3
push dword [esi + 0x70]
lea eax, [ebp - 0x348]
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x34c], eax
call fcn.10021040
push dword [ebp - 0x34c]
lea ecx, [ebp - 0x360]
mov dword [ebp - 4], 0
call fcn.10006990
mov eax, dword [ebp - 0x34c]
lea ecx, [ebp - 0x348]
cmp eax, ecx
je 0x100211c5
push eax
call fcn.10088bae
add esp, 4
lea ecx, [ebp - 0x35c]
call fcn.10020910
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 - 0x360]
lea eax, [ebp - 0x35c]
push str.download_url__s__s
push eax
call fcn.10006f50
add esp, 0x10
call fcn.100609e0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
mov esi, dword [ebp - 0x35c]
movzx eax, al
sub eax, 1
jne 0x100212f6
push 0x51
push str.d:jenkins.jenkinsworkspacepop_popex_poppop_popexpoppopexeserialrunner.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000bdb0
push 3
push 0x100b3af0
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.1000bdb0
mov byte [ebp - 4], 5
call fcn.100609e0
mov ebx, eax
lea ecx, [ebp - 0x43c]
push 0xdc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.100090e0
mov edi, eax
test esi, esi
mov byte [ebp - 4], 6
mov ecx, 0x100b39f4
cmovne ecx, esi
push ecx
push edi
call fcn.10008960
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.10009fa0
lea ecx, [ebp - 0x230]
call fcn.10006b60
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.10006b60
mov ebx, dword [ebp - 0x364]
push dword [ebx + 0x3c]
lea edi, [ebx + 0x3c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10021b96
mov eax, dword [ebp - 0x354]
cmp dword [eax + 4], 3
je 0x10021b96
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x358]
call fcn.10006990
mov eax, dword [ebx + 0x30]
mov byte [ebp - 4], 7
cmp dword [eax + 0xc8], 0
je 0x10021478
push 0x100b6448
push dword [ebp - 0x358]
call fcn.10090557
add esp, 8
test eax, eax
jne 0x10021478
push edi
lea ecx, [ebp - 0x350]
call fcn.100208e0
mov eax, dword [ebp - 0x350]
mov byte [ebp - 4], 8
cmp dword [eax - 4], 1
jle 0x1002138d
push dword [eax - 0xc]
lea ecx, [ebp - 0x350]
call fcn.10006ed0
mov eax, dword [ebp - 0x350]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x350]
call fcn.10022000
push edi
lea ecx, [ebp - 0x354]
call fcn.100208e0
push str..exe
push 0x104
lea ecx, [ebp - 0x354]
mov byte [ebp - 4], 9
call fcn.10020f30
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x354]
call fcn.10022000
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10081e40
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.1000b540
lea ecx, [ebp - 0x218]
add esp, 8
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021440
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10007260
lea ecx, [ebp - 0x354]
call fcn.10006b40
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 7
call fcn.10006b40
mov eax, dword [ebx + 0x4c]
lea ecx, [ebp - 0x350]
add eax, 0x10
push eax
call fcn.100208e0
mov eax, dword [ebp - 0x350]
mov byte [ebp - 4], 0xa
cmp dword [eax - 0xc], 0
jne 0x1002156a
push dword [edi]
call fcn.10049a60
add esp, 4
test eax, eax
jne 0x10021684
push eax
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.100609e0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10021669
push 0x51
push str.d:jenkins.jenkinsworkspacepop_popex_poppop_popexpoppopexeserialrunner.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000bdb0
push 3
push 0x100b3af0
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.1000bdb0
mov byte [ebp - 4], 0xc
call fcn.100609e0
mov ebx, eax
lea ecx, [ebp - 0x43c]
push 0xfe
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100090e0
mov edi, eax
mov byte [ebp - 4], 0xd
jmp 0x10021632
push eax
push dword [edi]
call fcn.10049790
add esp, 8
test eax, eax
jne 0x10021684
push eax
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.100609e0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10021669
push 0x51
push str.d:jenkins.jenkinsworkspacepop_popex_poppop_popexpoppopexeserialrunner.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000bdb0
push 3
push 0x100b3af0
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.1000bdb0
mov byte [ebp - 4], 0xf
call fcn.100609e0
mov ebx, eax
lea ecx, [ebp - 0x43c]
push 0x107
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100090e0
mov edi, eax
mov byte [ebp - 4], 0x10
push str.check_sign_failed.
push edi
call fcn.10008960
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.10009fa0
lea ecx, [ebp - 0x248]
call fcn.10006b60
lea ecx, [ebp - 0x230]
call fcn.10006b60
lea ecx, [ebp - 0x350]
call fcn.10006b40
lea ecx, [ebp - 0x358]
call fcn.10006b40
jmp 0x10021ba8
lea ecx, [ebp - 0x354]
call fcn.10020910
mov eax, dword [ebx + 0x4c]
mov byte [ebp - 4], 0x11
test eax, eax
je 0x100216b1
lea ecx, [eax + 0x20]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x100216b1
push ecx
lea ecx, [ebp - 0x354]
call fcn.100074b0
mov eax, dword [edi]
xorps xmm0, xmm0
mov dword [ebp - 0x394], eax
mov eax, dword [ebp - 0x354]
mov dword [ebp - 0x390], eax
lea eax, [ebp - 0x3a4]
push eax
movlpd qword [ebp - 0x39c], xmm0
mov dword [ebp - 0x38c], 0
movlpd qword [ebp - 0x384], xmm0
movlpd qword [ebp - 0x37c], xmm0
movlpd qword [ebp - 0x374], xmm0
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x3a4], 0x3c
mov dword [ebp - 0x388], 1
mov dword [ebp - 0x3a0], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x364], eax
call fcn.100609e0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x10021819
push 0x51
mov dword [ebp - 0x220], ecx
mov byte [ebp - 0x230], cl
lea ecx, [ebp - 0x230]
push str.d:jenkins.jenkinsworkspacepop_popex_poppop_popexpoppopexeserialrunner.cpp
mov dword [ebp - 0x21c], 0xf
call fcn.1000bdb0
push 3
push 0x100b3af0
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.1000bdb0
mov byte [ebp - 4], 0x13
call fcn.100609e0
mov edi, eax
lea ecx, [ebp - 0x43c]
push 0x11b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100090e0
mov esi, eax
push str.run_exe
push esi
mov byte [ebp - 4], 0x14
call fcn.10008960
add esp, 8
mov ecx, esi
push dword [ebp - 0x364]
call fcn.10010b30
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.10009fa0
lea ecx, [ebp - 0x248]
call fcn.10006b60
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.10006b60
cmp dword [ebp - 0x364], 0
je 0x10021a61
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1002184e
push dword [eax + 8]
mov ecx, dword [ebx + 0x30]
call fcn.1001e100
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x30]
add eax, 0xc
push eax
call fcn.10015320
mov ecx, eax
call fcn.1002e8a0
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x368], eax
mov eax, dword [ebp - 0x36c]
push 0xffffffffffffffff
mov dword [ebp - 0x364], eax
lea eax, [ebp - 0x368]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x36c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.100609e0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
test esi, esi
jne 0x1002197e
sub eax, 1
jne 0x10021967
push 0x51
push str.d:jenkins.jenkinsworkspacepop_popex_poppop_popexpoppopexeserialrunner.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000bdb0
push 3
push 0x100b3af0
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.1000bdb0
mov byte [ebp - 4], 0x16
call fcn.100609e0
mov edi, eax
lea ecx, [ebp - 0x43c]
push 0x126
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100090e0
mov esi, eax
push str.stop_event__quit
push esi
mov byte [ebp - 4], 0x17
call fcn.10008960
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.10009fa0
lea ecx, [ebp - 0x248]
call fcn.10006b60
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.10006b60
push 0
push 0
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10021b52
sub eax, 1
jne 0x10021a4a
push 0x51
push str.d:jenkins.jenkinsworkspacepop_popex_poppop_popexpoppopexeserialrunner.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000bdb0
push 3
push 0x100b3af0
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.1000bdb0
mov byte [ebp - 4], 0x19
call fcn.100609e0
mov edi, eax
lea ecx, [ebp - 0x43c]
push 0x12b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100090e0
mov esi, eax
push str.process_quit__start_next
push esi
mov byte [ebp - 4], 0x1a
call fcn.10008960
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.10009fa0
lea ecx, [ebp - 0x248]
call fcn.10006b60
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.10006b60
push 0
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10021b52
push 0
push 1
push 0x948
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.100609e0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10021b52
push 0x51
push str.d:jenkins.jenkinsworkspacepop_popex_poppop_popexpoppopexeserialrunner.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1000bdb0
push 3
push 0x100b3af0
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.1000bdb0
mov byte [ebp - 4], 0x1c
call fcn.100609e0
mov edi, eax
lea ecx, [ebp - 0x43c]
push 0x132
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100090e0
mov esi, eax
push str.run_process_failed__start_next
push esi
mov byte [ebp - 4], 0x1d
call fcn.10008960
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x43c]
call fcn.10009fa0
lea ecx, [ebp - 0x248]
call fcn.10006b60
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x11
call fcn.10006b60
lea eax, [ebx + 0x3c]
mov ecx, ebx
push eax
call fcn.10020c70
lea ecx, [ebp - 0x354]
call fcn.10006b40
lea ecx, [ebp - 0x350]
call fcn.10006b40
lea ecx, [ebp - 0x358]
call fcn.10006b40
lea ecx, [ebp - 0x35c]
call fcn.10006b40
lea ecx, [ebp - 0x360]
call fcn.10006b40
jmp 0x10021be8
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 0x10021bc6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10021be8
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.10061c7c
mov esp, ebp
pop ebp
ret 0xc