Function at 0x54ca10
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x62375f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c0
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov word [esp + 0x18], bp
mov eax, dword [esp + 0x6e0]
mov dword [esp + 0x6d8], ebp
cmp eax, ebp
je 0x54ceb7
cmp dword [0x6eccdc], ebp
je 0x54ca6c
mov dword [esp + 0x6d8], 0xffffffff
jmp 0x54d15e
lea eax, [esp + 0x2c0]
push eax
call fcn.0054c960
add esp, 4
test eax, eax
jne 0x54ca9b
lea ecx, [esp + 0x14]
mov dword [esp + 0x6d8], 0xffffffff
call fcn.00401070
xor eax, eax
jmp 0x54d16c
lea ecx, [esp + 0x2c0]
mov byte [esp + 0x13], 0
push ecx
call fcn.005de123
xor ecx, ecx
add esp, 4
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebp
mov word [esp + 0x28], bp
cmp word [esp + eax*2 + 0x2c0], 0x5c
lea eax, [esp + eax*2 + 0x2c0]
mov byte [esp + 0x6d8], 1
mov dword [esp + 0x68], eax
mov esi, 0x6ec0cc
je 0x54cae8
mov esi, 0x6bc14c
mov edx, 0x6da400
test edx, edx
je 0x54cc1a
lea eax, [esp + 0x2c0]
test eax, eax
je 0x54cc1a
cmp esi, ebp
je 0x54cc1a
push edx
lea ecx, [esp + 0x40]
call fcn.00402350
lea ecx, [esp + 0x2c0]
mov bl, 2
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6dc], bl
call fcn.0040e020
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x6dc], 3
call fcn.0040e020
lea ecx, [esp + 0x24]
mov byte [esp + 0x6d8], 4
call fcn.00401070
mov edi, dword [esp + 0x48]
cmp edi, ebp
jne 0x54cb5f
lea edi, [esp + 0x4c]
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x30]
call fcn.004023d0
push eax
call fcn.005de123
push edi
mov ebp, eax
call fcn.005de123
add esi, ebp
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005f6c5c
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x24], edi
je 0x54cbe2
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x30]
call fcn.004023d0
push eax
lea ecx, [esp + 0x4c]
call fcn.004023d0
push eax
lea ecx, [esp + 0x44]
call fcn.004023d0
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [esp + 0x38]
push ecx
call fcn.005de123
add esp, 0x18
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x6d8], 3
call fcn.00401070
lea ecx, [esp + 0x48]
mov byte [esp + 0x6d8], bl
call fcn.00401070
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6d8], 1
call fcn.00401070
mov ecx, dword [esp + 0x24]
xor ebp, ebp
cmp ecx, ebp
jne 0x54cc22
lea ecx, [esp + 0x28]
lea edx, [esp + 0x70]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x60], ebp
cmp edi, 0xffffffff
mov dword [esp + 0x6c], edi
mov dword [esp + 0x64], ebp
je 0x54ce75
mov bl, 7
lea eax, [esp + 0x9c]
push 0x6bcee8
push eax
call fcn.005de644
add esp, 8
test eax, eax
je 0x54ce52
lea ecx, [esp + 0x9c]
push 0x6bcee0
push ecx
call fcn.005de644
add esp, 8
test eax, eax
je 0x54ce52
lea edx, [esp + 0x60]
lea eax, [esp + 0x7c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x54ce52
mov ecx, dword [esp + 0x68]
mov esi, 0x6ec0cc
cmp word [ecx], 0x5c
je 0x54ccad
mov esi, 0x6bc14c
mov edx, 0x6da3d0
test edx, edx
je 0x54ce3a
lea eax, [esp + 0x2c0]
test eax, eax
je 0x54ce3a
cmp esi, ebp
je 0x54ce3a
lea ecx, [esp + 0x9c]
test ecx, ecx
je 0x54ce3a
lea edx, [esp + 0x2c0]
lea ecx, [esp + 0x54]
push edx
call fcn.0040e020
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6dc], 5
call fcn.0040e020
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0x6dc], 6
call fcn.0040e020
lea ecx, [esp + 0x14]
mov byte [esp + 0x6d8], bl
call fcn.00401070
push 0x6da3d0
lea ecx, [esp + 0x40]
call fcn.00402350
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x30]
mov byte [esp + 0x6d8], 8
call fcn.004023d0
push eax
call fcn.005de123
add esp, 4
lea ecx, [esp + 0x48]
mov edi, eax
call fcn.004023d0
push eax
call fcn.005de123
mov ebp, eax
add esp, 4
lea ecx, [esp + 0x54]
add ebp, esi
call fcn.004023d0
push eax
call fcn.005de123
add ebp, edi
lea esi, [eax + ebp + 4]
lea ebp, [esi + esi]
push ebp
call fcn.005f6c5c
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
je 0x54cdf1
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x30]
call fcn.004023d0
push eax
lea ecx, [esp + 0x4c]
call fcn.004023d0
push eax
lea ecx, [esp + 0x5c]
call fcn.004023d0
push eax
lea ecx, [esp + 0x48]
call fcn.004023d0
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.005de123
add esp, 0x1c
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6d8], bl
call fcn.00401070
lea ecx, [esp + 0x30]
mov byte [esp + 0x6d8], 6
call fcn.00401070
lea ecx, [esp + 0x48]
mov byte [esp + 0x6d8], 5
call fcn.00401070
lea ecx, [esp + 0x54]
mov byte [esp + 0x6d8], 1
call fcn.00401070
mov edi, dword [esp + 0x6c]
xor ebp, ebp
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x70]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x54cc47
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0x13]
test al, al
jne 0x54cea1
lea ecx, [esp + 0x24]
mov byte [esp + 0x6d8], 0
call fcn.00401070
lea ecx, [esp + 0x14]
mov dword [esp + 0x6d8], 0xffffffff
call fcn.00401070
xor eax, eax
jmp 0x54d16c
lea ecx, [esp + 0x24]
mov byte [esp + 0x6d8], 0
call fcn.00401070
jmp 0x54d052
cmp dword [0x6ecce0], ebp
je 0x54cecf
mov dword [esp + 0x6d8], 0xffffffff
jmp 0x54d15e
lea edx, [esp + 0x4c8]
push edx
call fcn.0040db50
add esp, 4
test eax, eax
jne 0x54cefe
lea ecx, [esp + 0x14]
mov dword [esp + 0x6d8], 0xffffffff
call fcn.00401070
xor eax, eax
jmp 0x54d16c
lea eax, [esp + 0x4c8]
push eax
call fcn.005de123
add esp, 4
dec eax
mov esi, 0x6ec0cc
cmp word [esp + eax*2 + 0x4c8], 0x5c
je 0x54cf24
mov esi, 0x6bc14c
mov ecx, 0x6da3a4
test ecx, ecx
je 0x54d052
lea edx, [esp + 0x4c8]
test edx, edx
je 0x54d052
cmp esi, ebp
je 0x54d052
push ecx
lea ecx, [esp + 0x34]
call fcn.00402350
lea eax, [esp + 0x4c8]
lea ecx, [esp + 0x3c]
push eax
mov byte [esp + 0x6dc], 9
call fcn.0040e020
mov bl, 0xa
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x6dc], bl
call fcn.0040e020
lea ecx, [esp + 0x14]
mov byte [esp + 0x6d8], 0xb
call fcn.00401070
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x54]
call fcn.004023d0
push eax
call fcn.005de123
add esp, 4
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.004023d0
push eax
call fcn.005de123
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005f6c5c
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
je 0x54d01e
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x54]
call fcn.004023d0
push eax
lea ecx, [esp + 0x40]
call fcn.004023d0
push eax
lea ecx, [esp + 0x38]
call fcn.004023d0
push eax
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [esp + 0x28]
push ecx
call fcn.005de123
add esp, 0x18
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x6d8], bl
call fcn.00401070
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6d8], 9
call fcn.00401070
lea ecx, [esp + 0x30]
mov byte [esp + 0x6d8], 0
call fcn.00401070
xor ebp, ebp
mov edx, dword [0x6e7b6c]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x6d8], 0xc
cmp eax, ebp
jne 0x54d070
lea eax, [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push eax
push ebp
push 0xfde9
call edi
mov esi, eax
cmp esi, ebp
jle 0x54d0b8
push esi
lea ecx, [esp + 0x24]
call fcn.005fac26
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
jne 0x54d0a1
lea ecx, [esp + 0x18]
push ebp
push ebp
push esi
or esi, 0xffffffff
push eax
push esi
push ecx
push ebp
push 0xfde9
call edi
test eax, eax
jne 0x54d0bd
jmp 0x54d0d4
or esi, 0xffffffff
jmp 0x54d0d4
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x54d0c9
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
jne 0x54d0f9
lea ecx, [esp + 0x20]
mov byte [esp + 0x6d8], 0
call fcn.005fa859
lea ecx, [esp + 0x14]
mov dword [esp + 0x6d8], esi
call fcn.00401070
xor eax, eax
jmp 0x54d16c
cmp dword [esp + 0x6e0], ebp
je 0x54d125
mov eax, dword [esp + 0x20]
push eax
push 0x6bc090
push 0x6eccb4
call fcn.005f368b
add esp, 0xc
mov dword [0x6eccdc], 1
jmp 0x54d146
mov ecx, dword [esp + 0x20]
push ecx
push 0x6bc090
push 0x6eccb0
call fcn.005f368b
add esp, 0xc
mov dword [0x6ecce0], 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x6d8], 0
call fcn.005fa859
mov dword [esp + 0x6d8], esi
lea ecx, [esp + 0x14]
call fcn.00401070
mov eax, 1
mov ecx, dword [esp + 0x6d0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6cc
ret