Function at 0x10006040
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b456
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x100d07a8]
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 + 8]
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100072b0
add esp, 0xc
mov byte [ebp - 4], 1
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 0x100061d1
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonpop_popexpoppop_popexpoppopcommon_scriptlocalinfomgr.cpp
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], al
call fcn.1000a260
push 3
push 0x100a680c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000a260
mov byte [ebp - 4], 3
call fcn.100689b0
mov edi, eax
lea ecx, [ebp - 0xf0]
push 0xcd
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10004790
mov esi, eax
push str.local_script_path:
push esi
mov byte [ebp - 4], 4
call fcn.10005a70
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, 0x100a68c0
cmovae ecx, dword [ebp - 0x40]
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.10003800
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xf0]
call fcn.10005bc0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x10006187
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000617d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006357
push edx
push ecx
call fcn.1006a15b
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x100061d1
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100061c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000635c
push edx
push ecx
call fcn.1006a15b
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100062bc
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100062bc
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 0x100062bc
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonpop_popexpoppop_popexpoppopcommon_scriptlocalinfomgr.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000a260
push 3
push 0x100a680c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.1000a260
mov byte [ebp - 4], 6
call fcn.100689b0
mov edi, eax
lea ecx, [ebp - 0xf0]
push 0xd1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10004790
mov esi, eax
push str.delete_local_script_failed
push esi
mov byte [ebp - 4], 7
call fcn.10005a70
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf0]
call fcn.10005bc0
lea ecx, [ebp - 0x58]
call fcn.10002b00
lea ecx, [ebp - 0x28]
call fcn.10002b00
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x100062f2
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100062e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006361
push edx
push ecx
call fcn.1006a15b
add esp, 8
mov edx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x1000633c
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10006332
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006366
push edx
push ecx
call fcn.1006a15b
add esp, 8
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.1006a4da
mov esp, ebp
pop ebp
ret
call fcn.10078889
call fcn.10078889
call fcn.10078889
call fcn.10078889
int3