Function at 0x10008ef0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x100176c0
sub esp, 0x1c
lea edx, [eax + 2]
jmp 0x10008f00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10008f00
sub eax, edx
sar eax, 1
je 0x10009204
push 0x100176c0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10009204
test al, 0x10
jne 0x10009204
push esi
xor esi, esi
cmp dword [0x10028ca4], esi
je 0x100091fd
call fcn.10009210
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x14]
push eax
push 0x100176c0
mov dword [esp + 0x1c], 0xb
mov byte [esp + 0x22], 0xff
mov dword [esp + 0x23], esi
call dword [0x100290a8]
add esp, 8
test eax, eax
je 0x100091fd
mov ecx, 0xffff
cmp word [esp + 0x18], cx
je 0x100091fd
mov edx, dword [esp + 0x18]
shr edx, 8
cmp dl, 2
jb 0x100091fd
mov al, byte [esp + 0x1a]
cmp al, 3
jb 0x100091fd
cmp al, 0xff
je 0x100091fd
push ebx
push ebp
movzx ebp, al
mov bl, al
lea eax, [ebp*8]
push edi
push eax
mov byte [esp + 0x17], bl
mov dword [esp + 0x18], ebp
call fcn.1000b761
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
cmp edi, esi
je 0x100090ac
test bl, bl
jbe 0x10009001
mov ecx, ebp
lea esp, [esp]
mov dword [eax], 0xffffffff
mov dword [eax + 4], esi
add eax, 8
sub ecx, 1
jne 0x10008ff0
lea ecx, [esp + 0x20]
push ecx
push 0x100176c0
mov dword [esp + 0x2f], edi
call dword [0x100290a8]
add esp, 8
test eax, eax
je 0x100090a3
xor al, al
test bl, bl
jbe 0x1000903b
movzx edx, al
mov ecx, dword [edi + edx*8]
cmp ecx, esi
je 0x100090a3
cmp ecx, 0xffffffff
je 0x100090a3
inc al
cmp al, bl
jb 0x10009026
xor bl, bl
cmp byte [esp + 0x13], bl
jbe 0x10009066
movzx eax, bl
mov ecx, dword [edi + eax*8]
lea esi, [edi + eax*8]
push ecx
call fcn.1000b761
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x100090b6
inc bl
cmp bl, byte [esp + 0x13]
jb 0x10009043
xor esi, esi
lea eax, [esp + 0x20]
push eax
push 0x100176c0
call dword [0x100290a8]
add esp, 8
test eax, eax
jne 0x100090ef
cmp byte [esp + 0x13], al
jbe 0x100090a3
lea esi, [edi + 4]
mov edi, ebp
mov eax, dword [esi]
test eax, eax
je 0x10009097
push eax
call fcn.1000b82b
add esp, 4
add esi, 8
sub edi, 1
jne 0x10009088
mov edi, dword [esp + 0x18]
push edi
call fcn.1000b82b
add esp, 4
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x1c
ret
xor bl, bl
jmp 0x100090c0
movzx edx, bl
mov eax, dword [edi + edx*8 + 4]
test eax, eax
je 0x100090a3
push eax
call fcn.1000b82b
inc bl
add esp, 4
cmp bl, byte [esp + 0x13]
jb 0x100090c0
push edi
call fcn.1000b82b
add esp, 4
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x1c
ret
xor ebp, ebp
cmp byte [esp + 0x13], 0
jbe 0x1000911a
mov edx, dword [esp + 0x14]
mov eax, edi
mov edi, edi
mov ecx, dword [eax]
mov esi, dword [eax + 4]
add ebp, ecx
cmp word [esi + ecx - 2], 0
je 0x10009112
add ebp, 2
add eax, 8
sub edx, 1
jne 0x10009100
push ebp
call fcn.1000b761
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x1000915c
cmp byte [esp + 0x13], al
jbe 0x100090a3
lea esi, [edi + 4]
mov edi, dword [esp + 0x14]
mov edi, edi
mov eax, dword [esi]
test eax, eax
je 0x1000914f
push eax
call fcn.1000b82b
add esp, 4
add esi, 8
sub edi, 1
jne 0x10009140
jmp 0x1000909f
push ebp
push 0
push ebx
call fcn.1000f020
add esp, 0xc
cmp byte [esp + 0x13], 0
mov esi, ebx
jbe 0x100091cf
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
push ecx
push edx
push esi
call fcn.100107c0
add esi, dword [edi]
add esp, 0xc
cmp word [esi - 2], 0
je 0x10009196
xor eax, eax
mov word [esi], ax
add esi, 2
add edi, 8
sub ebx, 1
jne 0x10009175
cmp byte [esp + 0x13], 0
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jbe 0x100091cf
lea esi, [edi + 4]
mov edi, dword [esp + 0x14]
mov eax, dword [esi]
test eax, eax
je 0x100091c3
push eax
call fcn.1000b82b
add esp, 4
add esi, 8
sub edi, 1
jne 0x100091b4
mov edi, dword [esp + 0x18]
push edi
call fcn.1000b82b
mov cx, word [esp + 0x28]
add esp, 4
pop edi
mov dword [0x100290b4], ebp
pop ebp
mov dword [0x100290b8], ebx
pop ebx
mov word [0x100290bc], cx
mov eax, 1
pop esi
add esp, 0x1c
ret
xor eax, eax
pop esi
add esp, 0x1c
ret
xor eax, eax
add esp, 0x1c
ret