Function at 0x5d5ea1
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x5d600c
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x5d600c
call fcn.00749863
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [esi]
test eax, eax
jne 0x5d605b
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x5d5ee2
sub edi, ecx
je 0x5d604e
cmp edi, 0x7ffffffc
ja 0x5d604e
push 0x354
call fcn.0074f6c5
mov dword [esi], eax
pop ecx
test eax, eax
jne 0x5d5f1e
call fcn.00749863
mov dword [eax], 0xc
jmp 0x5d6017
push 0x354
xor ecx, ecx
push ecx
push eax
call fcn.00739c90
add esp, 0xc
lea eax, [edi + 1]
xor ecx, ecx
mov dword [ebp - 8], eax
mov edx, 0xfde9
mov dword [ebp - 0xc], edx
push ecx
push ecx
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jg 0x5d5fd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x5d5f77
xor eax, eax
push eax
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jg 0x5d5fd9
mov eax, dword [ebp - 8]
mov edi, eax
lea eax, [eax*2 + 4]
call fcn.00721a30
xor ecx, ecx
mov ebx, esp
mov edx, ecx
cmp edi, ecx
jbe 0x5d5fac
mov ecx, dword [ebp + 0xc]
mov esi, edi
movsx ax, byte [edx + ecx]
mov word [ebx + edx*2], ax
inc edx
cmp edx, esi
jb 0x5d5f9b
mov esi, dword [ebp + 8]
movzx eax, word [ebx + edi*2 - 4]
push 0x2a
pop ecx
cmp ax, cx
je 0x5d602f
cmp eax, 0x2f
je 0x5d602b
cmp eax, 0x5c
je 0x5d602b
mov eax, dword [0x8495e8]
mov dword [ebx + edi*2 - 2], eax
mov ax, word [0x8495ec]
mov word [ebx + edi*2 + 2], ax
jmp 0x5d602f
lea eax, [edi*2 + 4]
call fcn.00721a30
mov ecx, dword [ebp + 0xc]
mov ebx, esp
push edi
push ebx
push dword [ebp - 8]
push ecx
xor ecx, ecx
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x5d5fac
push dword [esi]
call fcn.00741f99
xor eax, eax
pop ecx
mov dword [esi], eax
call fcn.00749863
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.007207bc
leave
ret
mov dword [ebx + edi*2 - 2], ecx
push dword [esi]
push ebx
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 0x5d606c
push eax
jmp 0x5d6002
call fcn.00749863
mov dword [eax], 2
jmp 0x5d6017
push eax
push dword [eax + 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x5d6017
mov eax, dword [esi]
xor ecx, ecx
mov edi, ecx
lea ebx, [eax + 0x2c]
cmp word [ebx], cx
je 0x5d6089
cmp edi, 0xff
jae 0x5d6089
inc edi
cmp word [ebx + edi*2], cx
jne 0x5d607a
push ecx
push ecx
push 0x100
add eax, 0x254
inc edi
push eax
push edi
push ebx
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x5d60c0
mov edx, eax
test edi, edi
je 0x5d60c0
mov ecx, dword [esi]
mov al, byte [ebx + edx*2]
mov byte [ecx + edx + 0x254], al
inc edx
cmp edx, edi
jb 0x5d60af
mov eax, dword [esi]
xor ecx, ecx
mov byte [eax + 0x353], cl
mov eax, dword [esi]
add eax, 0x254
jmp 0x5d6019