Function at 0x4b56ae
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x62fff4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4b5819
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4b5819
call fcn.00561957
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [esi]
test eax, eax
jne 0x4b5868
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4b56ef
sub edi, ecx
je 0x4b585b
cmp edi, 0x7ffffffc
ja 0x4b585b
push 0x354
call fcn.00568622
mov dword [esi], eax
pop ecx
test eax, eax
jne 0x4b572b
call fcn.00561957
mov dword [eax], 0xc
jmp 0x4b5824
push 0x354
xor ecx, ecx
push ecx
push eax
call fcn.00559fa0
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 0x4b57e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x4b5784
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 0x4b57e6
mov eax, dword [ebp - 8]
mov edi, eax
lea eax, [eax*2 + 4]
call fcn.00541d90
xor ecx, ecx
mov ebx, esp
mov edx, ecx
cmp edi, ecx
jbe 0x4b57b9
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 0x4b57a8
mov esi, dword [ebp + 8]
movzx eax, word [ebx + edi*2 - 4]
push 0x2a
pop ecx
cmp ax, cx
je 0x4b583c
cmp eax, 0x2f
je 0x4b5838
cmp eax, 0x5c
je 0x4b5838
mov eax, dword [0x5d22f0]
mov dword [ebx + edi*2 - 2], eax
mov ax, word [0x5d22f4]
mov word [ebx + edi*2 + 2], ax
jmp 0x4b583c
lea eax, [edi*2 + 4]
call fcn.00541d90
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 0x4b57b9
push dword [esi]
call fcn.0055cb2b
xor eax, eax
pop ecx
mov dword [esi], eax
call fcn.00561957
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.00540aaa
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 0x4b5879
push eax
jmp 0x4b580f
call fcn.00561957
mov dword [eax], 2
jmp 0x4b5824
push eax
push dword [eax + 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4b5824
mov eax, dword [esi]
xor ecx, ecx
mov edi, ecx
lea ebx, [eax + 0x2c]
cmp word [ebx], cx
je 0x4b5896
cmp edi, 0xff
jae 0x4b5896
inc edi
cmp word [ebx + edi*2], cx
jne 0x4b5887
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 0x4b58cd
mov edx, eax
test edi, edi
je 0x4b58cd
mov ecx, dword [esi]
mov al, byte [ebx + edx*2]
mov byte [ecx + edx + 0x254], al
inc edx
cmp edx, edi
jb 0x4b58bc
mov eax, dword [esi]
xor ecx, ecx
mov byte [eax + 0x353], cl
mov eax, dword [esi]
add eax, 0x254
jmp 0x4b5826