Function at 0x1002f1e0
Capabilities:
Check if file exists
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e51b9
mov eax, dword fs:[0]
push eax
sub esp, 0x948
mov eax, dword [0x10129fb4]
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 - 0x8b8], ecx
mov ebx, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
mov dword [ebp - 0x8bc], ebx
mov dword [ebp - 0x8b4], eax
mov dword [ebp - 0x8b0], esi
call edi
test eax, eax
je 0x1002f49c
call fcn.10009930
mov ecx, eax
test ecx, ecx
je 0x1002f65e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8ac], eax
push ebx
lea ecx, [ebp - 0x8ac]
mov dword [ebp - 4], esi
call fcn.10031820
test al, al
jne 0x1002f29c
test ebx, ebx
jne 0x1002f277
xor ecx, ecx
jmp 0x1002f28f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002f280
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x8ac]
call fcn.1000a200
mov esi, dword [ebp - 0x8ac]
mov ebx, 1
push esi
mov dword [ebp - 4], 0xffffffff
call edi
test eax, eax
je 0x1002f2c8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1002f2c8
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ebx, ecx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002f2e0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x1002f30b
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x8b8]
push dword [ebp - 0x8b4]
push dword [ebp - 0x8bc]
call fcn.1002f680
mov esi, eax
mov dword [ebp - 0x8b0], esi
jmp 0x1002f49c
mov ebx, dword [ebp - 0x8b4]
push ebx
call edi
test eax, eax
jne 0x1002f320
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [ebp - 0x8bc]
lea eax, [ebp - 0x628]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
push eax
call edi
push 0x100f5e70
lea eax, [ebp - 0x628]
push eax
call edi
lea eax, [ebp - 0x8a8]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x8ac], eax
cmp eax, 0xffffffff
je 0x1002f49a
mov esi, 1
nop dword [eax]
push ebx
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x87c]
push eax
lea eax, [ebp - 0x420]
push eax
call edi
push dword [ebp - 0x8b4]
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x87c]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
test byte [ebp - 0x8a8], 0x10
je 0x1002f44d
mov ecx, 0x100f5e74
lea eax, [ebp - 0x87c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002f3e7
test dx, dx
je 0x1002f3e3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002f3e7
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002f3c1
xor eax, eax
jmp 0x1002f3ec
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002f46b
mov ecx, 0x100f5e78
lea eax, [ebp - 0x87c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002f426
test dx, dx
je 0x1002f422
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002f426
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002f400
xor eax, eax
jmp 0x1002f42b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002f46b
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x8b8]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.1002f1e0
jmp 0x1002f469
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x8b8]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.1002f680
and esi, eax
lea eax, [ebp - 0x8a8]
push eax
push dword [ebp - 0x8ac]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002f370
push dword [ebp - 0x8ac]
mov dword [ebp - 0x8b0], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1002f49c
xor esi, esi
call fcn.1006cd40
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1002f63e
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.1000b040
push 3
push 0x100f2f40
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 1
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], 0
call fcn.1000b040
mov byte [ebp - 4], 2
call fcn.1006cd40
mov ebx, eax
lea ecx, [ebp - 0x954]
push 0x890
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.10007ce0
mov edi, eax
push str.CopyDirectory_source:
push edi
mov byte [ebp - 4], 3
call fcn.10005ac0
mov eax, dword [ebp - 0x8bc]
mov esi, 0x100f2d94
test eax, eax
mov ecx, esi
cmovne ecx, eax
push ecx
push edi
call fcn.10005ac0
push str.__dir:
push edi
call fcn.10005ac0
mov eax, dword [ebp - 0x8b4]
test eax, eax
cmovne esi, eax
push esi
push edi
call fcn.10005ac0
push str.__ret:
push edi
call fcn.10005ac0
mov esi, dword [ebp - 0x8b0]
add esp, 0x28
mov ecx, edi
push esi
call fcn.10014360
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x954]
call fcn.100090e0
mov edx, dword [ebp - 0x62c]
cmp edx, 0x10
jb 0x1002f5ed
mov ecx, dword [ebp - 0x640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f5e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f668
push edx
push ecx
call fcn.1009e49f
add esp, 8
mov edx, dword [ebp - 0x644]
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], 0
cmp edx, 0x10
jb 0x1002f63e
mov ecx, dword [ebp - 0x658]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f634
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f66d
push edx
push ecx
call fcn.1009e49f
add esp, 8
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.1009e81e
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10009720
call fcn.100bc709
call fcn.100bc709
int3