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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45118f
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x468744]
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 0x456648
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x2d8], edi
call fcn.0040ebd0
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x4069be
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 0x406a0a
cmp dword [ebp - 0x34], esi
jb 0x4069e8
mov eax, dword [ebp - 0x48]
push eax
call fcn.00439b10
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 0x406d85
mov edx, dword [ebp + 8]
push edx
jmp 0x406d7d
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.004061f0
push 1
mov eax, 0x456650
lea ecx, [ebp - 0x2c]
call fcn.00403640
lea eax, [ebp - 0x2a4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406a47
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2a4]
lea ecx, [ebp - 0x2c]
call fcn.00403640
lea edx, [ebp - 0x2a4]
push 0x104
push edx
call fcn.0043a71e
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 0x406a90
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2a4]
lea esi, [ebp - 0x64]
call fcn.00406580
mov byte [ebp - 4], 3
mov ecx, 0x456654
lea eax, [ebp - 0x2a4]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406ae6
cmp dx, di
je 0x406ae2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406ae6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x406ac0
xor eax, eax
jmp 0x406aeb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x406cbf
mov ecx, 0x456658
lea eax, [ebp - 0x2a4]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406b26
cmp dx, di
je 0x406b22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406b26
add eax, 4
add ecx, 4
cmp dx, di
jne 0x406b00
xor eax, eax
jmp 0x406b2b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x406cbf
test byte [ebp - 0x2d0], 0x10
je 0x406bf8
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.004061f0
mov ecx, dword [ebp - 0x2e0]
call fcn.00406950
mov esi, eax
cmp esi, edi
je 0x406cbf
mov edx, dword [ebp - 0x2dc]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x50], 8
jb 0x406b97
mov eax, dword [ebp - 0x64]
push eax
call fcn.00439b10
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 0x406bb5
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00439b10
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 0x406bd3
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00439b10
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 0x406bf1
mov eax, dword [ebp + 8]
push eax
call fcn.00439b10
add esp, 4
mov eax, esi
jmp 0x406d87
mov eax, dword [ebp - 0x54]
push str.autorun.inf
mov edi, 0xb
lea ecx, [ebp - 0x64]
call fcn.00404ab0
test eax, eax
je 0x406c50
mov eax, dword [ebp - 0x54]
cmp eax, 5
jb 0x406c50
push 4
lea ecx, [eax - 4]
lea esi, [ebp - 0x80]
lea edx, [ebp - 0x64]
call fcn.0040c760
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 0x406c50
mov bl, 1
jmp 0x406c52
xor bl, bl
mov dword [ebp - 4], 3
test byte [ebp - 0x2d4], 1
je 0x406c7b
and dword [ebp - 0x2d4], 0xfffffffe
cmp dword [ebp - 0x6c], 8
jb 0x406c7b
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00439b10
add esp, 4
test bl, bl
je 0x406cba
mov edx, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x406c8f
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2e0]
call fcn.00406db0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x406ca5
lea eax, [ebp - 0x2c]
push eax
push str.Found_INF___s
push 0x4699d4
xor eax, eax
call fcn.0042d020
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 0x406d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2d8], eax
cmp eax, edi
je 0x406d06
cmp eax, 0x12
je 0x406d06
mov ecx, eax
push ecx
push str.FindNextFile_returned_an_unexpected_error._Ignoring_error
push 0x4699d4
mov eax, 1
call fcn.0042d020
add esp, 0xc
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x406d1c
mov edx, dword [ebp - 0x64]
push edx
call fcn.00439b10
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 0x406d3d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00439b10
add esp, 4
cmp dword [ebp - 0x2d8], 0x12
jne 0x406a0a
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], esi
jb 0x406d68
mov edx, dword [ebp - 0x48]
push edx
call fcn.00439b10
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 0x406d85
mov ecx, dword [ebp + 8]
push ecx
call fcn.00439b10
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.00438786
mov esp, ebp
pop ebp
ret 0x1c