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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff750
push esi
push edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
mov eax, 0x4da070
call fcn.0049df88
xor edx, edx
mov dword [ebp - 0x3c], edx
mov esi, 0x4d95d2
lea edi, [ebp - 0x4a0]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4d97da
lea edi, [ebp - 0x6a8]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4d99e2
lea edi, [ebp - 0x8b0]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x497ff6
push dword [ebp - 0x34]
call fcn.0049de00
pop ecx
cmp eax, 1
jae 0x498007
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x498327
push dword [ebp - 0x34]
call fcn.0049de00
pop ecx
mov ecx, dword [ebp - 0x34]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x49802e
push dword [ebp - 0x34]
call fcn.0049de00
pop ecx
mov edx, dword [ebp - 0x34]
mov word [edx + eax*2 - 2], 0
push dword [ebp - 0x34]
push 0x4d9e00
lea eax, [ebp - 0x8b0]
push eax
call fcn.004a1740
add esp, 0xc
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x49806e
lea eax, [ebp - 0x8b0]
push eax
call fcn.00497d98
pop ecx
test eax, eax
je 0x49806e
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x498327
lea ecx, [ebp - 0x298]
push ecx
lea eax, [ebp - 0x8b0]
push eax
call sub.KERNEL32.DLL_FindFirstFileW
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
cmp edx, 0xffffffff
jne 0x49809d
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x498327
push dword [ebp - 0x34]
push str.Looking_for_documents_in_directory__s
lea ecx, [ebp - 0x8b0]
push ecx
call fcn.004a1740
add esp, 0xc
mov word [ebp - 0x1c], 8
lea edx, [ebp - 0x8b0]
lea eax, [ebp - 4]
call fcn.004ad7c8
inc dword [ebp - 0x10]
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x30]
add eax, 0x34
call fcn.004ad8b0
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004ad880
mov dword [ebp - 0x48], 0x497d74
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 0x48]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 0x30]
call fcn.00480160
mov edx, dword [0x4ead88]
mov eax, dword [edx]
call fcn.00438228
push 0x4d9e56
lea edx, [ebp - 0x26c]
push edx
call fcn.0049de7c
add esp, 8
test eax, eax
je 0x4982fb
push 0x4d9e5a
lea ecx, [ebp - 0x26c]
push ecx
call fcn.0049de7c
add esp, 8
test eax, eax
je 0x4982fb
mov eax, dword [ebp - 0x30]
mov dl, byte [eax + 0xd]
test dl, dl
je 0x49816f
push dword [ebp - 0x40]
call sub.KERNEL32.DLL_FindClose
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x498327
test byte [ebp - 0x298], 0x10
je 0x4981cb
lea ecx, [ebp - 0x26c]
push ecx
push dword [ebp - 0x34]
push 0x4d9e60
lea eax, [ebp - 0x4a0]
push eax
call fcn.004a1740
add esp, 0x10
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x4981b2
lea ecx, [ebp - 0x4a0]
push ecx
call fcn.00497d98
pop ecx
test eax, eax
jne 0x4982fb
lea edx, [ebp - 0x4a0]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.00497f88
add dword [ebp - 0x3c], eax
jmp 0x4982fb
mov eax, dword [0x4ead88]
mov eax, dword [eax]
call fcn.00438228
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x15b0]
test ecx, ecx
je 0x4981ee
push 0x3e8
call sub.KERNEL32.DLL_Sleep
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x34]
push 0x4d9e6e
lea edx, [ebp - 0x6a8]
push edx
call fcn.004a1740
add esp, 0x10
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x498229
lea edx, [ebp - 0x6a8]
mov eax, dword [ebp - 0x30]
call fcn.00497e1c
test eax, eax
jne 0x4982fb
lea ecx, [ebp - 0x6a8]
push ecx
push str.Processing__s_...
lea eax, [ebp - 0x8b0]
push eax
call fcn.004a1740
add esp, 0xc
mov word [ebp - 0x1c], 0x14
lea edx, [ebp - 0x8b0]
lea eax, [ebp - 8]
call fcn.004ad7c8
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x30]
add eax, 0x34
call fcn.004ad8b0
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004ad880
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x4982c4
lea eax, [ebp - 0x6a8]
push eax
call fcn.0046cf0c
pop ecx
test eax, eax
je 0x4982fb
mov edx, dword [ebp - 0x30]
add edx, 0xdac
push edx
mov ecx, dword [ebp - 0x30]
add ecx, 0x11b0
push ecx
lea eax, [ebp - 0x6a8]
push eax
lea edx, [ebp - 0x6a8]
push edx
call fcn.0046cf9c
add esp, 0x10
test eax, eax
je 0x4982fb
inc dword [ebp - 0x3c]
jmp 0x4982fb
lea ecx, [ebp - 0x6a8]
push ecx
call fcn.0046ce7c
pop ecx
test eax, eax
je 0x4982fb
mov eax, dword [ebp - 0x30]
add eax, 0xdac
push eax
lea edx, [ebp - 0x6a8]
push edx
lea ecx, [ebp - 0x6a8]
push ecx
call fcn.0046d284
add esp, 0xc
test eax, eax
je 0x4982fb
inc dword [ebp - 0x3c]
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x40]
call sub.KERNEL32.DLL_FindNextFileW
test eax, eax
jne 0x498113
push dword [ebp - 0x40]
call sub.KERNEL32.DLL_FindClose
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret