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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x878], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 0x87c], ecx
mov dword [ebp - 0x874], eax
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov ebx, 0x1001770
cmp eax, esi
je 0x10108b4
test byte [eax + 0x1c], 4
je 0x10108b4
cmp byte [eax + 0x19], 5
jb 0x10108b4
push ebx
push 0xc7
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov ecx, dword [ebp - 0x87c]
push 0
push 0
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x878]
call fcn.0100fb12
mov dword [ebp - 0x870], eax
test eax, eax
je 0x1010915
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1010ba1
test byte [eax + 0x1c], 4
je 0x1010ba1
cmp byte [eax + 0x19], 2
jb 0x1010ba1
push dword [ebp - 0x870]
push ebx
push 0xc8
jmp 0x1010ae4
cmp dword [ebp - 0x878], 0
je 0x1010a38
mov ecx, dword [ebp - 0x87c]
push edi
lea eax, [ebp - 0x61c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x878]
call fcn.0100ec6f
mov dword [ebp - 0x870], eax
test eax, eax
je 0x101097d
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1010ba1
test byte [eax + 0x1c], 4
je 0x1010ba1
cmp byte [eax + 0x19], 2
jb 0x1010ba1
push dword [ebp - 0x870]
push ebx
push 0xc9
jmp 0x1010ae4
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x10019a0
push dword [ebp + 0x1c]
push dword [ebp - 0x874]
call fcn.01009acc
mov edi, eax
add esp, 0x14
test edi, edi
jge 0x10109d4
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1010b82
test byte [eax + 0x1c], 4
je 0x1010b82
cmp byte [eax + 0x19], 2
jb 0x1010b82
push edi
push ebx
push 0xca
jmp 0x1010b77
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1010ba1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x870], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1010ba1
test byte [eax + 0x1c], 4
je 0x1010ba1
cmp byte [eax + 0x19], 2
jb 0x1010ba1
push dword [ebp - 0x870]
push dword [ebp - 0x874]
push ebx
push 0xcb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x1010ba1
push 0x10019cc
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push dword [ebp + 8]
push eax
push 0x1001a78
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.01009acc
mov edi, eax
add esp, 0x1c
test edi, edi
jge 0x1010a92
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1010b82
test byte [eax + 0x1c], 4
je 0x1010b82
cmp byte [eax + 0x19], 2
jb 0x1010b82
push edi
push ebx
push 0xcc
jmp 0x1010b77
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x1010af4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x870], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1010ba1
test byte [eax + 0x1c], 4
je 0x1010ba1
cmp byte [eax + 0x19], 2
jb 0x1010ba1
push dword [ebp - 0x870]
push ebx
push 0xcd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x1010ba1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x1010b31
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1010b31
test byte [eax + 0x1c], 4
je 0x1010b31
cmp byte [eax + 0x19], 3
jb 0x1010b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push ebx
push 0xce
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x10019a0
push dword [ebp + 0x1c]
push dword [ebp - 0x874]
call fcn.01009acc
mov edi, eax
add esp, 0x14
test edi, edi
jge 0x1010ba1
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1010b82
test byte [eax + 0x1c], 4
je 0x1010b82
cmp byte [eax + 0x19], 2
jb 0x1010b82
push edi
push ebx
push 0xcf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, edi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x1010b9b
movzx eax, di
mov dword [ebp - 0x870], eax
jmp 0x1010ba1
mov dword [ebp - 0x870], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x870]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 0x18