Function at 0x1015895
Capabilities:
Check if file exists
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x10260d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov edi, 0x206
xor esi, esi
push edi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
mov dword [ebp - 0x428], esi
call sub.msvcrt.dll_memset
xor eax, eax
push edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0x18
lea edi, [ebp - 0x41c]
mov dword [ebp - 0x420], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x418], esi
cmp ebx, esi
jne 0x101590e
mov edi, 0x80070057
jmp 0x1015986
push esi
push 0x1004960
mov dword [ebx + 0x218], esi
mov dword [ebx + 0x21c], esi
push ebx
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.010150a6
mov edi, eax
test edi, edi
jne 0x1015984
and dword [ebp - 0x424], eax
push eax
jmp 0x1015965
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x101599f
inc dword [ebp - 0x428]
inc dword [ebp - 0x424]
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100aeae
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1015942
test edi, edi
jge 0x101598c
push ebx
call fcn.01012df6
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01010238
leave
ret 4
mov eax, dword [ebp - 0x428]
test eax, eax
jne 0x10159b0
mov edi, 0xc0a20004
jmp 0x1015986
lea ecx, [ebp - 0x418]
push ecx
push 4
pop ecx
mov dword [ebx + 0x218], eax
mul ecx
push edx
push eax
call fcn.0100ab7e
mov edi, eax
test edi, edi
jne 0x1015984
lea esi, [ebx + 0x21c]
push esi
push dword [ebp - 0x418]
call fcn.010137df
mov edi, eax
test edi, edi
jne 0x1015984
cmp dword [ebp - 0x428], eax
jbe 0x10159fe
mov ecx, dword [esi]
or dword [ecx + eax*4], 0xffffffff
inc eax
cmp eax, dword [ebp - 0x428]
jb 0x10159ef
mov eax, dword [ebx + 0x208]
and dword [ebp - 0x424], 0
cmp dword [ebp - 0x428], 0
lea esi, [ebx + 0x238]
mov dword [esi], eax
mov eax, dword [ebx + 0x20c]
mov dword [esi + 4], eax
jbe 0x1015ad6
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100aeae
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1015984
mov edi, dword [ebp - 0x424]
push eax
push eax
push 3
push eax
push 1
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
shl edi, 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebx + 0x21c]
mov edx, dword [ecx]
mov dword [edi + edx], eax
mov eax, dword [ecx]
add eax, edi
cmp dword [eax], 0xffffffff
je 0x1015aff
lea ecx, [ebp - 0x420]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1015aff
push esi
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push dword [esi + 4]
push dword [esi]
call fcn.0100abb0
mov edi, eax
test edi, edi
jne 0x1015984
inc dword [ebp - 0x424]
mov eax, dword [ebp - 0x424]
cmp eax, dword [ebp - 0x428]
jb 0x1015a29
mov eax, dword [esi + 4]
cmp eax, dword [ebx + 0x214]
jb 0x101598c
ja 0x1015af5
mov eax, dword [esi]
cmp eax, dword [ebx + 0x210]
jbe 0x101598c
mov edi, 0x8007139f
jmp 0x1015986
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1015b13
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1015982