Function at 0x53c8e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x6bc00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x53ca27
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x53ca27
call fcn.005f169c
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
jne 0x53caad
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x53c923
sub esi, ecx
je 0x53caa0
cmp esi, 0x7ffffffc
ja 0x53caa0
push 0x354
call fcn.005f1902
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x53c961
call fcn.005f169c
mov dword [eax], 0xc
jmp 0x53ca32
push 0x354
push 0
push eax
call fcn.005e26d0
add esp, 0xc
mov dword [ebp - 0xc], 0xfde9
inc esi
push 0
push 0
push esi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
test eax, eax
jg 0x53c9f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x53c9bc
push 0
push 0
push esi
push ebx
push 0
push 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
jmp 0x53c9bf
mov eax, dword [ebp - 8]
test eax, eax
jg 0x53c9f0
lea eax, [esi*2 + 4]
mov dword [ebp - 8], esi
call fcn.0060c120
xor ecx, ecx
mov edx, esp
test esi, esi
je 0x53ca4b
nop word [eax + eax]
movsx ax, byte [ecx + ebx]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x53c9e0
jmp 0x53ca4b
lea eax, [eax*2 + 4]
call fcn.0060c120
mov eax, dword [ebp - 8]
mov ecx, esp
push eax
push ecx
push esi
push ebx
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x53ca48
push dword [edi]
call fcn.005f0fb3
add esp, 4
mov dword [edi], 0
call fcn.005f169c
mov dword [eax], 0x16
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
dec eax
lea ecx, [edx + eax*2]
movzx eax, word [ecx - 2]
cmp eax, 0x2a
je 0x53ca7e
cmp eax, 0x2f
je 0x53ca78
cmp eax, 0x5c
je 0x53ca78
mov eax, dword [0x6473f8]
mov dword [ecx], eax
mov ax, word [0x6473fc]
mov word [ecx + 4], ax
jmp 0x53ca7e
mov dword [ecx], 0x2a
push dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [edi]
mov dword [ecx + 0x250], eax
mov eax, dword [edi]
cmp dword [eax + 0x250], 0xffffffff
jne 0x53cac2
push eax
jmp 0x53ca19
call fcn.005f169c
mov dword [eax], 2
jmp 0x53ca32
push eax
push dword [eax + 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x53ca32
mov eax, dword [edi]
xor esi, esi
cmp word [eax + 0x2c], si
lea ebx, [eax + 0x2c]
je 0x53cae0
nop
cmp esi, 0xff
jae 0x53cae0
inc esi
cmp word [ebx + esi*2], 0
jne 0x53cad0
push 0
push 0
push 0x100
add eax, 0x254
inc esi
push eax
push esi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x53cb21
xor edx, edx
test esi, esi
je 0x53cb21
nop dword [eax]
mov ecx, dword [edi]
mov al, byte [ebx + edx*2]
mov byte [ecx + edx + 0x254], al
inc edx
cmp edx, esi
jb 0x53cb10
mov eax, dword [edi]
mov byte [eax + 0x353], 0
mov eax, dword [edi]
add eax, 0x254
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b637
mov esp, ebp
pop ebp
ret