Function at 0x100315b0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb6bc
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x10141fc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10031c7a
mov ecx, dword [ebp - 0x90]
push esi
push edi
call fcn.10031cd0
test eax, eax
jne 0x100316ff
mov dword [ebp - 0x8c], 1
call fcn.100796a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10031805
push 0x74
push str.d:jenkins.jenkinsworkspacelib_commonjs_basic_branchjs_basicjs_basicjs_basicjsexternalcpp_interface_misc.cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000af60
push 3
push 0x10109f40
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.1000af60
mov byte [ebp - 4], 1
call fcn.100796a0
mov edi, eax
lea ecx, [ebp - 0x138]
push 0x90c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10007c00
mov esi, eax
push str.source_file_ver_low_souce_file:
push esi
mov byte [ebp - 4], 2
call fcn.10008f40
mov eax, dword [ebp - 0x98]
mov ecx, str._null_
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.10005ad0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x138]
call fcn.10009000
lea ecx, [ebp - 0x58]
call fcn.100087a0
lea ecx, [ebp - 0x28]
call fcn.100087a0
mov esi, dword [ebp - 0x8c]
jmp 0x10031c7c
call fcn.10009850
mov ecx, eax
test ecx, ecx
je 0x10031c9b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x8c], eax
push edi
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 3
call fcn.10033b30
test al, al
jne 0x1003175e
test edi, edi
jne 0x1003173d
xor ecx, ecx
jmp 0x10031751
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031742
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x8c]
call fcn.1000a120
mov esi, dword [ebp - 0x8c]
push esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x90], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100317a1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
test cl, 0x10
je 0x100317a1
xor eax, eax
mov edx, 1
cmp ecx, 0xffffffff
cmovne eax, edx
mov dword [ebp - 0x90], eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100317b9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x90], 0
jne 0x10031c7a
mov esi, dword [ebp + 0x10]
xor eax, eax
test esi, esi
sete al
push eax
push dword [ebp - 0x94]
mov dword [ebp - 0xa0], eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
mov dword [ebp - 0x8c], edi
test edi, edi
jne 0x100316f4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x50
jne 0x1003180f
test esi, esi
jne 0x1003180f
mov esi, 1
jmp 0x10031c7c
call fcn.100796a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100319a1
call edi
push 0x74
push str.d:jenkins.jenkinsworkspacelib_commonjs_basic_branchjs_basicjs_basicjs_basicjsexternalcpp_interface_misc.cc
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.1000af60
push 3
push 0x10109f40
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000af60
mov byte [ebp - 4], 5
call fcn.100796a0
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0x138]
push 0x91a
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10007c00
mov edi, eax
push str.Failed_to_copy_file
push edi
mov byte [ebp - 4], 6
call fcn.10005ad0
mov eax, dword [ebp - 0x98]
mov esi, str._null_
test eax, eax
mov ecx, esi
cmovne ecx, eax
push ecx
push edi
call fcn.10005ad0
push str._to
push edi
call fcn.10005ad0
mov eax, dword [ebp - 0x94]
test eax, eax
cmovne esi, eax
push esi
push edi
call fcn.10005ad0
push str.__err:
push edi
call fcn.10005ad0
add esp, 0x28
mov ecx, edi
push dword [ebp - 0x90]
call fcn.10014680
mov ecx, dword [ebp - 0x9c]
push edi
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x138]
call fcn.10009000
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x10031954
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003194a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031ca5
push edx
push ecx
call fcn.100af97f
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x100319a1
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10031997
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031caa
push edx
push ecx
call fcn.100af97f
add esp, 8
mov edi, dword [ebp - 0x94]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100316f4
mov ecx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100319d0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.1000b050
push 4
push str..tmp
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 7
call fcn.10018620
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x10031a6f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031a65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031caf
push edx
push ecx
call fcn.100af97f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x14], 7
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x9c], eax
call fcn.100796a0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x10031c1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x74
push str.d:jenkins.jenkinsworkspacelib_commonjs_basic_branchjs_basicjs_basicjs_basicjsexternalcpp_interface_misc.cc
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
call fcn.1000af60
push 3
push 0x10109f40
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.1000af60
mov byte [ebp - 4], 0xb
call fcn.100796a0
mov edi, eax
lea ecx, [ebp - 0x1d0]
push 0x922
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.10007c00
mov esi, eax
push str.Move_ret:
push esi
mov byte [ebp - 4], 0xc
call fcn.10005ad0
add esp, 8
mov ecx, esi
push dword [ebp - 0x9c]
call fcn.100144d0
push 0x1010d10c
push esi
call fcn.10005ad0
add esp, 8
mov ecx, esi
push dword [ebp - 0x90]
call fcn.10014680
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1d0]
call fcn.10009000
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x10031bcb
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10031bc1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031cb4
push edx
push ecx
call fcn.100af97f
add esp, 8
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp edx, 0x10
jb 0x10031c14
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10031c0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031cb9
push edx
push ecx
call fcn.100af97f
add esp, 8
mov edi, dword [ebp - 0x94]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0xa0]
mov eax, dword [ebp - 0x98]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x2c]
mov esi, eax
cmp edx, 8
jb 0x10031c7c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031c6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031cbe
push edx
push ecx
call fcn.100af97f
add esp, 8
jmp 0x10031c7c
xor esi, esi
mov eax, esi
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.100afcfe
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10009640
call fcn.100ce5da
call fcn.100ce5da
call fcn.100ce5da
call fcn.100ce5da
call fcn.100ce5da
call fcn.100ce5da
int3