Function at 0x54ee90
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x378
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x374], eax
mov eax, dword [esp + 0x37c]
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x158]
push ecx
push edi
mov dword [esp + 0x14], eax
call sym.convertifd.exe_UtGetExt
add esp, 8
xor eax, eax
jmp 0x54eed0
mov cl, byte [eax + 0x6a20fa]
mov byte [esp + eax + 0x27c], cl
add eax, 1
test cl, cl
jne 0x54eed0
lea edx, [esp + 0x27c]
push 0x58cd14
push edx
mov byte [esp + 0x287], cl
call fcn.0051e073
mov ebp, eax
add esp, 8
neg ebp
sbb ebp, ebp
add ebp, 1
mov eax, edi
mov dword [esp + 0x14], ebp
mov byte [esp + 0x178], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x54ef20
sub eax, edx
lea esi, [eax - 1]
test esi, esi
jl 0x54ef61
mov al, byte [edi + esi]
cmp al, 0x5c
je 0x54ef44
cmp al, 0x3a
je 0x54ef44
sub esi, 1
jns 0x54ef32
jmp 0x54ef61
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x17c]
push edi
push ecx
call fcn.005154f0
add esp, 0xc
mov byte [esp + esi + 0x179], 0
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
jne 0x54ef98
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x374]
xor ecx, esp
call fcn.00511a80
add esp, 0x378
ret
push ebx
xor ebx, ebx
jmp 0x54efa0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x581818
lea eax, [esp + 0x4c]
push eax
call esi
test eax, eax
je 0x54f107
push 0x58cd10
lea ecx, [esp + 0x4c]
push ecx
call esi
test eax, eax
je 0x54f107
push str.Dingbats.l4
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x54efea
test ebp, ebp
je 0x54f107
lea eax, [esp + 0x17c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x54eff4
sub eax, edx
mov esi, eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
lea ecx, [eax + ebx + 2]
cmp ecx, dword [esp + 0x390]
ja 0x54f11b
lea edx, [esp + 0x16c]
push edx
lea eax, [esp + 0x4c]
push eax
call sym.convertifd.exe_UtGetExt
add esp, 8
cmp byte [esp + 0x15c], 0x2a
je 0x54f05e
lea ecx, [esp + 0x15c]
push ecx
lea edx, [esp + 0x170]
push edx
call fcn.0051e073
add esp, 8
test eax, eax
jne 0x54f107
mov ecx, dword [esp + 0x10]
lea ebp, [ecx + ebx]
lea eax, [esp + 0x17c]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x54f072
cmp byte [esp + 0x48], cl
je 0x54f0ae
lea eax, [esp + 0x48]
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x54f090
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x54f0a2
jmp 0x54f0da
lea eax, [esp + 0x14c]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x54f0b7
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x54f0d0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebp
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x54f0f0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
sub eax, edx
lea ebx, [ebx + eax + 1]
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x54efa0
mov eax, dword [esp + 0x10]
push edi
mov byte [eax + ebx], 0
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x384]
neg eax
sbb eax, eax
and eax, ebx
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00511a80
add esp, 0x378
ret