Function at 0x1002e540
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x100f39f6
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10139d00]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
push 0x3ff
xor ebx, ebx
lea eax, [esp + 0x59]
mov esi, ecx
mov edi, edx
push ebx
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
mov byte [esp + 0x60], 0
call fcn.100d4cc0
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1002e5b3
xor eax, eax
jmp 0x1002e8bf
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
cmp eax, ebx
je 0x1002e5df
cmp dword [0x101e23bc], 0x10
mov ecx, dword [0x101e23a8]
jae 0x1002e5d2
mov ecx, 0x101e23a8
push eax
call fcn.1002ec80
add esp, 4
test eax, eax
je 0x1002e5ac
mov eax, esi
mov edx, 0x400
lea ecx, [esp + 0x54]
call fcn.10032b60
cmp eax, ebx
jl 0x1002e5fe
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea edx, [esp + 0x20]
push edx
call fcn.1002a470
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x464], ebx
call fcn.1002a470
mov byte [esp + 0x460], 1
mov ecx, dword [0x101e23ec]
sub ecx, dword [0x101e23e8]
mov eax, 0x4468c067
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x1002e849
cmp esi, eax
jb 0x1002e64f
call fcn.100d13c5
mov edx, dword [0x101e23e8]
lea ecx, [esp + 0x54]
push ecx
lea ecx, [ebx + edx + 0x268]
call fcn.1002eee0
add esp, 4
cmp eax, 1
jne 0x1002e799
mov ecx, dword [0x101e23ec]
mov edi, dword [0x101e23e8]
mov edx, ecx
sub edx, edi
mov eax, 0x4468c067
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1002e6a8
call fcn.100d13c5
mov ecx, dword [0x101e23ec]
mov edi, dword [0x101e23e8]
lea eax, [ebx + edi + 0x36c]
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002e6b2
sub ecx, edi
sub eax, ebp
mov eax, 0x4468c067
je 0x1002e7ec
imul ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x1002e6e3
call fcn.100d13c5
mov edi, dword [0x101e23e8]
mov edx, dword [esp + 0x1c]
lea edi, [ebx + edi + 0x36c]
push edx
call fcn.1002f1e0
add esp, 4
test eax, eax
je 0x1002e817
mov ecx, dword [0x101e23ec]
sub ecx, dword [0x101e23e8]
mov eax, 0x4468c067
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1002e725
call fcn.100d13c5
mov edi, dword [esp + 0x18]
mov eax, esi
imul eax, eax, 0x77c
add eax, dword [0x101e23e8]
call fcn.1002f8d0
mov eax, dword [esp + 0x44]
xor esi, esi
cmp eax, esi
je 0x1002e74f
push eax
call fcn.100d072d
add esp, 4
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call fcn.100d072d
mov eax, dword [esp + 0x30]
add esp, 4
cmp eax, esi
je 0x1002e779
push eax
call fcn.100d072d
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.100d072d
mov eax, 1
jmp 0x1002e8bc
cmp eax, 2
jne 0x1002e817
mov ecx, dword [0x101e23ec]
mov edi, dword [0x101e23e8]
mov edx, ecx
sub edx, edi
mov eax, 0x4468c067
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1002e7d4
call fcn.100d13c5
mov ecx, dword [0x101e23ec]
mov edi, dword [0x101e23e8]
lea eax, [ebx + edi + 0x36c]
lea ebp, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002e7e0
jmp 0x1002e6b9
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x1002e807
call fcn.100d13c5
mov edi, dword [0x101e23e8]
mov eax, dword [esp + 0x18]
lea ecx, [ebx + edi]
push ecx
call fcn.1002f2b0
add esp, 4
mov ecx, dword [0x101e23ec]
sub ecx, dword [0x101e23e8]
mov eax, 0x4468c067
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebx, 0x77c
cmp esi, eax
jb 0x1002e64f
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x4468c067
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, dword [esp + 0x44]
neg esi
sbb esi, esi
and esi, 2
cmp eax, ebx
je 0x1002e87a
push eax
call fcn.100d072d
add esp, 4
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.100d072d
mov eax, dword [esp + 0x30]
add esp, 4
cmp eax, ebx
je 0x1002e8a4
push eax
call fcn.100d072d
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.100d072d
mov eax, esi
add esp, 4
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.100d0738
add esp, 0x450
ret