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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43df98
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 0x41772e
cmp dword [edx + 0x14], 8
mov eax, edx
jb 0x416e8d
mov eax, dword [edx]
push 2
push 0x448be0
push ecx
push eax
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
call fcn.004082c0
mov byte [ebp - 4], 1
mov esi, dword [0x457508]
mov edi, dword [0x45750c]
cmp esi, edi
je 0x416f4d
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x416ec4
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 0x416ee0
add esi, 0x18
jmp 0x416eb2
cmp dword [esi + 0x14], 8
jb 0x416ee8
mov esi, dword [esi]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push esi
cmovae eax, dword [ebp - 0x34]
push eax
push str.____Scan__Skip_directory:__s__found__s_n
call fcn.00401d10
mov ecx, dword [ebp - 0x20]
add esp, 0xc
cmp ecx, 8
jb 0x416f3c
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416f32
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417759
push ecx
push edx
call fcn.004209ec
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
push 0x250
lea eax, [ebp - 0x2f0]
push 0
push eax
call fcn.00422520
add esp, 0xc
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 0x416fa9
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.____Scan__Can_t_open_directory__s__error_0x_X_n
jmp 0x416efa
push 0x18
call fcn.004209b7
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 0x417733
cmp dword [edx + 0x14], 8
mov eax, edx
jb 0x416fee
mov eax, dword [edx]
push 1
push 0x448c98
push ecx
push eax
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x6c]
call fcn.004082c0
push 0x4509b4
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.0041aa30
mov edi, eax
add esp, 4
cmp esi, edi
je 0x417089
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x417059
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x41704f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417738
mov eax, edx
push ecx
push eax
call fcn.004209ec
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 0x4170c3
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4170b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417738
push ecx
push edx
call fcn.004209ec
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 0x417115
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41710b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417738
push ecx
push edx
call fcn.004209ec
add esp, 8
mov ecx, esi
call fcn.004160a0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, dword [ebp - 0x14]
nop word [eax + eax]
mov ecx, 0x448c9c
lea eax, [ebp - 0x2c4]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417166
test dx, dx
je 0x417162
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417166
add eax, 4
add ecx, 4
test dx, dx
jne 0x417140
xor eax, eax
jmp 0x41716b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4176b5
mov ecx, 0x448ca4
lea eax, [ebp - 0x2c4]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4171a6
test dx, dx
je 0x4171a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4171a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x417180
xor eax, eax
jmp 0x4171ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x4176b5
mov edx, dword [ebp - 0x3c]
mov eax, 0x7ffffffe
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x41773d
cmp dword [edx + 0x14], 8
mov eax, edx
jb 0x4171d3
mov eax, dword [edx]
push 1
push 0x448c98
push ecx
push eax
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x6c]
call fcn.004082c0
lea eax, [ebp - 0x2c4]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x54]
call fcn.00406cf0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x34]
cmp eax, esi
je 0x417276
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x417244
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41723a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417742
push ecx
push edx
call fcn.004209ec
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 0x4172b0
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4172a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417742
push ecx
push edx
call fcn.004209ec
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 0x417302
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4172f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417742
push ecx
push edx
call fcn.004209ec
add esp, 8
test byte [ebp - 0x2f0], 0x10
je 0x417416
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 0x41736c
mov edi, esi
test edi, edi
je 0x4176ac
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 0x41736c
mov ecx, dword [ebp - 0x1c]
add edx, 2
sub edi, 1
jne 0x417350
jmp 0x4176ac
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 0x4173bd
mov edi, esi
test edi, edi
je 0x4176ac
sub eax, edx
mov dword [ebp - 0x1c], eax
movzx ecx, word [eax + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x4173bd
mov eax, dword [ebp - 0x1c]
add edx, 2
sub edi, 1
jne 0x4173a1
jmp 0x4176ac
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 0x417409
test esi, esi
je 0x4176ac
sub edi, edx
nop dword [eax]
movzx ecx, word [edx + edi]
movzx eax, word [edx]
cmp cx, ax
jne 0x417409
add edx, 2
sub esi, 1
jne 0x4173f0
jmp 0x4176ac
lea ecx, [ebp - 0x34]
call fcn.00416e40
jmp 0x4176ac
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 0x4176b2
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 0x417489
test esi, esi
je 0x4176ac
sub edi, edx
nop
movzx ecx, word [edi + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x417489
add edx, 2
sub esi, 1
jne 0x417470
jmp 0x4176ac
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 0x4174d4
nop dword [eax]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4174ba
mov ecx, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4176ac
mov eax, dword [ebp - 0x1c]
add esi, 0x18
cmp esi, edi
jne 0x4174b0
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 0x4176b2
mov eax, dword [ebp - 0x2f0]
test al, 1
je 0x417545
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 0x417545
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 0x448ca8
call fcn.00401d10
add esp, 0xc
jmp 0x4176b2
push 0x20
call fcn.004209b7
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 0x417589
cmp dword [ebp - 0x20], 8
mov ecx, esi
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.00406010
mov eax, dword [ebp - 0x2d0]
mov edi, dword [0x457498]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2d4]
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x4176a5
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__::_49::_lambda_1___void___.0
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x7c], eax
lea esi, [edi + 0x20]
mov byte [ebp - 4], 4
push esi
mov dword [ebp - 0x70], esi
call fcn.0042084c
add esp, 4
test eax, eax
jne 0x417747
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x41774e
mov byte [ebp - 4], 5
mov eax, dword [edi + 0x1c]
inc eax
cmp dword [edi + 0x14], eax
ja 0x417604
push ecx
lea ecx, [edi + 0xc]
call fcn.0041b180
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 0x41763d
push 0x28
call fcn.004209b7
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 0x41766c
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.00420871
mov eax, dword [ebp - 0x38]
add eax, 0x50
push eax
call fcn.0041f0f5
mov byte [ebp - 4], 1
add esp, 8
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x4176ac
mov edx, dword [ecx]
lea eax, [ebp - 0xa0]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x4176ac
mov ecx, esi
call fcn.004161f0
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 0x417130
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x416f3c
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416f32
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417759
jmp 0x416f32
call fcn.00401660
call fcn.00401660
call fcn.0042cebf
call fcn.00401660
call fcn.0042cebf
push 5
call fcn.00420593
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.00420593
call fcn.0042cebf
int3