Function at 0x517310
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1721
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x12dc
call fcn.0055af50
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x12d8], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x12dc], esi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x12e0], edi
xor eax, eax
mov dword [ebp - 0x12bc], eax
mov dword [ebp - 0x12c4], eax
push 0x2c
call fcn.00559a21
add esp, 4
test eax, eax
je 0x517672
mov dword [ebp - 0x12c8], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x12c8]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x12c8]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x12c8]
mov byte [eax + 0x28], 1
mov ecx, dword [ebp - 0x12c8]
mov byte [ecx + 0x29], 1
mov dword [ebp - 4], 4
test esi, esi
jne 0x517459
push edi
call fcn.0053a1b0
add esp, 4
test al, al
je 0x5173e9
push 0x626720
push 0x23d
push str.fts::FolderNameList
push str.Directory_name_cannot_be_empty
push esi
push esi
push esi
push 1
call edi
add esp, 0x20
lea edx, [ebp - 0x12cc]
push edx
mov ecx, ebx
call fcn.00516a40
mov byte [ebp - 4], 4
mov dword [ebp - 0x12bc], 1
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x12c8]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [ebp - 0x12d0]
push eax
lea ecx, [ebp - 0x12cc]
call fcn.005162f0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x12c8]
push ecx
call fcn.00558723
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 8
push esi
lea ecx, [ebp - 0x104c]
call fcn.00422b70
mov byte [ebp - 4], 9
lea edx, [ebp - 0x104c]
push edx
lea eax, [ebp - 0x1068]
push eax
call fcn.00516150
mov byte [ebp - 4], 0xa
push 0x5d9120
push eax
lea ecx, [ebp - 0x1030]
push ecx
call fcn.0041a440
add esp, 0x14
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1068]
call fcn.004222c0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x104c]
call fcn.004222c0
cmp dword [ebp - 0x101c], 8
mov eax, dword [ebp - 0x1030]
jae 0x5174cc
lea eax, [ebp - 0x1030]
lea edx, [ebp - 0x12b8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5175a4
jmp 0x5174f0
test dword [ebp - 0x12b8], 0x10
je 0x517587
push 0x5d731c
lea eax, [ebp - 0x128c]
push eax
call fcn.0055ade6
add esp, 8
test eax, eax
je 0x517587
push 0x5d9118
lea ecx, [ebp - 0x128c]
push ecx
call fcn.0055ade6
add esp, 8
test eax, eax
je 0x517587
push edi
call fcn.0053a1b0
add esp, 4
test al, al
je 0x517560
push 0x626720
push 0x251
push str.fts::FolderNameList
lea edx, [ebp - 0x128c]
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 2
push 3
call edi
add esp, 0x20
push 0
lea eax, [ebp - 0x128c]
push eax
lea ecx, [ebp - 0x12cc]
call fcn.00515e10
push eax
lea ecx, [ebp - 0x12d4]
push ecx
lea ecx, [ebp - 0x12cc]
call fcn.004ed5b0
lea edx, [ebp - 0x12b8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5174f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1030]
call fcn.004222c0
mov dword [ebp - 4], 4
jmp 0x51764d
lea edx, [ebp - 0x12cc]
push edx
mov ecx, ebx
call fcn.00516a40
mov byte [ebp - 4], 4
or dword [ebp - 0x12bc], 1
mov dword [ebp - 4], 0x11
jmp 0x51740c
mov dword [ebp - 0x12d0], 0
lea edx, [ebp - 0x12d0]
push edx
lea ecx, [ebp - 0x12ec]
call fcn.0055909d
mov dword [ebp - 4], 1
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
mov byte [ebp - 4], 0
push 0x60e354
lea eax, [ebp - 0x12ec]
push eax
call fcn.00559aa1
int3