Function at 0x1002f220
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ed04f
mov eax, dword fs:[0]
push eax
sub esp, 0xa10
mov eax, dword [0x10130fc4]
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 dword [ebp - 0x8ec], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x8e0], eax
mov dword [ebp - 0x8dc], ebx
call fcn.1006fe30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1002f404
push 0x74
push str.d:jenkins.jenkinsworkspacelib_commonjs_basic_branchjs_basicjs_basicjs_basicjsexternalcpp_interface_misc.cc
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x644], 0xf
mov byte [ebp - 0x658], al
call fcn.1000b050
push 3
push 0x100faf40
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 0
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], 0
call fcn.1000b050
mov byte [ebp - 4], 1
call fcn.1006fe30
mov ebx, eax
lea ecx, [ebp - 0x984]
push 0x86f
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.10007cf0
mov edi, eax
push str.CopyDirectory_source:
push edi
mov byte [ebp - 4], 2
call fcn.10005ad0
mov eax, dword [ebp - 0x8e0]
mov esi, str._null_
test eax, eax
mov ecx, esi
cmovne ecx, eax
push ecx
push edi
call fcn.10005ad0
push str._dir:
push edi
call fcn.10005ad0
mov eax, dword [ebp - 0x8dc]
test eax, eax
cmovne esi, eax
push esi
push edi
call fcn.10005ad0
mov eax, dword [ebx]
add esp, 0x20
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x984]
call fcn.100090f0
mov edx, dword [ebp - 0x62c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1002f3a2
mov ecx, dword [ebp - 0x640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f398
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f6ec
push edx
push ecx
call fcn.100a20af
add esp, 8
mov edx, dword [ebp - 0x644]
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x1002f3fe
mov ecx, dword [ebp - 0x658]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f3f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f6f1
push edx
push ecx
call fcn.100a20af
add esp, 8
mov ebx, dword [ebp - 0x8dc]
mov edi, dword [ebp - 0x8e0]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
jne 0x1002f41e
xor eax, eax
jmp 0x1002f6ce
push ebx
call esi
test eax, eax
jne 0x1002f42d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x628]
push edi
push eax
call ebx
push 0x100fdec0
lea eax, [ebp - 0x628]
push eax
call ebx
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x8e8], eax
cmp eax, 0xffffffff
je 0x1002f417
mov edi, dword [ebp + 0x10]
mov esi, 1
mov dword [ebp - 0x8e4], esi
nop dword [eax + eax]
push dword [ebp - 0x8e0]
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
push dword [ebp - 0x8dc]
lea eax, [ebp - 0x420]
push eax
call ebx
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
test byte [ebp - 0x8d8], 0x10
je 0x1002f56e
mov ecx, 0x100fdec4
lea eax, [ebp - 0x8ac]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002f4fc
test dx, dx
je 0x1002f4f8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002f4fc
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002f4d6
xor eax, eax
jmp 0x1002f501
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002f6a5
mov eax, 0x100fdec8
lea ecx, [ebp - 0x8ac]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1002f53a
test dx, dx
je 0x1002f536
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1002f53a
add ecx, 4
add eax, 4
test dx, dx
jne 0x1002f514
xor eax, eax
jmp 0x1002f53f
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002f6a5
mov ecx, dword [ebp - 0x8ec]
lea eax, [ebp - 0x420]
push edi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1002f220
and esi, eax
mov dword [ebp - 0x8e4], esi
jmp 0x1002f6a5
xor eax, eax
test edi, edi
sete al
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1002f6a5
call fcn.1006fe30
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1002f6a5
push 0x74
push str.d:jenkins.jenkinsworkspacelib_commonjs_basic_branchjs_basicjs_basicjs_basicjsexternalcpp_interface_misc.cc
lea ecx, [ebp - 0x688]
mov dword [ebp - 0x678], eax
mov dword [ebp - 0x674], 0xf
mov byte [ebp - 0x688], al
call fcn.1000b050
push 3
push 0x100faf40
lea ecx, [ebp - 0x670]
mov dword [ebp - 4], 3
mov dword [ebp - 0x660], 0
mov dword [ebp - 0x65c], 0xf
mov byte [ebp - 0x670], 0
call fcn.1000b050
mov byte [ebp - 4], 4
call fcn.1006fe30
mov edi, eax
lea ecx, [ebp - 0xa1c]
push 0x895
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.10007cf0
mov esi, eax
push str.Failed_to_copy_file
push esi
mov byte [ebp - 4], 5
call fcn.10005ad0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10005ad0
push str._to
push esi
call fcn.10005ad0
lea eax, [ebp - 0x420]
push eax
push esi
call fcn.10005ad0
mov eax, dword [edi]
add esp, 0x20
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xa1c]
call fcn.100090f0
lea ecx, [ebp - 0x670]
call fcn.10008890
lea ecx, [ebp - 0x688]
mov dword [ebp - 4], 0xffffffff
call fcn.10008890
mov esi, dword [ebp - 0x8e4]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x8d8]
push eax
push dword [ebp - 0x8e8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002f480
push dword [ebp - 0x8e8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
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.100a242e
mov esp, ebp
pop ebp
ret 0xc
call fcn.100c042a
call fcn.100c042a
int3