Function at 0x52ff50
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.005fffa0
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x530074
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x530074
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
jne 0x530157
mov eax, ebx
lea edx, [eax + 1]
jmp 0x52ffa0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52ffa0
sub eax, edx
mov esi, eax
je 0x530146
cmp esi, 0x7ffffffc
ja 0x530146
push 0x354
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x52ffe2
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0xc
jmp 0x530080
push 0x354
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0
inc esi
push esi
push ebx
push 0
push 0xfde9
mov dword [ebp - 8], 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jg 0x53003d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x530039
push 0
push 0
push esi
push ebx
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x530096
lea eax, [edi + edi + 4]
call fcn.00600250
mov eax, esp
push edi
push eax
push esi
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x5300c0
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esi], 0
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0x16
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret
lea eax, [esi + esi + 4]
mov edi, esi
call fcn.00600250
xor eax, eax
mov edx, esp
test esi, esi
jbe 0x5300c3
lea esp, [esp]
movsx cx, byte [eax + ebx]
mov word [edx + eax*2], cx
inc eax
cmp eax, esi
jb 0x5300b0
jmp 0x5300c3
mov edx, dword [ebp - 0xc]
dec edi
movzx eax, word [edx + edi*2 - 2]
lea esi, [edx + edi*2]
cmp ax, 0x2a
je 0x53010f
cmp ax, 0x2f
je 0x5300f6
cmp ax, 0x5c
je 0x5300f6
mov eax, 0x660ba8
sub esi, eax
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x5300e5
jmp 0x53010f
mov eax, 0x660ba4
sub esi, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x530100
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [esi]
mov dword [ecx + 0x250], eax
mov eax, dword [esi]
cmp dword [eax + 0x250], 0xffffffff
jne 0x53016e
push eax
call dword [sym.imp.MSVCR90.dll_free]
mov edx, esi
add esp, 4
mov dword [edx], 0
jmp 0x530074
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 2
jmp 0x530080
push eax
mov eax, dword [eax + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x530170
jmp 0x530080
mov edi, esi
mov eax, dword [edi]
lea edi, [eax + 0x2c]
xor esi, esi
cmp word [edi], si
je 0x530190
lea esp, [esp]
cmp esi, 0xff
jae 0x530190
inc esi
cmp word [edi + esi*2], 0
jne 0x530180
push 0
push 0
push 0x100
add eax, 0x254
push eax
inc esi
push esi
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x5301cb
test esi, esi
jbe 0x5301cb
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov cl, byte [edi + eax*2]
mov byte [edx + eax + 0x254], cl
inc eax
cmp eax, esi
jb 0x5301b7
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov byte [edx + 0x353], 0
mov eax, dword [eax]
add eax, 0x254
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret