Function at 0x100340c0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x14c
mov eax, dword [0x10126a94]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
mov ebp, dword [esp + 0x15c]
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x15c]
push edi
push eax
push ebp
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, ebp
mov dword [esp + 0x14], eax
lea edx, [ebx + 1]
nop
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x10034100
sub ebx, edx
mov byte [ebx + ebp - 1], cl
lea edi, [ebx + ebp]
cmp eax, 0xffffffff
je 0x100342e2
nop dword [eax]
test byte [esp + 0x18], 0x10
je 0x1003423e
mov ecx, 0x100f9dbc
lea eax, [esp + 0x44]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10034154
test dl, dl
je 0x10034150
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10034154
add eax, 2
add ecx, 2
test dl, dl
jne 0x10034134
xor eax, eax
jmp 0x10034159
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003423e
mov ecx, 0x100f9dc0
lea eax, [esp + 0x44]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10034190
test dl, dl
je 0x1003418c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10034190
add eax, 2
add ecx, 2
test dl, dl
jne 0x10034170
xor eax, eax
jmp 0x10034195
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003423e
cmp byte [esp + 0x44], 0x5b
mov edi, 1
jne 0x1003423a
lea ecx, [esp + 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100341b4
sub ecx, edx
cmp byte [esp + ecx + 0x43], 0x5d
jne 0x1003423a
lea eax, [ebx + 1]
add eax, ecx
cmp eax, 0x104
lea eax, [esp + 0x44]
jae 0x1003421e
lea edi, [ebx + ebp]
mov ecx, eax
lea edx, [edi - 1]
sub edx, ecx
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x100341e0
lea ecx, [ebp - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x100341f0
mov ax, word [0x100f9dc4]
mov word [ecx], ax
mov al, byte [0x100f9dc6]
push ebp
push esi
mov byte [ecx + 2], al
call fcn.100340c0
add esp, 8
mov byte [edi - 1], 0
jmp 0x100342c1
push eax
mov eax, dword [esi + 4]
push ebp
push str.skipping__s_s_because_the_path_is_too_long
push 2
push dword [eax + 0x18]
call fcn.10019a50
add esp, 0x14
jmp 0x100342c1
xor esi, esi
jmp 0x1003428f
mov dl, byte [esp + 0x44]
lea ecx, [esp + 0x44]
xor edi, edi
xor esi, esi
test dl, dl
je 0x1003427c
nop
inc ecx
cmp dl, 0x2e
mov eax, ecx
cmovne eax, esi
mov esi, eax
mov dl, byte [ecx]
test dl, dl
jne 0x10034250
test esi, esi
je 0x1003427c
push 0x100f9d4c
push esi
call fcn.100378c0
add esp, 8
test eax, eax
jne 0x1003427c
lea esi, [eax + 1]
jmp 0x1003428f
lea eax, [esp + 0x44]
xor esi, esi
push eax
call fcn.100332a0
add esp, 4
test eax, eax
je 0x100342bd
push ebp
push 0x800
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.10032e50
add esp, 0x10
test eax, eax
je 0x100342bd
push edi
push esi
mov esi, dword [esp + 0x18]
push eax
push esi
call fcn.10033c30
add esp, 0x10
jmp 0x100342c1
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10034120
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1003430c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x1003430c
call esi
push eax
mov eax, dword [esp + 0x14]
push ebp
push str.failed_to_find_script_collections__path:__s__win32:__d_
push 1
mov eax, dword [eax + 4]
push dword [eax + 0x18]
call fcn.10019a50
add esp, 0x14
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100af7bb
add esp, 0x14c
ret