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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45056f
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x468738]
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
xor edi, edi
mov dword [ebp - 0x2e0], ecx
mov dword [ebp - 0x2d4], edi
push 0x4566d0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x2d8], edi
call fcn.0040ea20
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x4069de
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x2d0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2dc], eax
cmp eax, 0xffffffff
jne 0x406a2a
cmp dword [ebp - 0x34], esi
jb 0x406a08
mov eax, dword [ebp - 0x48]
push eax
call fcn.00438b5b
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp + 0x1c], esi
jb 0x406da5
mov edx, dword [ebp + 8]
push edx
jmp 0x406d9d
mov ebx, 7
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
push edi
lea ecx, [ebp + 8]
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004061c0
push 1
mov eax, 0x4566d8
lea ecx, [ebp - 0x2c]
call fcn.00403690
lea eax, [ebp - 0x2a4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406a67
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2a4]
lea ecx, [ebp - 0x2c]
call fcn.00403690
lea edx, [ebp - 0x2a4]
push 0x104
push edx
call fcn.0043975e
add esp, 8
xor eax, eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406ab0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2a4]
lea esi, [ebp - 0x64]
call fcn.004065a0
mov byte [ebp - 4], 3
mov ecx, 0x4566dc
lea eax, [ebp - 0x2a4]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406b06
cmp dx, di
je 0x406b02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406b06
add eax, 4
add ecx, 4
cmp dx, di
jne 0x406ae0
xor eax, eax
jmp 0x406b0b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x406cdf
mov ecx, 0x4566e0
lea eax, [ebp - 0x2a4]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406b46
cmp dx, di
je 0x406b42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406b46
add eax, 4
add ecx, 4
cmp dx, di
jne 0x406b20
xor eax, eax
jmp 0x406b4b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x406cdf
test byte [ebp - 0x2d0], 0x10
je 0x406c18
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2e4], esp
push edi
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.004061c0
mov ecx, dword [ebp - 0x2e0]
call fcn.00406970
mov esi, eax
cmp esi, edi
je 0x406cdf
mov edx, dword [ebp - 0x2dc]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x50], 8
jb 0x406bb7
mov eax, dword [ebp - 0x64]
push eax
call fcn.00438b5b
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
jb 0x406bd5
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00438b5b
add esp, 4
xor eax, eax
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
jb 0x406bf3
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00438b5b
add esp, 4
xor edx, edx
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
jb 0x406c11
mov eax, dword [ebp + 8]
push eax
call fcn.00438b5b
add esp, 4
mov eax, esi
jmp 0x406da7
mov eax, dword [ebp - 0x54]
push str.autorun.inf
mov edi, 0xb
lea ecx, [ebp - 0x64]
call fcn.00404ab0
test eax, eax
je 0x406c70
mov eax, dword [ebp - 0x54]
cmp eax, 5
jb 0x406c70
push 4
lea ecx, [eax - 4]
lea esi, [ebp - 0x80]
lea edx, [ebp - 0x64]
call fcn.0040c580
mov ecx, eax
mov byte [ebp - 4], 4
mov eax, dword [ecx + 0x10]
or dword [ebp - 0x2d4], 1
push str..inf
mov edi, 4
call fcn.00404ab0
test eax, eax
jne 0x406c70
mov bl, 1
jmp 0x406c72
xor bl, bl
mov dword [ebp - 4], 3
test byte [ebp - 0x2d4], 1
je 0x406c9b
and dword [ebp - 0x2d4], 0xfffffffe
cmp dword [ebp - 0x6c], 8
jb 0x406c9b
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00438b5b
add esp, 4
test bl, bl
je 0x406cda
mov edx, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x406caf
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2e0]
call fcn.00406dd0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x406cc5
lea eax, [ebp - 0x2c]
push eax
push str.Found_INF___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
xor edi, edi
lea ebx, [edi + 7]
mov eax, dword [ebp - 0x2dc]
lea edx, [ebp - 0x2d0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406d26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2d8], eax
cmp eax, edi
je 0x406d26
cmp eax, 0x12
je 0x406d26
mov ecx, eax
push ecx
push str.FindNextFile_returned_an_unexpected_error._Ignoring_error
push 0x4699dc
mov eax, 1
call fcn.0042c820
add esp, 0xc
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x406d3c
mov edx, dword [ebp - 0x64]
push edx
call fcn.00438b5b
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x18], esi
jb 0x406d5d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00438b5b
add esp, 4
cmp dword [ebp - 0x2d8], 0x12
jne 0x406a2a
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], esi
jb 0x406d88
mov edx, dword [ebp - 0x48]
push edx
call fcn.00438b5b
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
cmp dword [ebp + 0x1c], esi
jb 0x406da5
mov ecx, dword [ebp + 8]
push ecx
call fcn.00438b5b
add esp, 4
xor eax, eax
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.004377d1
mov esp, ebp
pop ebp
ret 0x1c