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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a7f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x100c66d0]
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 ebx, dword [ebp + 8]
cmp dword [ebx + 0x10], 0
mov edi, dword [ebp + 0xc]
je 0x100395fa
mov esi, 8
cmp dword [ebx + 0x14], esi
jb 0x100395e8
mov eax, dword [ebx]
jmp 0x100395ea
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
jne 0x10039601
xor eax, eax
jmp 0x10039814
push str..
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.100069b0
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x10039625
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x2f0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2f4], eax
cmp eax, 0xffffffff
jne 0x10039670
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp dword [ebp - 0x18], 8
jb 0x10039812
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x1003980a
lea eax, [ebp - 0x2c4]
push eax
push 0x100b67c8
call fcn.1003f595
add esp, 8
test eax, eax
je 0x100397c5
lea ecx, [ebp - 0x2c4]
push ecx
push 0x100bb078
call fcn.1003f595
add esp, 8
test eax, eax
je 0x100397c5
push 0x100b6220
lea edx, [ebp - 0x64]
push ebx
push edx
call fcn.100069b0
add esp, 0xc
push eax
lea eax, [ebp - 0x2c4]
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.100068d0
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x50], 8
jb 0x100396e6
mov eax, dword [ebp - 0x64]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
test byte [ebp - 0x2f0], 0x10
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], cx
je 0x100397a2
cmp byte [ebp + 0x10], cl
je 0x10039787
push 0x100b6220
lea edx, [ebp - 0x9c]
push ebx
push edx
call fcn.100069b0
add esp, 0xc
push eax
lea eax, [ebp - 0x2c4]
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.100068d0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.1001db30
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x10039758
mov eax, dword [ebp - 0x48]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x88], esi
jb 0x10039787
mov edx, dword [ebp - 0x9c]
push edx
call fcn.1003d468
add esp, 4
cmp byte [ebp + 0x14], 0
je 0x100397af
mov eax, dword [ebp + 0x10]
push 1
push eax
lea ecx, [ebp - 0x80]
push edi
push ecx
call fcn.100395a0
add esp, 0x10
jmp 0x100397af
cmp byte [ebp + 0x10], cl
jne 0x100397af
lea ecx, [ebp - 0x80]
call fcn.1001d8a0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x6c], 8
jb 0x100397c5
mov edx, dword [ebp - 0x80]
push edx
call fcn.1003d468
add esp, 4
mov esi, dword [ebp - 0x2f4]
lea eax, [ebp - 0x2f0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10039670
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp dword [ebp - 0x18], 8
jb 0x10039812
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1003d468
add esp, 4
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.1003c5b5
mov esp, ebp
pop ebp
ret