Function at 0x4baeef
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4bb05a
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4bb05a
call fcn.005671a7
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [esi]
test eax, eax
jne 0x4bb0a9
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4baf30
sub edi, ecx
je 0x4bb09c
cmp edi, 0x7ffffffc
ja 0x4bb09c
push 0x354
call fcn.0056de72
mov dword [esi], eax
pop ecx
test eax, eax
jne 0x4baf6c
call fcn.005671a7
mov dword [eax], 0xc
jmp 0x4bb065
push 0x354
xor ecx, ecx
push ecx
push eax
call fcn.0055f7f0
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 0x4bb027
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x4bafc5
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 0x4bb027
mov eax, dword [ebp - 8]
mov edi, eax
lea eax, [eax*2 + 4]
call fcn.005475e0
xor ecx, ecx
mov ebx, esp
mov edx, ecx
cmp edi, ecx
jbe 0x4baffa
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 0x4bafe9
mov esi, dword [ebp + 8]
movzx eax, word [ebx + edi*2 - 4]
push 0x2a
pop ecx
cmp ax, cx
je 0x4bb07d
cmp eax, 0x2f
je 0x4bb079
cmp eax, 0x5c
je 0x4bb079
mov eax, dword [0x5d9cb0]
mov dword [ebx + edi*2 - 2], eax
mov ax, word [0x5d9cb4]
mov word [ebx + edi*2 + 2], ax
jmp 0x4bb07d
lea eax, [edi*2 + 4]
call fcn.005475e0
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 0x4baffa
push dword [esi]
call fcn.0056237b
xor eax, eax
pop ecx
mov dword [esi], eax
call fcn.005671a7
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.005462f1
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 0x4bb0ba
push eax
jmp 0x4bb050
call fcn.005671a7
mov dword [eax], 2
jmp 0x4bb065
push eax
push dword [eax + 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4bb065
mov eax, dword [esi]
xor ecx, ecx
mov edi, ecx
lea ebx, [eax + 0x2c]
cmp word [ebx], cx
je 0x4bb0d7
cmp edi, 0xff
jae 0x4bb0d7
inc edi
cmp word [ebx + edi*2], cx
jne 0x4bb0c8
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 0x4bb10e
mov edx, eax
test edi, edi
je 0x4bb10e
mov ecx, dword [esi]
mov al, byte [ebx + edx*2]
mov byte [ecx + edx + 0x254], al
inc edx
cmp edx, edi
jb 0x4bb0fd
mov eax, dword [esi]
xor ecx, ecx
mov byte [eax + 0x353], cl
mov eax, dword [esi]
add eax, 0x254
jmp 0x4bb067