Function at 0x10017490
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10017c69
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x1001d0f0]
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
lea eax, [ebp - 0x294]
xor ebx, ebx
push eax
mov byte [ebp - 0x279], bl
call fcn.100155d0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
push 0x104
lea ecx, [ebp - 0x118]
push ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10017510
sub eax, edx
push eax
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x134]
call fcn.100026f0
push 1
push 0x1001a4bc
lea eax, [ebp - 0x134]
call fcn.100026f0
push 6
lea ecx, [ebp - 0x294]
call fcn.100146c0
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x10017550
sub ecx, esi
push ecx
push eax
lea eax, [ebp - 0x134]
call fcn.100026f0
mov eax, dword [ebp - 0x130]
mov edi, 0x10
cmp dword [ebp - 0x11c], edi
jae 0x1001757f
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001761b
cmp dword [ebp - 0x11c], edi
jb 0x100175af
mov edx, dword [ebp - 0x130]
push edx
call fcn.10004be1
add esp, 4
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
cmp eax, ebx
je 0x100175f3
mov ecx, dword [ebp - 0x298]
mov edi, dword [ebp - 0x284]
push ecx
call fcn.10004030
mov edx, dword [ebp - 0x288]
add esp, 4
push edx
call fcn.10004be1
add esp, 4
mov eax, dword [ebp - 0x294]
push eax
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x280], ebx
call fcn.10004be1
add esp, 4
xor al, al
jmp 0x1001784a
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ebp - 0x278]
push ecx
push esi
call edi
test eax, eax
je 0x100177c0
push 7
lea ecx, [ebp - 0x294]
call fcn.100146c0
mov cl, byte [ebp - 0x24c]
lea edx, [ebp - 0x24c]
cmp cl, byte [eax]
jne 0x1001765d
cmp cl, bl
je 0x1001765d
mov cl, byte [edx + 1]
inc edx
inc eax
cmp cl, byte [eax]
je 0x10017650
movsx eax, byte [eax]
movsx ecx, byte [edx]
sub ecx, eax
jne 0x1001766e
mov byte [ebp - 0x279], 1
push 8
lea ecx, [ebp - 0x294]
call fcn.100146c0
mov cl, byte [ebp - 0x24c]
lea edx, [ebp - 0x24c]
cmp cl, byte [eax]
jne 0x1001769d
jmp 0x10017690
cmp cl, bl
je 0x1001769d
mov cl, byte [edx + 1]
inc edx
inc eax
cmp cl, byte [eax]
je 0x10017690
movsx eax, byte [eax]
movsx ecx, byte [edx]
sub ecx, eax
jne 0x100176ae
mov byte [ebp - 0x279], 1
push 9
lea ecx, [ebp - 0x294]
call fcn.100146c0
mov cl, byte [ebp - 0x24c]
lea edx, [ebp - 0x24c]
cmp cl, byte [eax]
jne 0x100176dd
jmp 0x100176d0
cmp cl, bl
je 0x100176dd
mov cl, byte [edx + 1]
inc edx
inc eax
cmp cl, byte [eax]
je 0x100176d0
movsx eax, byte [eax]
movsx ecx, byte [edx]
sub ecx, eax
jne 0x100176ee
mov byte [ebp - 0x279], 1
push 0xa
lea ecx, [ebp - 0x294]
call fcn.100146c0
mov cl, byte [ebp - 0x24c]
lea edx, [ebp - 0x24c]
cmp cl, byte [eax]
jne 0x1001771d
jmp 0x10017710
cmp cl, bl
je 0x1001771d
mov cl, byte [edx + 1]
inc edx
inc eax
cmp cl, byte [eax]
je 0x10017710
movsx edx, byte [edx]
movsx eax, byte [eax]
sub edx, eax
jne 0x1001772e
mov byte [ebp - 0x279], 1
push 0xb
lea ecx, [ebp - 0x294]
call fcn.100146c0
mov cl, byte [ebp - 0x24c]
lea edx, [ebp - 0x24c]
cmp cl, byte [eax]
jne 0x1001775d
jmp 0x10017750
cmp cl, bl
je 0x1001775d
mov cl, byte [edx + 1]
inc edx
inc eax
cmp cl, byte [eax]
je 0x10017750
movsx ecx, byte [edx]
movsx edx, byte [eax]
sub ecx, edx
jne 0x1001776e
mov byte [ebp - 0x279], 1
push 0xc
lea ecx, [ebp - 0x294]
call fcn.100146c0
mov cl, byte [ebp - 0x24c]
lea edx, [ebp - 0x24c]
cmp cl, byte [eax]
jne 0x1001779d
jmp 0x10017790
cmp cl, bl
je 0x1001779d
mov cl, byte [edx + 1]
inc edx
inc eax
cmp cl, byte [eax]
je 0x10017790
movsx ecx, byte [edx]
movsx edx, byte [eax]
sub ecx, edx
jne 0x100177ae
mov byte [ebp - 0x279], 1
lea eax, [ebp - 0x278]
push eax
push esi
call edi
test eax, eax
jne 0x10017633
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x11c], 0x10
jb 0x100177df
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.10004be1
add esp, 4
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
cmp eax, ebx
je 0x10017823
mov edx, dword [ebp - 0x298]
mov edi, dword [ebp - 0x284]
push edx
call fcn.10004030
mov eax, dword [ebp - 0x288]
add esp, 4
push eax
call fcn.10004be1
add esp, 4
mov ecx, dword [ebp - 0x294]
push ecx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x280], ebx
call fcn.10004be1
mov al, byte [ebp - 0x279]
add esp, 4
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.10004bec
mov esp, ebp
pop ebp
ret