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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b71b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2e8
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2e4], esi
cmp dword [esi + 0x10], 0
je 0x4065fc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40624f
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4065fc
push 0x53623c
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408050
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2e0]
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
push ecx
cmovae eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2ec], eax
cmp eax, 0xffffffff
je 0x4065ac
nop
lea eax, [ebp - 0x2b4]
push eax
push 0x536248
call fcn.004fb47c
add esp, 8
test eax, eax
je 0x406585
lea eax, [ebp - 0x2b4]
push eax
push 0x53624c
call fcn.004fb47c
add esp, 8
test eax, eax
je 0x406585
push 0x536230
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00408050
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406300
mov eax, dword [esi + 0x14]
sub ecx, edx
mov edx, dword [esi + 0x10]
sub eax, edx
sar ecx, 1
mov dword [ebp - 0x2f0], edx
cmp ecx, eax
ja 0x406374
cmp dword [esi + 0x14], 8
lea eax, [edx + ecx]
mov dword [ebp - 0x2f4], eax
mov edx, esi
mov dword [esi + 0x10], eax
mov dword [ebp - 0x2e8], esi
jb 0x406343
mov edx, dword [esi]
mov dword [ebp - 0x2e8], edx
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x2b4]
push eax
mov eax, dword [ebp - 0x2f0]
lea eax, [edx + eax*2]
push eax
call fcn.004f4a40
mov eax, dword [ebp - 0x2e8]
add esp, 0xc
mov ecx, dword [ebp - 0x2f4]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x406393
push ecx
lea eax, [ebp - 0x2b4]
mov byte [ebp - 0x2f8], 0
push eax
push dword [ebp - 0x2f8]
push ecx
mov ecx, esi
call fcn.00408630
mov esi, eax
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x406403
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4063f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40661c
push edx
push ecx
call fcn.004f2ead
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
test byte [ebp - 0x2e0], 0x10
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
je 0x40651b
mov eax, dword [ebx + 8]
test al, al
je 0x406503
push 0x536230
push dword [ebp - 0x2e4]
lea eax, [ebp - 0x8c]
push eax
call fcn.00408050
add esp, 0xc
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00407fe0
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00406630
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x4064ab
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4064a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40661c
push edx
push ecx
call fcn.004f2ead
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 8
jb 0x406500
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4064f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40661c
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov eax, dword [ebx + 8]
cmp byte [ebx + 0xc], 0
je 0x406541
push 1
push eax
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.004061f0
add esp, 8
jmp 0x406541
cmp byte [ebx + 8], al
jne 0x406541
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x2c]
push ecx
cmp dword [edi + 8], eax
je 0x406539
mov ecx, eax
call fcn.004031b0
add dword [edi + 4], 0x18
jmp 0x406541
push eax
mov ecx, edi
call fcn.00402950
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40657f
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406575
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40661c
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov esi, dword [ebp - 0x2e4]
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x2ec]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4062a0
push dword [ebp - 0x2ec]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [edi]
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x4065f8
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4065ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40661c
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov eax, esi
jmp 0x4065fe
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004f855c
int3