Function at 0x5c22db
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x5c2446
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x5c2446
call fcn.00727de3
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [esi]
test eax, eax
jne 0x5c2495
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x5c231c
sub edi, ecx
je 0x5c2488
cmp edi, 0x7ffffffc
ja 0x5c2488
push 0x354
call fcn.0072dc45
mov dword [esi], eax
pop ecx
test eax, eax
jne 0x5c2358
call fcn.00727de3
mov dword [eax], 0xc
jmp 0x5c2451
push 0x354
xor ecx, ecx
push ecx
push eax
call fcn.00718210
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 0x5c2413
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x5c23b1
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 0x5c2413
mov eax, dword [ebp - 8]
mov edi, eax
lea eax, [eax*2 + 4]
call fcn.00700070
xor ecx, ecx
mov ebx, esp
mov edx, ecx
cmp edi, ecx
jbe 0x5c23e6
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 0x5c23d5
mov esi, dword [ebp + 8]
movzx eax, word [ebx + edi*2 - 4]
push 0x2a
pop ecx
cmp ax, cx
je 0x5c2469
cmp eax, 0x2f
je 0x5c2465
cmp eax, 0x5c
je 0x5c2465
mov eax, dword [0x8220f0]
mov dword [ebx + edi*2 - 2], eax
mov ax, word [0x8220f4]
mov word [ebx + edi*2 + 2], ax
jmp 0x5c2469
lea eax, [edi*2 + 4]
call fcn.00700070
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 0x5c23e6
push dword [esi]
call fcn.0072051c
xor eax, eax
pop ecx
mov dword [esi], eax
call fcn.00727de3
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.006fedff
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 0x5c24a6
push eax
jmp 0x5c243c
call fcn.00727de3
mov dword [eax], 2
jmp 0x5c2451
push eax
push dword [eax + 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x5c2451
mov eax, dword [esi]
xor ecx, ecx
mov edi, ecx
lea ebx, [eax + 0x2c]
cmp word [ebx], cx
je 0x5c24c3
cmp edi, 0xff
jae 0x5c24c3
inc edi
cmp word [ebx + edi*2], cx
jne 0x5c24b4
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 0x5c24fa
mov edx, eax
test edi, edi
je 0x5c24fa
mov ecx, dword [esi]
mov al, byte [ebx + edx*2]
mov byte [ecx + edx + 0x254], al
inc edx
cmp edx, edi
jb 0x5c24e9
mov eax, dword [esi]
xor ecx, ecx
mov byte [eax + 0x353], cl
mov eax, dword [esi]
add eax, 0x254
jmp 0x5c2453