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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4512df
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x469744]
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 0x457648
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 0x40698e
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 0x4069da
cmp dword [ebp - 0x34], esi
jb 0x4069b8
mov eax, dword [ebp - 0x48]
push eax
call fcn.00439c00
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 0x406d55
mov edx, dword [ebp + 8]
push edx
jmp 0x406d4d
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.00406170
push 1
mov eax, 0x457650
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 0x406a17
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.0043a81e
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 0x406a60
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2a4]
lea esi, [ebp - 0x64]
call fcn.00406550
mov byte [ebp - 4], 3
mov ecx, 0x457654
lea eax, [ebp - 0x2a4]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406ab6
cmp dx, di
je 0x406ab2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406ab6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x406a90
xor eax, eax
jmp 0x406abb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x406c8f
mov ecx, 0x457658
lea eax, [ebp - 0x2a4]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406af6
cmp dx, di
je 0x406af2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406af6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x406ad0
xor eax, eax
jmp 0x406afb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x406c8f
test byte [ebp - 0x2d0], 0x10
je 0x406bc8
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.00406170
mov ecx, dword [ebp - 0x2e0]
call fcn.00406920
mov esi, eax
cmp esi, edi
je 0x406c8f
mov edx, dword [ebp - 0x2dc]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x50], 8
jb 0x406b67
mov eax, dword [ebp - 0x64]
push eax
call fcn.00439c00
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 0x406b85
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00439c00
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 0x406ba3
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00439c00
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 0x406bc1
mov eax, dword [ebp + 8]
push eax
call fcn.00439c00
add esp, 4
mov eax, esi
jmp 0x406d57
mov eax, dword [ebp - 0x54]
push str.autorun.inf
mov edi, 0xb
lea ecx, [ebp - 0x64]
call fcn.00404a60
test eax, eax
je 0x406c20
mov eax, dword [ebp - 0x54]
cmp eax, 5
jb 0x406c20
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.00404a60
test eax, eax
jne 0x406c20
mov bl, 1
jmp 0x406c22
xor bl, bl
mov dword [ebp - 4], 3
test byte [ebp - 0x2d4], 1
je 0x406c4b
and dword [ebp - 0x2d4], 0xfffffffe
cmp dword [ebp - 0x6c], 8
jb 0x406c4b
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00439c00
add esp, 4
test bl, bl
je 0x406c8a
mov edx, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x406c5f
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2e0]
call fcn.00406d80
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x406c75
lea eax, [ebp - 0x2c]
push eax
push str.Found_INF___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
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 0x406cd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2d8], eax
cmp eax, edi
je 0x406cd6
cmp eax, 0x12
je 0x406cd6
mov ecx, eax
push ecx
push str.FindNextFile_returned_an_unexpected_error._Ignoring_error
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 0xc
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x406cec
mov edx, dword [ebp - 0x64]
push edx
call fcn.00439c00
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 0x406d0d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00439c00
add esp, 4
cmp dword [ebp - 0x2d8], 0x12
jne 0x4069da
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x34], esi
jb 0x406d38
mov edx, dword [ebp - 0x48]
push edx
call fcn.00439c00
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 0x406d55
mov ecx, dword [ebp + 8]
push ecx
call fcn.00439c00
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.00438876
mov esp, ebp
pop ebp
ret 0x1c