Function at 0x10017680
Capabilities:
Enumerate files on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d3c6
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x10075988]
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 dword [ebp - 0x220], ecx
call fcn.10002e50
fstp st(0)
push str.dsfix_tex_override_
push 0x1003f3cc
lea eax, [ebp - 0x90]
push 0x80
push eax
call fcn.10020ac8
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x22c], eax
cmp eax, 0xffffffff
je 0x10017c06
or ebx, 0xffffffff
nop
lea eax, [ebp - 0x1ec]
push eax
push str.dsfix_tex_override_
push 0x1003f3d0
lea eax, [ebp - 0x90]
push 0x80
push eax
call fcn.10020ac8
lea eax, [ebp - 0x90]
push 0x1003f3d8
push eax
call fcn.10022ac2
add esp, 0x1c
mov dword [ebp - 0x228], eax
test eax, eax
je 0x10017beb
cmp byte [ebp - 0x1ec], 0
mov dword [ebp - 0xac], 0xf
mov dword [ebp - 0xb0], 0
mov byte [ebp - 0xc0], 0
jne 0x1001776c
xor ecx, ecx
jmp 0x1001777e
lea ecx, [ebp - 0x1ec]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017775
sub ecx, edx
push ecx
lea eax, [ebp - 0x1ec]
push eax
lea ecx, [ebp - 0xc0]
call fcn.10002550
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 4], 0
mov byte [ebp - 0x21c], 0x2e
cmp ecx, 1
jb 0x10017803
mov edi, dword [ebp - 0xac]
dec ecx
cmp ecx, 0xffffffff
cmova ecx, ebx
mov ebx, dword [ebp - 0xc0]
cmp edi, 0x10
lea esi, [ebp - 0xc0]
cmovae esi, ebx
add esi, ecx
jmp 0x100177d0
cmp byte [esi], 0x2e
jne 0x100177e1
mov al, byte [esi]
lea ecx, [ebp - 0x21c]
cmp al, byte [ecx]
je 0x100177f3
lea ecx, [ebp - 0xc0]
call fcn.100023e0
cmp esi, eax
je 0x10017803
dec esi
jmp 0x100177d0
cmp edi, 0x10
lea eax, [ebp - 0xc0]
cmovae eax, ebx
sub esi, eax
jmp 0x10017806
or esi, 0xffffffff
push 0
push 0x1003e600
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
call fcn.10002550
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x10017928
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xc0]
call fcn.10019aa0
mov edi, eax
lea eax, [ebp - 0xa8]
cmp eax, edi
je 0x100178e7
cmp dword [ebp - 0x94], 0x10
jb 0x1001787c
push dword [ebp - 0xa8]
call fcn.1001f75f
add esp, 4
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
cmp dword [edi + 0x14], 0x10
jae 0x100178b6
mov eax, dword [edi + 0x10]
inc eax
je 0x100178c4
push eax
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.1001f8a0
add esp, 0xc
jmp 0x100178c4
mov eax, dword [edi]
mov dword [ebp - 0xa8], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x98], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x94], eax
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [ebp - 0xc4], 0x10
jb 0x100178fe
push dword [ebp - 0xd8]
call fcn.1001f75f
add esp, 4
cmp dword [ebp - 0xb0], esi
jb 0x10017c22
cmp dword [ebp - 0xac], 0x10
lea eax, [ebp - 0xc0]
cmovae eax, dword [ebp - 0xc0]
mov dword [ebp - 0xb0], esi
mov byte [eax + esi], 0
mov edi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x98]
cmp edi, 0x10
lea ecx, [ebp - 0xa8]
cmovae ecx, ebx
mov eax, 4
cmp esi, eax
cmovb eax, esi
push eax
push str..bmp
push ecx
call fcn.10009ae0
add esp, 0xc
test eax, eax
jne 0x10017977
cmp esi, 4
jae 0x1001796d
or eax, 0xffffffff
jmp 0x10017975
xor eax, eax
cmp esi, 4
setne al
test eax, eax
sete al
test al, al
jne 0x10017b02
cmp edi, 0x10
lea ecx, [ebp - 0xa8]
cmovae ecx, ebx
mov eax, 4
cmp esi, eax
cmovb eax, esi
push eax
push str..dds
push ecx
call fcn.10009ae0
add esp, 0xc
test eax, eax
jne 0x100179bf
cmp esi, 4
jae 0x100179b5
or eax, 0xffffffff
jmp 0x100179bd
xor eax, eax
cmp esi, 4
setne al
test eax, eax
sete al
test al, al
jne 0x10017b02
cmp edi, 0x10
lea ecx, [ebp - 0xa8]
cmovae ecx, ebx
mov eax, 4
cmp esi, eax
cmovb eax, esi
push eax
push str..dib
push ecx
call fcn.10009ae0
add esp, 0xc
test eax, eax
jne 0x10017a07
cmp esi, 4
jae 0x100179fd
or eax, 0xffffffff
jmp 0x10017a05
xor eax, eax
cmp esi, 4
setne al
test eax, eax
sete al
test al, al
jne 0x10017b02
cmp edi, 0x10
lea ecx, [ebp - 0xa8]
cmovae ecx, ebx
mov eax, 4
cmp esi, eax
cmovb eax, esi
push eax
push str..hdr
push ecx
call fcn.10009ae0
add esp, 0xc
test eax, eax
jne 0x10017a4f
cmp esi, 4
jae 0x10017a45
or eax, 0xffffffff
jmp 0x10017a4d
xor eax, eax
cmp esi, 4
setne al
test eax, eax
sete al
test al, al
jne 0x10017b02
cmp edi, 0x10
lea ecx, [ebp - 0xa8]
cmovae ecx, ebx
mov eax, 4
cmp esi, eax
cmovb eax, esi
push eax
push str..jpg
push ecx
call fcn.10009ae0
add esp, 0xc
test eax, eax
jne 0x10017a97
cmp esi, 4
jae 0x10017a8d
or eax, 0xffffffff
jmp 0x10017a95
xor eax, eax
cmp esi, 4
setne al
test eax, eax
sete al
test al, al
jne 0x10017b02
lea eax, [ebp - 0xa8]
push str..pfm
push eax
call fcn.100152f0
add esp, 8
test al, al
jne 0x10017b02
lea eax, [ebp - 0xa8]
push str..png
push eax
call fcn.100152f0
add esp, 8
test al, al
jne 0x10017b02
lea eax, [ebp - 0xa8]
push str..ppm
push eax
call fcn.100152f0
add esp, 8
test al, al
jne 0x10017b02
lea eax, [ebp - 0xa8]
push str..tga
push eax
call fcn.100152f0
add esp, 8
test al, al
je 0x10017b98
mov edi, dword [ebp - 0x1f8]
push edi
call fcn.1001eeae
mov ebx, dword [ebp - 0x228]
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.10022c9a
push ebx
call fcn.10020fd9
cmp dword [ebp - 0xac], 0x10
lea ecx, [ebp - 0x224]
push ecx
lea eax, [ebp - 0xc0]
cmovae eax, dword [ebp - 0xc0]
push str._08x
push eax
call fcn.10022d46
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x234], esi
mov esi, dword [ebp - 0x220]
add esp, 0x24
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x238]
push eax
lea ecx, [esi + 0x14c]
mov dword [ebp - 0x230], edi
call fcn.10015330
push eax
add eax, 0x10
push eax
push 0
lea eax, [ebp - 0x240]
push eax
lea ecx, [esi + 0x14c]
call fcn.100159b0
cmp dword [ebp - 0x94], 0x10
jb 0x10017baf
push dword [ebp - 0xa8]
call fcn.1001f75f
add esp, 4
cmp dword [ebp - 0xac], 0x10
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
mov dword [ebp - 4], 0xffffffff
jb 0x10017be8
push dword [ebp - 0xc0]
call fcn.1001f75f
add esp, 4
or ebx, 0xffffffff
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10017700
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.1001fee4
mov esp, ebp
pop ebp
ret
push str.invalid_string_position
call fcn.1001ed78
int3