Function at 0x1000ada0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a99ad
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
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 edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
je 0x1000ade8
mov eax, 1
jmp 0x1000b104
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000adde
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1000ae0a
push edi
call ebx
test eax, eax
jne 0x1000adde
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10081e40
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10081e40
push edi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.1009045d
add esp, 0x24
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x100b3a68
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call ebx
call fcn.10007040
mov ecx, eax
test ecx, ecx
je 0x1000b120
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x454], esi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea eax, [ebp - 0x218]
push eax
jne 0x1000afba
push edi
lea eax, [ebp - 0x454]
push 0x100b3a70
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
movzx eax, al
sub eax, 1
jne 0x1000b0d4
push 0x4d
push str.d:jenkins.jenkinsworkspacepop_popex_poppop_popexpoppopcommonutil.cpp
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], al
call fcn.1000bdb0
push 3
push 0x100b3af0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 1
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.1000bdb0
mov byte [ebp - 4], 2
call fcn.100609e0
mov ebx, eax
lea ecx, [ebp - 0x4ec]
push 0xd9
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.100090e0
mov edi, eax
mov esi, dword [ebp - 0x454]
mov ecx, 0x100b39f4
test esi, esi
mov byte [ebp - 4], 3
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 - 0x4ec]
call fcn.10009fa0
lea ecx, [ebp - 0x438]
call fcn.10006b60
lea ecx, [ebp - 0x450]
call fcn.10006b60
xor edi, edi
jmp 0x1000b0e3
call ebx
test eax, eax
jne 0x1000b0de
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x454]
push 0x100b3af4
push eax
call fcn.10006f50
add esp, 0xc
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 0x1000b0d4
push 0x4d
push str.d:jenkins.jenkinsworkspacepop_popex_poppop_popexpoppopcommonutil.cpp
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], al
call fcn.1000bdb0
push 3
push 0x100b3af0
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 4
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.1000bdb0
mov byte [ebp - 4], 5
call fcn.100609e0
mov ebx, eax
lea ecx, [ebp - 0x4ec]
push 0xe2
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.100090e0
mov edi, eax
mov esi, dword [ebp - 0x454]
mov ecx, 0x100b39f4
test esi, esi
mov byte [ebp - 4], 6
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 - 0x4ec]
call fcn.10009fa0
lea ecx, [ebp - 0x450]
call fcn.10006b60
lea ecx, [ebp - 0x438]
call fcn.10006b60
xor edi, edi
jmp 0x1000b0e3
mov esi, dword [ebp - 0x454]
xor edi, edi
jmp 0x1000b0e3
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000b102
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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
push 0x80004005
call fcn.10006cd0
int3