Function at 0x5179c0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6418
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x2dc], eax
xor ebx, ebx
mov dword [ebp - 0x24], 7
xor esi, esi
mov dword [ebp - 0x28], ebx
xor ecx, ecx
mov dword [ebp - 0x2d4], esi
mov word [ebp - 0x38], cx
mov dword [ebp - 4], ecx
mov edx, eax
push 0x5f6e7c
lea ecx, [ebp - 0x50]
call fcn.0044a170
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x517a2f
mov eax, dword [eax]
lea ecx, [ebp - 0x2d0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x2d8], eax
cmp edx, 8
jb 0x517a83
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x517a73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x517df0
push edx
push ecx
call fcn.0056eec5
mov eax, dword [ebp - 0x2d8]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], cx
cmp eax, 0xffffffff
jne 0x517af0
mov esi, dword [edi + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], 0xfffffffe
push eax
cmp dword [edi + 8], esi
je 0x517ade
mov ecx, esi
call fcn.00441370
mov eax, dword [ebp - 0x20]
xor ebx, ebx
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
add dword [edi + 4], 0x28
xor esi, esi
jmp 0x517dc8
push esi
mov ecx, edi
call fcn.00518260
xor ebx, ebx
xor esi, esi
jmp 0x517dc8
mov ecx, 0x5e437c
lea eax, [ebp - 0x2a4]
jmp 0x517b00
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x517b26
test dx, dx
je 0x517b22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x517b26
add eax, 4
add ecx, 4
test dx, dx
jne 0x517b00
xor eax, eax
jmp 0x517b2b
sbb eax, eax
or eax, 1
test eax, eax
je 0x517d3d
mov ecx, 0x5f2bec
lea eax, [ebp - 0x2a4]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x517b66
test dx, dx
je 0x517b62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x517b66
add eax, 4
add ecx, 4
test dx, dx
jne 0x517b40
xor eax, eax
jmp 0x517b6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x517d3d
lea ecx, [ebp - 0x2a4]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x517b80
sub ecx, edx
lea eax, [ebp - 0x2a4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00445cb0
test byte [ebp - 0x2d0], 0x10
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x14], eax
je 0x517ce2
mov esi, dword [edi + 4]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
push eax
cmp dword [edi + 8], esi
je 0x517bfd
mov ecx, esi
call fcn.00441370
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
add dword [edi + 4], 0x28
jmp 0x517c05
push esi
mov ecx, edi
call fcn.00518260
mov edx, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x80]
push 0x5f210c
call fcn.0044a170
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x68]
call fcn.0044a240
add esp, 8
mov edx, edi
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.005179c0
mov esi, dword [ebp - 0x2d4]
add ebx, eax
mov byte [ebp - 4], 1
adc esi, edx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x2d4], esi
cmp edx, 8
jb 0x517c8b
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x517c81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x517df0
push edx
push ecx
call fcn.0056eec5
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
cmp edx, 8
jb 0x517d3d
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x517cd6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x517df0
push edx
push ecx
call fcn.0056eec5
add esp, 8
jmp 0x517d3d
mov eax, dword [ebp - 0x2b0]
add ebx, eax
mov ecx, dword [ebp - 0x2b4]
adc esi, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2d4], esi
lea eax, [ebp - 0x38]
mov esi, dword [edi + 4]
mov dword [ebp - 0x1c], ecx
push eax
cmp dword [edi + 8], esi
je 0x517d2f
mov ecx, esi
call fcn.00441370
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
add dword [edi + 4], 0x28
jmp 0x517d37
push esi
mov ecx, edi
call fcn.00518260
mov esi, dword [ebp - 0x2d4]
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x517af0
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], 0
cmovae eax, dword [ebp - 0x38]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x38]
mov esi, dword [edi + 4]
mov dword [ebp - 0x20], 0xfffffffe
mov dword [ebp - 0x1c], 0xffffffff
push eax
cmp dword [edi + 8], esi
je 0x517dba
mov ecx, esi
call fcn.00441370
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
add dword [edi + 4], 0x28
jmp 0x517dc2
push esi
mov ecx, edi
call fcn.00518260
mov esi, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x38]
call fcn.00445c30
mov eax, ebx
mov edx, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret
call fcn.00591dc6
int3