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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x552064]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x55312c]
push ebx
push esi
mov esi, edx
mov ebx, ecx
cdq
xor ecx, ecx
sub eax, edx
mov dword [ebp - 0x6c], ebx
sar eax, 1
push edi
sub eax, 0xa0
push 0
test eax, eax
push 0x40
cmovle eax, ecx
mov ecx, ebx
push 0x140
push 0
mov edx, eax
call fcn.004c5460
mov dword [ebx + 0x40], 1
add esp, 0x10
mov eax, dword [0x564228]
test eax, eax
je 0x42e2ba
mov eax, dword [eax - 4]
lea eax, [eax + eax*2]
mov dword [ebx + 0x75], esi
lea eax, [eax*2 + 0xf]
mov dword [ebx + 0x38], eax
call fcn.0048d260
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], 0
mov ecx, esi
mov byte [0x56388c], 1
call fcn.0048faa0
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x42e320
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42e305
test al, 0x10
jne 0x42e305
mov ecx, esi
call fcn.0048f530
mov eax, dword [esi - 8]
add esi, 0xfffffff8
cmp eax, 0xffffffff
je 0x42e320
dec eax
mov dword [esi], eax
test eax, eax
jg 0x42e320
push esi
call fcn.00501c9e
add esp, 4
movsd xmm0, qword [0x563898]
lea eax, [ebp - 0x3c]
comisd xmm0, xmmword [0x545478]
mov dword [ebp - 0x44], 0xffffffff
push dword [ebx + 0x75]
movsd qword [ebx + 0x89], xmm0
xorps xmm0, xmm0
push 0x544894
push eax
seta byte [ebp - 0x49]
movups xmmword [ebp - 0x40], xmm0
call fcn.00418ed0
lea esi, [ebp - 0x3c]
add esp, 0xc
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42e364
mov eax, dword [0x564228]
sub esi, ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x60], eax
test eax, eax
je 0x42e37f
mov eax, dword [eax - 4]
mov ecx, dword [0x553058]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x64], ecx
lea edi, [ecx + eax]
add edi, esi
mov dword [ebp - 0x68], edi
test edi, edi
jg 0x42e39b
xor edi, edi
jmp 0x42e3c0
lea ecx, [edi + 0xc]
and ecx, 0xfffffffc
call fcn.004a2590
mov byte [eax + 8], 0
mov dword [eax + 4], edi
lea edi, [eax + 8]
mov dword [eax], 1
mov eax, dword [ebp - 0x68]
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x60]
push edi
call fcn.004fe1f0
mov eax, dword [ebp - 0x48]
add esp, 0xc
add eax, edi
push dword [ebp - 0x64]
push 0x55305c
push eax
call fcn.004fe1f0
add esp, 0xc
lea eax, [ebp - 0x3c]
push esi
push eax
mov eax, dword [ebp - 0x64]
add eax, edi
add eax, dword [ebp - 0x48]
push eax
call fcn.004fe1f0
add esp, 0xc
cmp byte [ebp + 8], 0
jne 0x42e40c
cmp byte [ebp - 0x49], 0
jne 0x42e40c
mov eax, 3
jmp 0x42e40e
xor eax, eax
mov edx, dword [ebx + 0x10]
mov ecx, dword [0x5645c4]
push eax
push edi
push 8
push 8
call fcn.0048c2c0
add esp, 0x10
cmp dword [ebx + 0x48], 0
jne 0x42e471
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x58], 0xa
test edi, edi
jne 0x42e441
xor eax, eax
jmp 0x42e444
mov eax, dword [edi - 4]
mov ecx, dword [ebx + 8]
lea eax, [eax + eax*2]
lea eax, [eax*2 + 9]
mov dword [ebp - 0x50], 0x17
mov dword [ebp - 0x54], eax
mov edx, 8
lea eax, [ebp - 0x5c]
push eax
push dword [ebx + 0x10]
push 0xa
call fcn.0041f610
add esp, 0xc
test edi, edi
je 0x42e490
mov eax, dword [edi - 8]
add edi, 0xfffffff8
cmp eax, 0xffffffff
je 0x42e490
dec eax
mov dword [edi], eax
test eax, eax
jg 0x42e490
push edi
call fcn.00501c9e
add esp, 4
mov eax, 4
lea edi, [ebx + 0x79]
mov dword [ebp - 0x48], eax
nop dword [eax + eax]
mov esi, dword [edi]
mov ecx, dword [esi]
test ecx, ecx
je 0x42e4c1
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 8]
shl eax, 2
push eax
push 0
push ecx
call fcn.004fdf60
mov eax, dword [ebp - 0x48]
add esp, 0xc
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42e4e1
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 8]
shl eax, 2
push eax
push 0
push ecx
call fcn.004fdf60
mov eax, dword [ebp - 0x48]
add esp, 0xc
add edi, 4
sub eax, 1
mov dword [ebp - 0x48], eax
jne 0x42e4a0
cmp byte [ebp - 0x49], 0
je 0x42e7fd
mov esi, dword [0x5638a0]
mov edx, dword [ebx + 0x10]
mov ecx, dword [0x5645c4]
push 0
push esi
push 0x18
push 8
call fcn.0048c2c0
add esp, 0x10
cmp dword [ebx + 0x48], 0
jne 0x42e560
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x58], 0x1a
test esi, esi
jne 0x42e530
xor eax, eax
jmp 0x42e533
mov eax, dword [esi - 4]
mov ecx, dword [ebx + 8]
lea eax, [eax + eax*2]
lea eax, [eax*2 + 9]
mov dword [ebp - 0x50], 0x27
mov dword [ebp - 0x54], eax
mov edx, 8
lea eax, [ebp - 0x5c]
push eax
push dword [ebx + 0x10]
push 0x1a
call fcn.0041f610
add esp, 0xc
mov esi, dword [0x5641e8]
mov edx, dword [ebx + 0x10]
mov ecx, dword [0x5645c4]
push 1
push esi
push 0x28
push 8
call fcn.0048c2c0
add esp, 0x10
cmp dword [ebx + 0x48], 0
jne 0x42e5ca
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x58], 0x2a
test esi, esi
jne 0x42e59a
xor eax, eax
jmp 0x42e59d
mov eax, dword [esi - 4]
mov ecx, dword [ebx + 8]
lea eax, [eax + eax*2]
lea eax, [eax*2 + 9]
mov dword [ebp - 0x50], 0x37
mov dword [ebp - 0x54], eax
mov edx, 8
lea eax, [ebp - 0x5c]
push eax
push dword [ebx + 0x10]
push 0x2a
call fcn.0041f610
add esp, 0xc
push dword [0x5638a4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0xffffffff
xorps xmm0, xmm0
push 0x544894
push eax
movups xmmword [ebp - 0x18], xmm0
call fcn.00418ed0
lea ecx, [ebp - 0x14]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42e5f5
push 0
lea eax, [ebp - 0x14]
sub ecx, edx
mov edx, dword [ebx + 0x10]
push eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x5645c4]
push 0x28
push 0x14
call fcn.0048c2c0
add esp, 0x10
cmp dword [ebx + 0x48], 0
jne 0x42e660
mov eax, dword [ebp - 0x18]
mov edx, 0x14
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x5c], 0x14
mov dword [ebp - 0x58], 0x2a
lea eax, [eax + eax*2]
mov dword [ebp - 0x50], 0x37
lea eax, [eax*2 + 0x15]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebx + 0x10]
push 0x2a
call fcn.0041f610
add esp, 0xc
mov esi, dword [0x5641ec]
mov edx, dword [ebx + 0x10]
mov ecx, dword [0x5645c4]
push 0
push esi
push 0x28
push 0x32
call fcn.0048c2c0
add esp, 0x10
cmp dword [ebx + 0x48], 0
jne 0x42e6ca
mov dword [ebp - 0x5c], 0x32
mov dword [ebp - 0x58], 0x2a
test esi, esi
jne 0x42e69a
xor eax, eax
jmp 0x42e69d
mov eax, dword [esi - 4]
mov ecx, dword [ebx + 8]
lea eax, [eax + eax*2]
lea eax, [eax*2 + 0x33]
mov dword [ebp - 0x50], 0x37
mov dword [ebp - 0x54], eax
mov edx, 0x32
lea eax, [ebp - 0x5c]
push eax
push dword [ebx + 0x10]
push 0x2a
call fcn.0041f610
add esp, 0xc
push dword [0x5638a8]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0xffffffff
xorps xmm0, xmm0
push 0x544890
push eax
movups xmmword [ebp - 0x2c], xmm0
call fcn.00418ed0
lea ecx, [ebp - 0x28]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42e6f5
push 0
lea eax, [ebp - 0x28]
sub ecx, edx
mov edx, dword [ebx + 0x10]
push eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [0x5645c4]
push 0x28
push 0x3e
call fcn.0048c2c0
add esp, 0x10
cmp dword [ebx + 0x48], 0
jne 0x42e760
mov eax, dword [ebp - 0x2c]
mov edx, 0x3e
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x5c], 0x3e
mov dword [ebp - 0x58], 0x2a
lea eax, [eax + eax*2]
mov dword [ebp - 0x50], 0x37
lea eax, [eax*2 + 0x3f]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebx + 0x10]
push 0x2a
call fcn.0041f610
add esp, 0xc
xor ebx, ebx
cmp ebx, 3
ja case.default.0x42e767
jmp dword [ebx*4 + 0x42e810]
mov eax, 0x5638ac
jmp 0x42e78c
mov eax, 0x5638b4
jmp 0x42e78c
mov eax, 0x5638bc
jmp 0x42e78c
mov eax, 0x5638c4
jmp 0x42e78c
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [eax + 4]
mov ecx, eax
cdq
and ecx, 3
and edx, 3
add eax, edx
sar eax, 2
lea edi, [ecx + ecx*2]
mov ecx, str._FaceSet_
shl edi, 4
lea esi, [eax + eax*2]
mov eax, dword [ebp - 0x48]
shl esi, 4
mov edx, dword [eax]
call fcn.00462a60
mov dword [ebp - 0x60], eax
mov edx, eax
mov eax, dword [ebp - 0x6c]
push esi
push edi
mov ecx, dword [eax + ebx*4 + 0x79]
call fcn.0041eef0
mov ecx, dword [ebp - 0x60]
add esp, 8
test ecx, ecx
je 0x42e7f3
mov eax, dword [ecx - 8]
add ecx, 0xfffffff8
cmp eax, 0xffffffff
je 0x42e7f3
dec eax
mov dword [ecx], eax
test eax, eax
jg 0x42e7f3
push ecx
call fcn.00501c9e
add esp, 4
inc ebx
cmp ebx, 4
jl 0x42e762
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e66f2
mov esp, ebp
pop ebp
ret