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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1003c
call fcn.004b79a0
push ebx
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 0x42cb80
cmp word [eax], 0
je 0x42cb80
cmp byte [0x4e5a8f], 0
jne 0x42c8f6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42c8f6
cmp dword [0x4e5a54], 0
jne 0x42c8f6
push dword [esi + 0xae0]
lea eax, [esp + 0x1c]
push str.Script_file_not_found:_n_s
push 0x8018
push eax
call fcn.0049c650
push 0
push 0
xorps xmm3, xmm3
lea ecx, [esp + 0x30]
mov edx, 0x10
call fcn.004a25e0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x14
call fcn.00499b10
mov dword [esp + 0x10], eax
test eax, eax
je 0x42c92c
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x4b9c40
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
jmp 0x42c92e
xor eax, eax
mov dword [esi + 0x650], eax
test eax, eax
je 0x42cb80
cmp byte [0x4e5a8f], 0
mov eax, 0x4d2f6c
jne 0x42c950
mov eax, dword [esi + 0xae0]
push 0
push 0
push eax
mov ecx, esi
call fcn.0042d0a0
cmp eax, 1
jne 0x42cb80
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.00433630
test eax, eax
je 0x42cb80
mov eax, dword [esi + 0x614]
mov ecx, esi
mov dword [eax + 0xc], 1
push dword [esi + 0x610]
call fcn.0043b890
test eax, eax
je 0x42cb80
push dword [esi + 0x610]
mov ecx, esi
call fcn.0043b9a0
cmp dword [esi + 0x618], 0
je 0x42c9de
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 0x42ca4a
nop dword [eax + eax]
mov eax, dword [esi + 0x628]
mov edi, dword [eax + ebx*4]
cmp byte [edi + 0x51], 0
jne 0x42ca41
test byte [edi + 0x50], 4
jne 0x42ca41
lea eax, [edi + 0x34]
mov ecx, esi
push eax
push dword [edi + 0x20]
push edi
call fcn.00448680
lea eax, [edi + 0x40]
mov ecx, esi
push eax
push dword [edi + 0x28]
push edi
call fcn.00448680
lea eax, [edi + 0x3c]
mov ecx, esi
push eax
push dword [edi + 0x24]
push edi
call fcn.00448680
lea eax, [edi + 0x48]
mov ecx, esi
push eax
push dword [edi + 0x2c]
push edi
call fcn.00448680
inc ebx
cmp ebx, dword [esi + 0x62c]
jl 0x42c9f0
cmp dword [esi + 0x240], 0
je 0x42ca78
mov ecx, esi
call fcn.004380c0
test eax, eax
je 0x42cb80
mov eax, dword [esi + 0x240]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi + 0x240], 0
cmp dword [0x4e63b0], 0
je 0x42ca88
mov ecx, esi
call fcn.004487d0
mov ecx, dword [esi + 0xb00]
test ecx, ecx
je 0x42caa1
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x4e5a1c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [esi + 0x250]
mov ecx, esi
push 0
push 0
push 0
push 0x68
call fcn.00433630
test eax, eax
je 0x42cb80
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.00433630
test eax, eax
je 0x42cb80
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.0043ba20
test eax, eax
je 0x42cb80
push dword [esi + 0x610]
mov ecx, esi
call fcn.0043be60
test eax, eax
je 0x42cb80
push 3
push 0
push str.ErrorLevel
mov ecx, esi
call fcn.0043abe0
mov dword [0x4e59cc], eax
test eax, eax
je 0x42cb80
push 1
push 0
push 0xffffffffffffffff
push 0x4b9d08
mov ecx, eax
call fcn.004a0a20
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x10]
call fcn.00427280
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret