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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov ecx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call fcn.10028980
push edi
push 0x10000080
push 3
push edi
mov esi, eax
push edi
push SysReAllocString
cmp esi, edi
je 0x1003a8a4
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call fcn.100b3828
add esp, 4
jmp 0x1003a8ad
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1003a8be
mov eax, 0xe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], edi
lea edi, [ebp - 8]
lea esi, [ebp - 0x2c]
call fcn.10029840
test eax, eax
jne 0x1003aa98
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003aa81
cmp dword [ebp - 0x1c], eax
jl 0x1003aa6a
mov eax, dword [ebp - 0x20]
jg 0x1003a907
test eax, eax
je 0x1003aa6a
push 1
push eax
mov dword [ebp - 0x14], 0
call fcn.1001a0a0
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1003a92c
mov dword [ebp - 4], 7
jmp 0x1003aa81
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 8]
push ecx
call eax
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003aa71
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], eax
jl 0x1003aa6a
jg 0x1003a961
cmp dword [ebp - 0x20], eax
jbe 0x1003aa6a
mov ecx, edi
call fcn.10028980
mov esi, eax
test esi, esi
je 0x1003a988
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call fcn.100b3828
add esp, 4
jmp 0x1003a997
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x1003aa38
lea ecx, [ebp - 0xc]
push ecx
mov eax, edi
mov dword [ebp - 0xc], 0
call fcn.10028e20
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003aa71
mov ecx, dword [ebp - 0xc]
lea ebx, [ebp - 0x14]
call fcn.10039c10
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], esi
test eax, eax
je 0x1003a9e3
mov edx, dword [eax]
mov ecx, dword [edx]
lea eax, [ebp - 0xc]
push eax
call ecx
add esp, 4
test esi, esi
jne 0x1003aa71
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1003aa25
mov ecx, dword [ebp + 8]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1003aa17
test dl, dl
je 0x1003aa13
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1003aa17
add eax, 2
add ecx, 2
test dl, dl
jne 0x1003a9f7
xor eax, eax
jmp 0x1003aa1c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1003aa25
lea esi, [eax + 1]
jmp 0x1003aa27
xor esi, esi
test ebx, ebx
je 0x1003aa34
push ebx
call fcn.100b3828
add esp, 4
test esi, esi
jne 0x1003aa71
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003aa40
sub eax, edx
lea edi, [edi + eax + 1]
mov eax, edi
sub eax, dword [ebp - 0x10]
cdq
cmp edx, dword [ebp - 0x1c]
jl 0x1003a961
jg 0x1003aa67
cmp eax, dword [ebp - 0x20]
jb 0x1003a961
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.10028b40
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1003aa81
push eax
call fcn.100b3828
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x1003aa95
mov edx, dword [eax]
mov ecx, dword [edx]
lea eax, [ebp - 8]
push eax
call ecx
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret