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

Disassembly:
sub esp, 0x25c
push esi
mov esi, dword [esp + 0x264]
test esi, esi
mov dword [esp + 4], 0
je 0x4025cc
cmp byte [esi], 0
je 0x4025cc
push ebp
mov ebp, dword [esp + 0x280]
test ebp, ebp
je 0x4022e8
push esi
push str.Searching__s..._n
push ebp
call fcn.0045917e
push ebp
call fcn.00459d78
add esp, 0x10
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022f0
push ebx
sub eax, edx
push edi
mov edi, dword [esp + 0x274]
mov ebx, eax
mov eax, edi
mov dword [esp + 0x20], ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402310
sub eax, edx
lea eax, [eax + ebx + 1]
cmp eax, 0x104
jb 0x40234b
test ebp, ebp
je 0x40233e
push edi
push esi
push str.Search_directory_exceeded_MAX_PATH__Ignoring__s_s._n
push ebp
call fcn.0045917e
push ebp
call fcn.00459d78
add esp, 0x14
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
add esp, 0x25c
ret
mov ecx, dword [esp + 0x284]
mov edx, dword [esp + 0x280]
mov eax, dword [esp + 0x27c]
push ebp
push ecx
push edx
push eax
push esi
mov eax, edi
call fcn.00401fe0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28c]
add esp, 0x14
test eax, eax
je 0x4025b6
lea edx, [esp + 0x24]
sub edx, esi
mov eax, esi
mov dword [esp + 0x1c], edx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402390
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023a1
sub eax, edx
cmp byte [esp + eax + 0x23], 0x5c
je 0x4023c8
lea edi, [esp + 0x24]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4023b6
mov cx, word [0x469b10]
mov word [edi], cx
lea edi, [esp + 0x24]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4023d0
mov dx, word [0x469b90]
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov word [edi], dx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x4025b6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x10], 0
test byte [esp + 0x12c], 0x10
je 0x402594
mov al, byte [esp + 0x158]
test al, al
je 0x402594
mov edi, 0x469b8c
lea esi, [esp + 0x158]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x402594
mov edi, 0x469b88
lea esi, [esp + 0x158]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402594
lea ecx, [esp + 0x158]
push str.mailroot
push ecx
call fcn.0045ba9a
add esp, 8
test eax, eax
je 0x402594
lea eax, [esp + 0x158]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402490
sub eax, edx
mov edx, dword [esp + 0x20]
lea eax, [eax + edx + 1]
cmp eax, 0x104
jge 0x40256c
mov eax, dword [esp + 0x270]
mov cl, byte [eax]
mov edx, dword [esp + 0x1c]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4024b3
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024c8
sub eax, edx
cmp byte [esp + eax + 0x23], 0x5c
je 0x4024f1
lea edi, [esp + 0x24]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4024e0
mov ax, word [0x469b10]
mov word [edi], ax
lea eax, [esp + 0x158]
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402500
lea edi, [esp + 0x24]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402510
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 5
rep movsb byte es:[edi], byte [esi]
call ebx
mov ecx, dword [esp + 0x284]
mov edx, dword [esp + 0x280]
mov eax, dword [esp + 0x27c]
push ebp
push ecx
mov ecx, dword [esp + 0x280]
push edx
mov edx, dword [esp + 0x280]
push eax
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004022a0
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
add ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x402594
test ebp, ebp
je 0x402594
mov edx, dword [esp + 0x270]
lea ecx, [esp + 0x158]
push ecx
push edx
push str.Filename_exceeded_MAX_PATH__Ignoring__s_s._n
push ebp
call fcn.0045917e
push ebp
call fcn.00459d78
add esp, 0x14
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x12c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402410
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
pop edi
pop ebx
pop ebp
lea eax, [ecx + edx]
pop esi
add esp, 0x25c
ret
xor eax, eax
pop esi
add esp, 0x25c
ret