Function at 0x417060
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e4
mov edx, ecx
mov dword [ebp - 4], 0
push ebx
mov eax, 0x7ffffffe
mov dword [ebp - 0x3c], edx
push esi
mov ecx, dword [edx + 0x10]
sub eax, ecx
push edi
mov dword [ebp - 0x10], esp
cmp eax, 2
jb 0x41794d
cmp dword [edx + 0x14], 8
mov eax, edx
jb 0x4170ad
mov eax, dword [edx]
push 2
push 0x448c0c
push ecx
push eax
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
call fcn.004085b0
mov byte [ebp - 4], 1
mov esi, dword [0x457504]
mov edi, dword [0x457508]
cmp esi, edi
je 0x41716d
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4170e4
mov ecx, dword [esi]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push ecx
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x417100
add esi, 0x18
jmp 0x4170d2
cmp dword [esi + 0x14], 8
jb 0x417108
mov esi, dword [esi]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push esi
cmovae eax, dword [ebp - 0x34]
push eax
push str.____Skip_directory:__s__found__s_n
call fcn.00401d10
mov ecx, dword [ebp - 0x20]
add esp, 0xc
cmp ecx, 8
jb 0x41715c
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417152
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417978
push ecx
push edx
call fcn.00420d85
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push str.____ScanDirectory:__s_n
call fcn.00401d10
push 0x250
lea eax, [ebp - 0x2f0]
push 0
push eax
call fcn.004228c0
add esp, 0x14
lea ecx, [ebp - 0x2f0]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push 2
push 0
push 0
push ecx
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileExW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x4171df
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
push eax
cmovae ecx, dword [ebp - 0x34]
push ecx
push str.____FindFirstFileEx__s__error_0x_X_n
jmp 0x41711a
push 0x18
call fcn.00420d50
mov edx, dword [ebp - 0x3c]
mov esi, eax
xor eax, eax
xorps xmm0, xmm0
add esp, 4
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, 0x7ffffffe
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x417952
cmp dword [edx + 0x14], 8
mov eax, edx
jb 0x417224
mov eax, dword [edx]
push 1
push 0x448cd8
push ecx
push eax
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x6c]
call fcn.004085b0
push 0x4509b4
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.0041af20
mov edi, eax
add esp, 4
cmp esi, edi
je 0x4172bf
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x41728f
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x417285
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417957
mov eax, edx
push ecx
push eax
call fcn.00420d85
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x4172f9
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4172ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417957
push ecx
push edx
call fcn.00420d85
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
cmp ecx, 8
jb 0x41734b
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417341
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417957
push ecx
push edx
call fcn.00420d85
add esp, 8
mov ecx, esi
call fcn.004163b0
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
mov esi, dword [ebp - 0x14]
nop dword [eax + eax]
mov ecx, 0x448cdc
lea eax, [ebp - 0x2c4]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417396
test dx, dx
je 0x417392
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417396
add eax, 4
add ecx, 4
test dx, dx
jne 0x417370
xor eax, eax
jmp 0x41739b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4178d4
mov ecx, 0x448ce4
lea eax, [ebp - 0x2c4]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4173d6
test dx, dx
je 0x4173d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4173d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4173b0
xor eax, eax
jmp 0x4173db
sbb eax, eax
or eax, 1
test eax, eax
je 0x4178d4
mov edx, dword [ebp - 0x3c]
mov eax, 0x7ffffffe
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x41795c
cmp dword [edx + 0x14], 8
mov eax, edx
jb 0x417403
mov eax, dword [edx]
push 1
push 0x448cd8
push ecx
push eax
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x6c]
call fcn.004085b0
lea eax, [ebp - 0x2c4]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x54]
call fcn.00406fe0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x34]
cmp eax, esi
je 0x4174a6
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x417474
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41746a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417961
push ecx
push edx
call fcn.00420d85
add esp, 8
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x4174e0
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4174d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417961
push ecx
push edx
call fcn.00420d85
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
cmp ecx, 8
jb 0x417532
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417528
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417961
push ecx
push edx
call fcn.00420d85
add esp, 8
test byte [ebp - 0x2f0], 0x10
je 0x417646
cmp dword [0x450a1c], 8
lea ecx, [ebp - 0x34]
mov esi, dword [ebp - 0x24]
mov edx, 0x450a08
cmovae edx, dword [0x450a08]
cmp dword [ebp - 0x20], 8
cmovae ecx, dword [ebp - 0x34]
setae byte [ebp - 0x15]
cmp esi, dword [0x450a18]
jne 0x41759c
mov edi, esi
test edi, edi
je 0x4178cb
sub ecx, edx
mov dword [ebp - 0x1c], ecx
nop dword [eax + eax]
movzx ecx, word [edx + ecx]
movzx eax, word [edx]
cmp cx, ax
jne 0x41759c
mov ecx, dword [ebp - 0x1c]
add edx, 2
sub edi, 1
jne 0x417580
jmp 0x4178cb
cmp dword [0x450a70], 8
lea eax, [ebp - 0x34]
mov edx, 0x450a5c
cmovae edx, dword [0x450a5c]
cmp byte [ebp - 0x15], 0
cmovne eax, dword [ebp - 0x34]
cmp esi, dword [0x450a6c]
jne 0x4175ed
mov edi, esi
test edi, edi
je 0x4178cb
sub eax, edx
mov dword [ebp - 0x1c], eax
movzx ecx, word [eax + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x4175ed
mov eax, dword [ebp - 0x1c]
add edx, 2
sub edi, 1
jne 0x4175d1
jmp 0x4178cb
cmp dword [0x450a58], 8
lea edi, [ebp - 0x34]
mov edx, 0x450a44
cmovae edx, dword [0x450a44]
cmp byte [ebp - 0x15], 0
cmovne edi, dword [ebp - 0x34]
cmp esi, dword [0x450a54]
jne 0x417639
test esi, esi
je 0x4178cb
sub edi, edx
nop dword [eax]
movzx ecx, word [edi + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x417639
add edx, 2
sub esi, 1
jne 0x417620
jmp 0x4178cb
lea ecx, [ebp - 0x34]
call fcn.00417060
jmp 0x4178cb
cmp dword [0x4509c8], 8
mov eax, 0x4509b4
cmovae eax, dword [0x4509b4]
push eax
lea eax, [ebp - 0x2c4]
push eax
call edi
test eax, eax
je 0x4178d1
cmp dword [0x450a40], 8
lea edi, [ebp - 0x34]
mov esi, dword [ebp - 0x24]
mov edx, 0x450a2c
cmovae edx, dword [0x450a2c]
cmp dword [ebp - 0x20], 8
cmovae edi, dword [ebp - 0x34]
cmp esi, dword [0x450a3c]
jne 0x4176b9
test esi, esi
je 0x4178cb
sub edi, edx
nop
movzx ecx, word [edi + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x4176b9
add edx, 2
sub esi, 1
jne 0x4176a0
jmp 0x4178cb
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, dword [0x450a98]
mov edi, dword [0x450a9c]
mov dword [ebp - 0x1c], eax
cmp esi, edi
je 0x417704
nop dword [eax]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4176ea
mov ecx, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x4178cb
mov eax, dword [ebp - 0x1c]
add esi, 0x18
cmp esi, edi
jne 0x4176e0
cmp dword [0x450ad0], 8
mov eax, 0x450abc
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
cmovae eax, dword [0x450abc]
push eax
push dword [ebp - 0x1c]
call edi
test eax, eax
je 0x4178d1
mov eax, dword [ebp - 0x2f0]
test al, 1
je 0x417775
and eax, 0xfffffffe
push eax
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
jne 0x417775
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
push eax
cmovae ecx, dword [ebp - 0x34]
push ecx
push 0x448ce8
call fcn.00401d10
add esp, 0xc
jmp 0x4178d1
push 0x20
call fcn.00420d50
mov esi, eax
xorps xmm0, xmm0
xor eax, eax
add esp, 4
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x34]
movq qword [esi + 0x18], xmm0
cmp esi, eax
je 0x4177b9
cmp dword [ebp - 0x20], 8
mov ecx, esi
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.00406300
mov eax, dword [ebp - 0x2d0]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2d4]
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], vtable.std::_Func_impl_no_alloc_class__void___cdecl_ScanDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__::_28::_lambda_1___void___.0
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 4
mov edi, dword [0x457498]
mov dword [ebp - 0x38], edi
lea esi, [edi + 0x20]
push esi
mov dword [ebp - 0x70], esi
call fcn.00420b13
add esp, 4
test eax, eax
jne 0x417966
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x41796d
mov byte [ebp - 4], 5
mov eax, dword [edi + 0x1c]
inc eax
cmp dword [edi + 0x14], eax
ja 0x41782c
push ecx
lea ecx, [edi + 0xc]
call fcn.0041b630
mov edx, dword [edi + 0x14]
dec edx
mov eax, edx
and eax, dword [edi + 0x18]
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 0x1c]
add ecx, eax
mov eax, dword [edi + 0x10]
and ecx, edx
shl ecx, 2
mov dword [ebp - 0x1c], ecx
cmp dword [ecx + eax], 0
jne 0x417865
push 0x28
call fcn.00420d50
mov ecx, dword [edi + 0x10]
mov edx, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [eax + ecx], edx
mov ecx, eax
mov eax, dword [edi + 0x10]
mov ecx, dword [ecx + eax]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x74], ecx
mov dword [ecx + 0x24], 0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x7c]
test edx, edx
je 0x417894
mov eax, dword [edx]
push ecx
mov ecx, edx
mov eax, dword [eax]
call eax
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x24], ecx
inc dword [edi + 0x1c]
push esi
call fcn.00420b38
mov eax, dword [ebp - 0x38]
add eax, 0x50
push eax
call fcn.0041f4a3
mov byte [ebp - 4], 1
add esp, 8
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x4178cb
mov edx, dword [ecx]
lea eax, [ebp - 0xa0]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x2f0]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x417360
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x41715c
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417152
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417978
jmp 0x417152
call fcn.00401660
call fcn.00401660
call fcn.0042d25f
call fcn.00401660
call fcn.0042d25f
push 5
call fcn.0042085a
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.0042085a
call fcn.0042d25f
int3