Function at 0x42e760
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10040
call fcn.004e88a0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xae0]
mov byte [esi + 0x254], 1
mov word [esi + 0xaf8], 0
test eax, eax
je 0x42eb06
cmp word [eax], 0
je 0x42eb06
cmp byte [0x51eb8b], 0
jne 0x42e7f8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42e7f8
cmp dword [0x51eb44], 0
jne 0x42e7f8
push dword [esi + 0xae0]
lea eax, [esp + 0x24]
push str.Script_file_not_found:_n_s
push 0x8018
push eax
call fcn.004af740
push 0
push 0
xorps xmm3, xmm3
lea ecx, [esp + 0x38]
mov edx, 0x10
call fcn.004b5cd0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x5203c4], 0
jne 0x42e813
call fcn.004ac4d0
mov dword [0x5203c4], eax
test eax, eax
je 0x42eafc
mov edx, dword [0x5203c0]
cmp dword [edx + 8], 0x14
jae 0x42e835
call fcn.004ac4d0
mov edx, dword [0x5203c0]
mov dword [edx + 0xc], eax
test eax, eax
je 0x42eafc
mov ecx, dword [edx + 4]
add dword [edx + 8], 0xffffffec
mov dword [0x5203bc], ecx
lea eax, [ecx + 0x14]
mov dword [edx + 4], eax
test ecx, ecx
je 0x42eafc
cmp byte [0x51eb8b], 0
mov eax, 0x50a9a4
mov dword [ecx], vtable.Label.0
mov dword [ecx + 4], 0x4f03e8
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [esi + 0x650], ecx
jne 0x42e88c
mov eax, dword [esi + 0xae0]
push 0
push 0
push eax
mov ecx, esi
call fcn.0042f000
cmp eax, 1
jne 0x42eb06
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.00435b40
test eax, eax
je 0x42eb06
mov eax, dword [esi + 0x614]
mov ecx, esi
mov dword [eax + 0xc], 1
push dword [esi + 0x610]
call fcn.0043fcc0
test eax, eax
je 0x42eb06
push dword [esi + 0x610]
mov ecx, esi
call fcn.0043fdd0
cmp dword [esi + 0x618], 0
je 0x42e91a
mov ecx, dword [esi + 0x61c]
mov eax, dword [esi + 0x610]
mov dword [ecx + 0x14], eax
mov ecx, dword [esi + 0x610]
mov eax, dword [esi + 0x61c]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x618]
mov dword [esi + 0x610], eax
xor ebx, ebx
cmp dword [esi + 0x62c], ebx
jle 0x42e98a
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esi + 0x628]
mov edi, dword [eax + ebx*4]
cmp byte [edi + 0x51], 0
jne 0x42e981
test byte [edi + 0x50], 4
jne 0x42e981
lea eax, [edi + 0x34]
mov ecx, esi
push eax
push dword [edi + 0x20]
push edi
call fcn.0044e5f0
lea eax, [edi + 0x40]
mov ecx, esi
push eax
push dword [edi + 0x28]
push edi
call fcn.0044e5f0
lea eax, [edi + 0x3c]
mov ecx, esi
push eax
push dword [edi + 0x24]
push edi
call fcn.0044e5f0
lea eax, [edi + 0x48]
mov ecx, esi
push eax
push dword [edi + 0x2c]
push edi
call fcn.0044e5f0
inc ebx
cmp ebx, dword [esi + 0x62c]
jl 0x42e930
cmp dword [esi + 0x240], 0
je 0x42e9b8
mov ecx, esi
call fcn.0043c1d0
test eax, eax
je 0x42eb06
mov eax, dword [esi + 0x240]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi + 0x240], 0
cmp dword [0x51f4ac], 0
je 0x42e9c8
mov ecx, esi
call fcn.0044e740
mov ecx, dword [esi + 0xb00]
test ecx, ecx
je 0x42e9e2
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x51eb0c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [esi + 0x250]
mov ecx, esi
push 0
push 0
push 0
push 0x68
call fcn.00435b40
test eax, eax
je 0x42eb06
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.00435b40
test eax, eax
je 0x42eb06
mov eax, dword [esi + 0x614]
push 0
push 0
push 0
mov eax, dword [eax + 0x10]
mov dword [eax + 0xc], 1
mov eax, dword [esi + 0x614]
mov dword [eax + 0xc], 1
mov ecx, dword [esi + 0x650]
mov eax, dword [esi + 0x614]
mov dword [ecx + 8], eax
mov ecx, esi
push dword [esi + 0x610]
call fcn.0043fe60
test eax, eax
je 0x42eb06
push dword [esi + 0x610]
mov ecx, esi
call fcn.004402a0
test eax, eax
je 0x42eb06
lea eax, [esp + 0x17]
mov ecx, esi
push eax
push 3
lea eax, [esp + 0x20]
push eax
push 0
push str.ErrorLevel
call fcn.0043efd0
test eax, eax
je 0x42eaa3
mov dword [0x51eabc], eax
jmp 0x42eac9
xor eax, eax
mov ecx, esi
cmp byte [esp + 0x17], al
setne al
inc eax
push eax
push dword [esp + 0x1c]
push 0
push str.ErrorLevel
call fcn.0043f510
mov dword [0x51eabc], eax
test eax, eax
je 0x42eb06
push 1
push 0
push 0xffffffffffffffff
push 0x4f04b0
mov ecx, eax
call fcn.004b3e10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x18]
call fcn.00429480
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x650], 0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret