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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov edx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [ebp - 0x460]
mov dword [ebp - 4], ecx
push edi
sub esi, edx
lea ebx, [ebx]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], ax
test ax, ax
jne 0x4bd300
mov edx, dword [ebp + 0x10]
mov eax, dword [0x50f8e4]
test edx, edx
je 0x4bd38a
mov esi, edx
lea edi, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x4bd321
sub esi, edi
sar esi, 1
je 0x4bd38a
cmp word [edx], 0x5c
je 0x4bd34f
lea edi, [ebp - 0x460]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x4bd341
mov dword [edi], eax
mov esi, edx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4bd351
lea edi, [ebp - 0x460]
sub edx, esi
add edi, 0xfffffffe
jmp 0x4bd370
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4bd370
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edx, edx
lea esp, [esp]
movzx ecx, word [ebp + edx - 0x460]
lea edx, [edx + 2]
mov word [ebp + edx - 0x66e], cx
test cx, cx
jne 0x4bd390
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4bd41a
mov esi, edx
lea edi, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x4bd3b4
sub esi, edi
sar esi, 1
je 0x4bd41a
cmp word [edx], 0x5c
je 0x4bd3e2
lea edi, [ebp - 0x460]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x4bd3d4
mov dword [edi], eax
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4bd3e4
lea edi, [ebp - 0x460]
sub edx, esi
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4bd400
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x460]
push eax
call ebx
mov esi, eax
xor edi, edi
cmp esi, 0xffffffff
je 0x4bd4a3
mov ebx, dword [ebp - 4]
lea esp, [esp]
test byte [ebp - 0x254], 0x10
jne 0x4bd46d
lea eax, [ebp - 0x254]
mov ecx, ebx
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x66c]
push eax
push dword [ebp + 8]
call fcn.004bd190
mov edi, 1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4bd440
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp + 8]
test edi, edi
je 0x4bd4a6
push 0x524e40
push esi
call fcn.004d53c6
add esp, 8
jmp 0x4bd4a6
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x460]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4bd5aa
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x4bd4d0
test byte [ebp - 0x254], 0x10
je 0x4bd591
mov ecx, 0x51f01c
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4bd50e
test dx, dx
je 0x4bd50a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4bd50e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4bd4e8
xor eax, eax
jmp 0x4bd513
sbb eax, eax
or eax, 1
test eax, eax
je 0x4bd591
mov ecx, 0x5332bc
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4bd548
test dx, dx
je 0x4bd544
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4bd548
add eax, 4
add ecx, 4
test dx, dx
jne 0x4bd522
xor eax, eax
jmp 0x4bd54d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4bd591
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x66c]
push eax
push str._s_s_n
push esi
call fcn.004d53c6
add esp, 0x10
cmp dword [ebp + 0x18], 0
je 0x4bd591
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x228]
push 1
push str..
push eax
lea eax, [ebp - 0x66c]
push eax
push esi
call fcn.004bd2e0
lea eax, [ebp - 0x254]
push eax
push edi
call ebx
test eax, eax
jne 0x4bd4d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14