Function at 0x4bafe4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x639034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4bb14f
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4bb14f
call fcn.005674d7
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [esi]
test eax, eax
jne 0x4bb19e
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4bb025
sub edi, ecx
je 0x4bb191
cmp edi, 0x7ffffffc
ja 0x4bb191
push 0x354
call fcn.0056e1a2
mov dword [esi], eax
pop ecx
test eax, eax
jne 0x4bb061
call fcn.005674d7
mov dword [eax], 0xc
jmp 0x4bb15a
push 0x354
xor ecx, ecx
push ecx
push eax
call fcn.0055fb20
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 0x4bb11c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x4bb0ba
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 0x4bb11c
mov eax, dword [ebp - 8]
mov edi, eax
lea eax, [eax*2 + 4]
call fcn.00547910
xor ecx, ecx
mov ebx, esp
mov edx, ecx
cmp edi, ecx
jbe 0x4bb0ef
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 0x4bb0de
mov esi, dword [ebp + 8]
movzx eax, word [ebx + edi*2 - 4]
push 0x2a
pop ecx
cmp ax, cx
je 0x4bb172
cmp eax, 0x2f
je 0x4bb16e
cmp eax, 0x5c
je 0x4bb16e
mov eax, dword [0x5d9cc0]
mov dword [ebx + edi*2 - 2], eax
mov ax, word [0x5d9cc4]
mov word [ebx + edi*2 + 2], ax
jmp 0x4bb172
lea eax, [edi*2 + 4]
call fcn.00547910
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 0x4bb0ef
push dword [esi]
call fcn.005626ab
xor eax, eax
pop ecx
mov dword [esi], eax
call fcn.005674d7
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.00546623
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 0x4bb1af
push eax
jmp 0x4bb145
call fcn.005674d7
mov dword [eax], 2
jmp 0x4bb15a
push eax
push dword [eax + 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4bb15a
mov eax, dword [esi]
xor ecx, ecx
mov edi, ecx
lea ebx, [eax + 0x2c]
cmp word [ebx], cx
je 0x4bb1cc
cmp edi, 0xff
jae 0x4bb1cc
inc edi
cmp word [ebx + edi*2], cx
jne 0x4bb1bd
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 0x4bb203
mov edx, eax
test edi, edi
je 0x4bb203
mov ecx, dword [esi]
mov al, byte [ebx + edx*2]
mov byte [ecx + edx + 0x254], al
inc edx
cmp edx, edi
jb 0x4bb1f2
mov eax, dword [esi]
xor ecx, ecx
mov byte [eax + 0x353], cl
mov eax, dword [esi]
add eax, 0x254
jmp 0x4bb15c