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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x618]
mov byte [esi + 0x154], 1
mov word [esi + 0x630], 0
test eax, eax
je 0x42e3c6
cmp byte [eax], 0
je 0x42e3c6
cmp byte [0x4fc2ab], 0
jne 0x42e0c3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42e0c3
cmp dword [0x4fb9d4], 0
jne 0x42e0c3
push dword [esi + 0x618]
lea eax, [esp + 0x24]
push str.Script_file_not_found:_n_s
push 0x11c
push eax
call fcn.004aba90
push 0
push 0
xorps xmm3, xmm3
lea ecx, [esp + 0x38]
mov edx, 0x10
call fcn.004b20a0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4fd1cc], 0
jne 0x42e0de
call fcn.004a8b90
mov dword [0x4fd1cc], eax
test eax, eax
je 0x42e3bc
mov edx, dword [0x4fd1c8]
cmp dword [edx + 8], 0x14
jae 0x42e100
call fcn.004a8b90
mov edx, dword [0x4fd1c8]
mov dword [edx + 0xc], eax
test eax, eax
je 0x42e3bc
mov ecx, dword [edx + 4]
add dword [edx + 8], 0xffffffec
mov dword [0x4fd1c4], ecx
lea eax, [ecx + 0x14]
mov dword [edx + 4], eax
test ecx, ecx
je 0x42e3bc
cmp byte [0x4fc2ab], 0
mov eax, 0x4eb984
mov dword [ecx], vtable.Label.0
mov dword [ecx + 4], 0x4e3371
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [esi + 0x390], ecx
jne 0x42e157
mov eax, dword [esi + 0x618]
push 0
push 0
push eax
mov ecx, esi
call fcn.0042e880
cmp eax, 1
jne 0x42e3c6
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.004358e0
test eax, eax
je 0x42e3c6
mov eax, dword [esi + 0x354]
mov ecx, esi
mov dword [eax + 0xc], 1
push dword [esi + 0x350]
call fcn.0043fc70
test eax, eax
je 0x42e3c6
push dword [esi + 0x350]
mov ecx, esi
call fcn.0043fd80
cmp dword [esi + 0x358], 0
je 0x42e1e5
mov ecx, dword [esi + 0x35c]
mov eax, dword [esi + 0x350]
mov dword [ecx + 0x14], eax
mov ecx, dword [esi + 0x350]
mov eax, dword [esi + 0x35c]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x358]
mov dword [esi + 0x350], eax
xor ebx, ebx
cmp dword [esi + 0x36c], ebx
jle 0x42e24a
nop
mov eax, dword [esi + 0x368]
mov edi, dword [eax + ebx*4]
cmp byte [edi + 0x51], 0
jne 0x42e241
test byte [edi + 0x50], 4
jne 0x42e241
lea eax, [edi + 0x34]
mov ecx, esi
push eax
push dword [edi + 0x20]
push edi
call fcn.0044e4c0
lea eax, [edi + 0x40]
mov ecx, esi
push eax
push dword [edi + 0x28]
push edi
call fcn.0044e4c0
lea eax, [edi + 0x3c]
mov ecx, esi
push eax
push dword [edi + 0x24]
push edi
call fcn.0044e4c0
lea eax, [edi + 0x48]
mov ecx, esi
push eax
push dword [edi + 0x2c]
push edi
call fcn.0044e4c0
inc ebx
cmp ebx, dword [esi + 0x36c]
jl 0x42e1f0
cmp dword [esi + 0x140], 0
je 0x42e278
mov ecx, esi
call fcn.0043c0a0
test eax, eax
je 0x42e3c6
mov eax, dword [esi + 0x140]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi + 0x140], 0
cmp dword [0x4fc2b0], 0
je 0x42e288
mov ecx, esi
call fcn.0044e610
mov ecx, dword [esi + 0x638]
test ecx, ecx
je 0x42e2a2
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 [0x4fb99c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
inc dword [esi + 0x150]
mov ecx, esi
push 0
push 0
push 0
push 0x68
call fcn.004358e0
test eax, eax
je 0x42e3c6
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.004358e0
test eax, eax
je 0x42e3c6
mov eax, dword [esi + 0x354]
push 0
push 0
push 0
mov eax, dword [eax + 0x10]
mov dword [eax + 0xc], 1
mov eax, dword [esi + 0x354]
mov dword [eax + 0xc], 1
mov ecx, dword [esi + 0x390]
mov eax, dword [esi + 0x354]
mov dword [ecx + 8], eax
mov ecx, esi
push dword [esi + 0x350]
call fcn.0043fe10
test eax, eax
je 0x42e3c6
push dword [esi + 0x350]
mov ecx, esi
call fcn.00440250
test eax, eax
je 0x42e3c6
lea eax, [esp + 0x17]
mov ecx, esi
push eax
push 3
lea eax, [esp + 0x20]
push eax
push 0
push str.ErrorLevel
call fcn.0043eed0
test eax, eax
je 0x42e363
mov dword [0x4fb94c], eax
jmp 0x42e389
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.0043f410
mov dword [0x4fb94c], eax
test eax, eax
je 0x42e3c6
push 1
push 0
push 0xffffffffffffffff
push 0x4e33f8
mov ecx, eax
call fcn.004b01a0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x18]
call fcn.00428930
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x390], 0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret