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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
mov dword [ebp - 0x374], ecx
mov dword [ebp - 0x358], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00409000
lea eax, [ebp - 0x20c]
push eax
call sub.ntdll.dll_strlen
add esp, 4
lea ecx, [ebp + eax - 0x20c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx - 1]
cmp eax, 0x5c
je 0x48658f
mov ecx, dword [ebp - 4]
mov byte [ecx], 0x5c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov byte [eax], 0
push 0x537640
push 0x104
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409000
lea edx, [ebp - 0x354]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
je 0x486932
mov dword [ebp - 0x35c], 0
lea ecx, [ebp - 0x328]
push ecx
push 0x104
mov edx, dword [ebp - 4]
push edx
call fcn.00409000
mov eax, dword [ebp - 0x354]
and eax, 0x10
test eax, eax
je 0x4866d3
push 0x537644
lea ecx, [ebp - 0x328]
push ecx
call fcn.00402980
add esp, 8
test eax, eax
je 0x4866ce
push 0x537648
lea edx, [ebp - 0x328]
push edx
call fcn.00402980
add esp, 8
test eax, eax
je 0x4866ce
cmp dword [ebp + 0x14], 0
je 0x4866ce
mov eax, dword [ebp - 0x210]
cmp dword [eax + 0x434], 0
jne 0x4866ce
mov ecx, dword [ebp - 0x374]
add ecx, 0xc
push ecx
call sub.ntdll.dll_strlen
add esp, 4
sub eax, 1
push eax
mov edx, dword [ebp - 0x374]
add edx, 0xc
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.00415220
add esp, 0xc
test eax, eax
je 0x486697
push 0x53764c
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x48669c
jmp 0x4868fa
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x374]
call fcn.0048651e
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0xffffffff
jne 0x4866ce
jmp 0x486925
jmp 0x4868fa
cmp dword [ebp - 0x338], 0
jne 0x4868fa
cmp dword [ebp - 0x334], 0x3200000
ja 0x4868fa
mov eax, dword [ebp - 0x210]
cmp dword [eax + 0x434], 0
jne 0x4868fa
mov eax, dword [ebp - 0x35c]
xor edx, edx
mov ecx, 5
div ecx
mov eax, dword [ebp - 0x35c]
add eax, 1
mov dword [ebp - 0x35c], eax
test edx, edx
jne 0x486740
lea ecx, [ebp - 0x20c]
push ecx
push 0x537654
mov edx, dword [ebp - 0x210]
push edx
call fcn.0040ba78
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.0042e1a0
add esp, 4
push 0x5c
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0040a130
add esp, 8
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0
jne 0x486774
jmp 0x4868fa
mov edx, dword [ebp - 0x360]
add edx, 1
mov dword [ebp - 0x360], edx
mov dword [ebp - 0x364], 0
jmp 0x48679e
mov eax, dword [ebp - 0x364]
add eax, 1
mov dword [ebp - 0x364], eax
cmp dword [ebp - 0x364], 0xa
jae 0x4868e0
mov ecx, dword [ebp - 0x364]
mov edx, dword [ecx*4 + 0x4b5270]
add edx, 2
push edx
mov eax, dword [ebp - 0x360]
push eax
call fcn.00402980
add esp, 8
test eax, eax
jne 0x4868db
push str.common_filesmicrosoft_shared_
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x4868db
lea edx, [ebp - 0x20c]
push edx
call fcn.0042b4af
add esp, 4
test eax, eax
je 0x4868db
mov dword [ebp - 0x368], 0
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0042e1f1
add esp, 8
mov dword [ebp - 0x36c], eax
cmp dword [ebp - 0x368], 0
je 0x48686f
cmp dword [ebp + 8], 0
je 0x48686a
mov edx, dword [ebp + 0xc]
push edx
push 0x66
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x374]
push ecx
call dword [ebp + 8]
mov dword [0x53e6b4], 1
mov edx, dword [ebp - 0x374]
mov dword [edx + 0x110], 1
jmp 0x48678f
cmp dword [ebp - 0x36c], 0
jne 0x48687d
jmp 0x48678f
lea eax, [ebp - 0x20c]
push eax
call fcn.0042dc9d
add esp, 4
mov dword [ebp - 0x370], eax
cmp dword [ebp - 0x370], 1
je 0x4868db
cmp dword [ebp - 0x370], 2
je 0x4868db
cmp dword [ebp + 8], 0
je 0x4868db
mov ecx, dword [ebp + 0xc]
push ecx
push 0x66
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp - 0x374]
push eax
call dword [ebp + 8]
mov dword [0x53e6b4], 1
mov ecx, dword [ebp - 0x374]
mov dword [ecx + 0x110], 1
jmp 0x48678f
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x374]
call fcn.00485794
mov edx, dword [ebp - 0x210]
cmp dword [edx + 0x434], 0
jne 0x486925
lea eax, [ebp - 0x354]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4865d3
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x358]
mov esp, ebp
pop ebp
ret 0x10