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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xadc]
mov byte [esi + 0x250], 1
mov word [esi + 0xaf4], 0
test eax, eax
je 0x42b723
cmp word [eax], 0
je 0x42b723
cmp byte [0x4e4c3a], 0
jne 0x42b4c2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42b4c2
cmp dword [0x4e4c00], 0
jne 0x42b4c2
push dword [esi + 0xadc]
lea eax, [esp + 0x1c]
push str.Script_file_not_found:_n_s
push 0x204
push eax
call fcn.0049c210
push 0
push 0
xorps xmm3, xmm3
lea ecx, [esp + 0x30]
mov edx, 0x10
call fcn.004a1c80
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x14
call fcn.00499640
mov dword [esp + 0x10], eax
test eax, eax
je 0x42b4f8
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x4b8c14
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
jmp 0x42b4fa
xor eax, eax
mov dword [esi + 0x64c], eax
test eax, eax
je 0x42b723
cmp byte [0x4e4c3a], 0
mov eax, 0x4d1c30
jne 0x42b51c
mov eax, dword [esi + 0xadc]
push 0
push 0
push eax
mov ecx, esi
call fcn.0042d6b0
cmp eax, 1
jne 0x42b723
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.00433700
test eax, eax
je 0x42b723
push dword [esi + 0x60c]
mov ecx, esi
call fcn.0043bc70
test eax, eax
je 0x42b723
push dword [esi + 0x60c]
mov ecx, esi
call fcn.0043bd80
cmp dword [esi + 0x614], 0
je 0x42b59d
mov ecx, dword [esi + 0x618]
mov eax, dword [esi + 0x60c]
mov dword [ecx + 0x14], eax
mov ecx, dword [esi + 0x60c]
mov eax, dword [esi + 0x618]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x614]
mov dword [esi + 0x60c], eax
xor ebx, ebx
cmp dword [esi + 0x628], ebx
jle 0x42b60a
nop word [eax + eax]
mov eax, dword [esi + 0x624]
mov edi, dword [eax + ebx*4]
cmp byte [edi + 0x51], 0
jne 0x42b601
test byte [edi + 0x50], 4
jne 0x42b601
lea eax, [edi + 0x34]
mov ecx, esi
push eax
push dword [edi + 0x20]
push edi
call fcn.004482b0
lea eax, [edi + 0x40]
mov ecx, esi
push eax
push dword [edi + 0x28]
push edi
call fcn.004482b0
lea eax, [edi + 0x3c]
mov ecx, esi
push eax
push dword [edi + 0x24]
push edi
call fcn.004482b0
lea eax, [edi + 0x48]
mov ecx, esi
push eax
push dword [edi + 0x2c]
push edi
call fcn.004482b0
inc ebx
cmp ebx, dword [esi + 0x628]
jl 0x42b5b0
cmp dword [esi + 0x23c], 0
je 0x42b638
mov ecx, esi
call fcn.00438410
test eax, eax
je 0x42b723
mov eax, dword [esi + 0x23c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi + 0x23c], 0
cmp dword [0x4e5548], 0
je 0x42b648
mov ecx, esi
call fcn.00448400
mov ecx, dword [esi + 0xaf8]
test ecx, ecx
je 0x42b661
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 [0x4e4bc8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [esi + 0x24c]
mov ecx, esi
push 0
push 0
push 0
push 0x68
call fcn.00433700
test eax, eax
je 0x42b723
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.00433700
test eax, eax
je 0x42b723
mov ecx, dword [esi + 0x64c]
mov eax, dword [esi + 0x610]
push 0
push 0
mov dword [ecx + 8], eax
mov ecx, esi
push 0
push dword [esi + 0x60c]
call fcn.0043be00
test eax, eax
je 0x42b723
push dword [esi + 0x60c]
mov ecx, esi
call fcn.0043c110
test eax, eax
je 0x42b723
push 3
push 0
push str.ErrorLevel
mov ecx, esi
call fcn.0043afc0
mov dword [0x4e4b80], eax
test eax, eax
je 0x42b723
push 1
push 0
push 0xffffffffffffffff
push 0x4b8cc8
mov ecx, eax
call fcn.004a0110
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x10]
call fcn.00425e10
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