Function at 0x518e40
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a68a0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c0
mov eax, dword [0x5f300c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c0], ecx
mov edi, dword [ebx + 8]
lea ecx, [ebp - 0x2c]
mov esi, dword [ebx + 0xc]
xor eax, eax
push 3
push 0x5c0b40
mov dword [ebp - 0x2cc], edi
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x30], vtable.FilePath.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0040acf0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x4c], vtable.FilePath.0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x2c0]
lea ecx, [ebp - 0x4c]
call fcn.005181f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040ab30
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
jb 0x518f13
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x2b8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c8], eax
cmp eax, 0xffffffff
je 0x5190cb
lea edx, [ebp - 0x28c]
jmp 0x518f40
lea esi, [ebp - 0x28c]
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x518f50
sub esp, 8
sub esi, ecx
mov eax, esp
sar esi, 1
push esi
push edx
mov dword [eax], 0x5c0b7c
mov dword [eax + 4], 1
call fcn.0051a030
add esp, 0x10
test al, al
je 0x51909c
sub esp, 8
mov eax, esp
push esi
mov dword [eax], 0x5c0b80
mov dword [eax + 4], 2
lea eax, [ebp - 0x28c]
push eax
call fcn.0051a030
add esp, 0x10
test al, al
je 0x51909c
xor eax, eax
mov dword [ebp - 0x68], vtable.FilePath.0
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x54], 0
lea edx, [eax + 2]
mov dword [ebp - 0x50], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x518fd1
sub eax, edx
lea ecx, [ebp - 0x64]
sar eax, 1
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.0040acf0
xor eax, eax
mov dword [ebp - 0x30], vtable.FilePath.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0x2c0]
lea ecx, [ebp - 0x30]
call fcn.005181f0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.0040ab30
test byte [ebp - 0x2b8], 0x10
je 0x51905e
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x519056
mov dword [eax], vtable.FilePath.0
lea ecx, [eax + 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.005111c0
add dword [edi + 4], 0x1c
jmp 0x519090
lea ecx, [ebp - 0x30]
push ecx
mov ecx, edi
jmp 0x51908a
mov esi, dword [ebp - 0x2c4]
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x519084
mov dword [eax], vtable.FilePath.0
lea ecx, [eax + 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.005111c0
add dword [esi + 4], 0x1c
jmp 0x519090
lea ecx, [ebp - 0x30]
push ecx
mov ecx, esi
push eax
call fcn.0051a0f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040ab30
mov esi, dword [ebp - 0x2c8]
lea eax, [ebp - 0x2b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [ebp - 0x28c]
test eax, eax
jne 0x518f40
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x2c4]
mov edi, dword [esi + 4]
mov eax, 0x92492493
mov ecx, dword [esi]
mov esi, edi
push dword [ebp - 0x2bc]
sub esi, ecx
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, edi
push eax
call fcn.0051a720
mov ecx, dword [ebp - 0x2cc]
mov eax, 0x92492493
push dword [ebp - 0x2bc]
mov edi, dword [ecx + 4]
mov esi, edi
mov ecx, dword [ecx]
sub esi, ecx
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, edi
push eax
call fcn.0051a720
add esp, 0x10
lea ecx, [ebp - 0x48]
call fcn.0040ab30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059df64
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8