Function at 0x40bfc0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1a78
call fcn.00419810
mov eax, dword [0x42729c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1268], 0
mov dword [ebp - 0x1a70], 0
mov dword [ebp - 4], 0xf4240
mov dword [ebp - 0x1a6c], 1
push 0x428bf0
lea eax, [ebp - 0x1a68]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea ecx, [ebp - 0x1260]
push ecx
lea edx, [ebp - 0x1a68]
push edx
call fcn.004076b0
add esp, 8
lea eax, [ebp - 4]
push eax
push 0x432028
call fcn.00409fb0
add esp, 8
test eax, eax
jne 0x40c041
jmp 0x40c3d6
push 0x428bf0
lea ecx, [ebp - 0x1258]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea edx, [ebp - 0x1258]
push edx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
sub eax, 1
mov dword [ebp - 0x1a74], eax
jmp 0x40c080
mov eax, dword [ebp - 0x1a74]
sub eax, 1
mov dword [ebp - 0x1a74], eax
cmp dword [ebp - 0x1a74], 0
jbe 0x40c0a0
mov ecx, dword [ebp - 0x1a74]
movzx edx, word [ebp + ecx*2 - 0x1258]
cmp edx, 0x5c
jne 0x40c09e
jmp 0x40c0a0
jmp 0x40c071
mov eax, dword [ebp - 0x1a74]
mov word [ebp + eax*2 - 0x1256], 0
push 0x1000
push 0x42e6c0
push 0x68
call fcn.00409ba0
add esp, 0xc
mov ecx, dword [0x4306c8]
add ecx, 1
mov dword [0x4306c8], ecx
mov edx, dword [0x4306c8]
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 word [0x427820], 0
mov word [0x427924], 0
mov dword [0x428924], 1
push 0x428928
call dword [sym.imp.MSVCR71.dll_time]
add esp, 4
mov dword [0x42892c], 0x69
push 0x428bf0
lea eax, [ebp - 0xa58]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea ecx, [ebp - 0xa58]
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
mov dword [ebp - 0x125c], eax
mov edx, dword [ebp - 0x125c]
sub edx, 6
mov dword [ebp - 0x1a74], edx
jmp 0x40c179
mov eax, dword [ebp - 0x1a74]
sub eax, 1
mov dword [ebp - 0x1a74], eax
cmp dword [ebp - 0x1a74], 0
jbe 0x40c199
mov ecx, dword [ebp - 0x1a74]
movzx edx, word [ebp + ecx*2 - 0xa58]
cmp edx, 0x5f
jne 0x40c197
jmp 0x40c199
jmp 0x40c16a
cmp dword [ebp - 0x1a74], 0
ja 0x40c1a7
jmp 0x40c3d6
mov eax, dword [ebp - 0x1a74]
mov word [ebp + eax*2 - 0xa56], 0x2a
mov ecx, dword [ebp - 0x1a74]
mov word [ebp + ecx*2 - 0xa54], 0x2e
mov edx, dword [ebp - 0x1a74]
mov word [ebp + edx*2 - 0xa52], 0x74
mov eax, dword [ebp - 0x1a74]
mov word [ebp + eax*2 - 0xa50], 0x78
mov ecx, dword [ebp - 0x1a74]
mov word [ebp + ecx*2 - 0xa4e], 0x74
mov edx, dword [ebp - 0x1a74]
mov word [ebp + edx*2 - 0xa4c], 0
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0xa58]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1a70], eax
cmp dword [ebp - 0x1a70], 0xffffffff
je 0x40c354
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x1a68]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea ecx, [ebp - 0x1264]
push ecx
lea edx, [ebp - 0x1a68]
push edx
call fcn.004076b0
add esp, 8
test eax, eax
je 0x40c32b
mov eax, dword [ebp - 0x1264]
push eax
mov ecx, dword [ebp - 0x1260]
push ecx
call dword [sym.imp.MSVCR71.dll_difftime]
add esp, 8
call fcn.0041977c
mov dword [ebp - 0x1a78], eax
mov edx, dword [ebp - 0x1a78]
cmp edx, dword [ebp - 4]
jle 0x40c32b
lea eax, [ebp - 0x1258]
push eax
lea ecx, [ebp - 0x1a68]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x1a68]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
lea ecx, [ebp - 0x1a68]
push ecx
call fcn.00409a70
add esp, 4
test eax, eax
je 0x40c31c
push 0x1000
push 0x42e6c0
push 0x23
call fcn.00409ba0
add esp, 0xc
lea edx, [ebp - 0x22c]
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 0x40c32b
mov eax, dword [ebp - 0x1268]
add eax, 1
mov dword [ebp - 0x1268], eax
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x1a70]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c22e
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 - 0x1268]
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 - 0x1268]
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 - 0x1268], 0
jle 0x40c3d6
call fcn.0040a120
mov ecx, dword [ebp - 8]
call fcn.00419641
mov esp, ebp
pop ebp
ret