Function at 0x406620
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1a74
call fcn.00419810
mov eax, dword [0x42729c]
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 0x1a74], ecx
mov ecx, dword [ebp - 0x1a74]
add ecx, 4
call fcn.00418750
test eax, eax
je 0x40665a
mov eax, 1
jmp 0x406b42
mov ecx, dword [ebp - 0x1a74]
call fcn.0040b9c0
mov dword [ebp - 0x1a6c], 1
mov ax, word [0x41daa8]
mov word [ebp - 0x1a68], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1a66]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x41daac]
mov word [ebp - 0x808], cx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x806]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x41dab0]
mov word [ebp - 0x1268], dx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1266]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0xa68], 0
mov dword [ebp - 0xa60], 0
mov dword [ebp - 0x1a70], 0
mov eax, dword [ebp - 0x1a74]
movzx ecx, word [eax + 0x10c]
test ecx, ecx
je 0x40670f
cmp dword [0x428be0], 2
je 0x40670f
cmp dword [ebp + 8], 1
je 0x406716
cmp dword [ebp + 8], 2
je 0x406716
xor eax, eax
jmp 0x406b42
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00409fb0
add esp, 8
test eax, eax
jne 0x406731
xor eax, eax
jmp 0x406b42
push 0x1000
push 0x42e6c0
push 0x22
call fcn.00409ba0
add esp, 0xc
mov ecx, dword [0x4306c8]
add ecx, 1
mov dword [0x4306c8], ecx
mov edx, dword [ebp - 0x1a74]
add edx, 8
push edx
mov eax, dword [0x4306c8]
push eax
push 0x42e6c0
push 0x4298a0
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x10
push 0x4298a0
call fcn.00407f40
add esp, 4
xor ecx, ecx
cmp dword [ebp + 8], 1
setne cl
add ecx, 0x62
push ecx
mov ecx, dword [ebp - 0x1a74]
call fcn.0040bec0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1a68]
push eax
mov ecx, dword [ebp - 0x1a74]
call fcn.004079d0
test eax, eax
je 0x406aba
lea ecx, [ebp - 0xa5c]
push ecx
call dword [sym.imp.MSVCR71.dll_time]
add esp, 4
push 0x2e
lea edx, [ebp - 0x1a68]
push edx
call dword [sym.imp.MSVCR71.dll_wcschr]
add esp, 8
test eax, eax
je 0x406837
lea eax, [ebp - 0x1a68]
push eax
call dword [sym.imp.MSVCR71.dll__wcsrev]
add esp, 4
push 0x2e
lea ecx, [ebp - 0x1a68]
push ecx
call dword [sym.imp.MSVCR71.dll_wcschr]
add esp, 8
add eax, 2
push eax
lea edx, [ebp - 0x1268]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0x1268]
push eax
call dword [sym.imp.MSVCR71.dll__wcsrev]
add esp, 4
push eax
lea ecx, [ebp - 0x1a68]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push 0x5f
lea edx, [ebp - 0x1a68]
push edx
call dword [sym.imp.MSVCR71.dll_wcschr]
add esp, 8
test eax, eax
je 0x4068a4
lea eax, [ebp - 0x1a68]
push eax
call dword [sym.imp.MSVCR71.dll__wcsrev]
add esp, 4
push 0x5f
lea ecx, [ebp - 0x1a68]
push ecx
call dword [sym.imp.MSVCR71.dll_wcschr]
add esp, 8
add eax, 2
push eax
lea edx, [ebp - 0x1268]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0x1268]
push eax
call dword [sym.imp.MSVCR71.dll__wcsrev]
add esp, 4
push eax
lea ecx, [ebp - 0x1a68]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push 0x250
push 0
lea edx, [ebp - 0xa58]
push edx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x1a74]
add eax, 0x10c
push eax
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
mov edx, dword [ebp - 0x1a74]
add edx, 0x10c
push edx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0x1a74]
movzx edx, word [ecx + eax*2 + 0x10a]
cmp edx, 0x5c
je 0x406914
push 0x41dab4
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
lea ecx, [ebp - 0x1a68]
push ecx
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
push 0x41dab8
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
lea ecx, [ebp - 0xa58]
push ecx
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1a70], eax
cmp dword [ebp - 0x1a70], 0xffffffff
je 0x406aba
lea eax, [ebp - 0xa64]
push eax
lea ecx, [ebp - 0xa2c]
push ecx
call fcn.004076b0
add esp, 8
test eax, eax
je 0x406a91
mov edx, dword [ebp - 0xa64]
push edx
mov eax, dword [ebp - 0xa5c]
push eax
call dword [sym.imp.MSVCR71.dll_difftime]
add esp, 8
call fcn.0041977c
mov dword [ebp - 0xa60], eax
mov ecx, dword [ebp - 0xa60]
cmp ecx, dword [ebp - 4]
jle 0x406a91
mov edx, dword [ebp - 0x1a74]
add edx, 0x10c
push edx
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
mov ecx, dword [ebp - 0x1a74]
add ecx, 0x10c
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
mov edx, dword [ebp - 0x1a74]
movzx eax, word [edx + eax*2 + 0x10a]
cmp eax, 0x5c
je 0x406a11
push 0x41dac0
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
lea edx, [ebp - 0xa2c]
push edx
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
lea ecx, [ebp - 0x808]
push ecx
call fcn.00409a70
add esp, 4
test eax, eax
je 0x406a82
push 0x1000
push 0x42e6c0
push 0x23
call fcn.00409ba0
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
push 0x42e6c0
push 0x4298a0
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0xc
push 0x4298a0
call fcn.00407f40
add esp, 4
mov dword [ebp - 0x1a6c], 0
jmp 0x406a91
mov eax, dword [ebp - 0xa68]
add eax, 1
mov dword [ebp - 0xa68], eax
lea ecx, [ebp - 0xa58]
push ecx
mov edx, dword [ebp - 0x1a70]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406967
mov eax, dword [ebp - 0x1a70]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x1000
push 0x42e6c0
push 0x24
call fcn.00409ba0
add esp, 0xc
mov ecx, dword [ebp - 0xa68]
push ecx
push 0x42e6c0
push 0x4298a0
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0xc
push 0x4298a0
call fcn.00407f40
add esp, 4
push 0x1000
push 0x42e6c0
push 0x74
call fcn.00409ba0
add esp, 0xc
mov edx, dword [ebp - 0xa68]
push edx
push 0x42e6c0
push 0x427924
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0xc
mov eax, dword [ebp - 0x1a6c]
mov dword [0x428924], eax
cmp dword [ebp - 0xa68], 0
jle 0x406b3c
call fcn.0040a120
mov eax, dword [ebp - 0x1a6c]
mov ecx, dword [ebp - 8]
call fcn.00419641
pop edi
mov esp, ebp
pop ebp
ret 8