Function at 0x54d320
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72e728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
mov al, byte [ebp + 0xb]
push ebx
push edi
push 0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], al
call fcn.00420210
mov edx, dword [ebp + 0xc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.0042f5f0
mov edx, dword [ebp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 4], 0
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00421900
mov ecx, 0x50
xor eax, eax
lea edi, [ebp - 0x18c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x54d3a4
mov eax, 0x7367f4
lea ecx, [ebp - 0x18c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 0xc], ebx
jne 0x54d3d5
push str.INVALID_HANDLE_VALUE
call fcn.00405d90
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x54d626
mov dl, byte [ebp + 0xb]
push esi
push 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], dl
call fcn.00420210
mov edi, 0x766664
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x766664
lea ecx, [ebp - 0x3c]
call fcn.0042f5f0
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
mov byte [ebp - 0x2c], al
call fcn.00420210
mov edi, 0x766660
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x766660
lea ecx, [ebp - 0x2c]
call fcn.0042f5f0
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x34]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x160]
push ecx
push edx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004304a0
test eax, eax
je 0x54d4e9
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x160]
push ecx
mov ecx, dword [ebp - 0x24]
push eax
push ecx
push 0
lea ecx, [ebp - 0x2c]
call fcn.004304a0
test eax, eax
je 0x54d4e9
mov dl, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], dl
call fcn.00420210
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x160]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042f5f0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp + 0x10]
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push edx
mov byte [ebp - 4], 3
call fcn.004bc330
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00420210
jmp 0x54d4ec
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x54d5ed
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x34]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [ebp - 0x160]
push ecx
push edx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004304a0
test eax, eax
je 0x54d5d7
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x160]
push ecx
mov ecx, dword [ebp - 0x24]
push eax
push ecx
push 0
lea ecx, [ebp - 0x2c]
call fcn.004304a0
test eax, eax
je 0x54d5d7
mov dl, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], dl
call fcn.00420210
lea edi, [ebp - 0x160]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x1c]
push ebx
call fcn.004219f0
test al, al
je 0x54d5af
mov edi, dword [ebp - 0x18]
mov ecx, ebx
mov eax, ecx
lea esi, [ebp - 0x160]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1c]
call fcn.004219d0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp + 0x10]
push eax
push edx
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004bc330
push 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00420210
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x18c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x54d502
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00420210
mov ecx, dword [ebp - 0x38]
pop esi
test ecx, ecx
je 0x54d626
mov al, byte [ecx - 1]
test al, al
je 0x54d61c
cmp al, 0xff
je 0x54d61c
dec al
mov byte [ecx - 1], al
jmp 0x54d626
dec ecx
push ecx
call fcn.006ffa16
add esp, 4
mov ecx, dword [ebp - 0x48]
pop edi
test ecx, ecx
pop ebx
je 0x54d657
mov al, byte [ecx - 1]
test al, al
je 0x54d64d
cmp al, 0xff
je 0x54d64d
dec al
mov byte [ecx - 1], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.006ffa16
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret