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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x134
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov byte [0x4bc640], 1
mov word [0x4bcae4], 0
cmp esi, ebx
jne 0x420bdd
mov esi, dword [0x4bcac8]
cmp dword [0x4bcae0], ebx
jne 0x420c22
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x420c22
push esi
push str.Script_file_not_found:_n_s
mov esi, 0x11c
lea edi, [esp + 0x28]
call fcn.0047fde0
fldz
fstp qword [esp]
mov eax, edi
push ebx
push ebx
push 0x10
push eax
call fcn.00484bc0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4bc3f0], ebx
jne 0x420c38
call fcn.0047ce70
mov dword [0x4bc3f0], eax
cmp eax, ebx
je 0x420c84
mov ecx, dword [0x4bc3f4]
cmp dword [ecx + 8], 0x14
jae 0x420c56
call fcn.0047ce70
mov ecx, dword [0x4bc3f4]
mov dword [ecx + 0xc], eax
cmp eax, ebx
je 0x420c84
mov eax, dword [ecx + 4]
add dword [ecx + 8], 0xffffffec
lea edx, [eax + 0x14]
mov dword [0x4bc3f8], eax
mov dword [ecx + 4], edx
cmp eax, ebx
je 0x420c84
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x4a78b1
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x420c86
xor eax, eax
mov dword [0x4bc840], eax
cmp eax, ebx
je 0x420ecf
cmp dword [0x4bcae0], 2
mov eax, 0x4ab960
je 0x420ca3
mov eax, esi
mov edi, dword [0x4bc3d4]
push ebx
push ebx
push eax
lea eax, [esp + 0x24]
push eax
push 0x4bc4c8
mov dword [esp + 0x2c], ebx
call fcn.00421020
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp esi, 3
jne 0x420cd8
push edi
push ebx
push 0x4bc4c8
call fcn.004213f0
mov esi, eax
mov edi, 1
test ebx, ebx
je 0x420cea
mov edx, dword [ebx]
mov eax, dword [edx]
push edi
mov ecx, ebx
call eax
cmp esi, edi
jne 0x420ecf
push 0
push 0
push 0
push 0x68
push 0x4bc4c8
call fcn.004278b0
test eax, eax
je 0x420ecf
mov ecx, dword [0x4bc4cc]
mov dword [ecx + 0xc], edi
mov eax, dword [0x4bc4c8]
call fcn.0042f030
test eax, eax
je 0x420ecf
mov eax, dword [0x4bc4c8]
call fcn.0042f130
cmp dword [0x4bc4d0], 0
je 0x420d61
mov eax, dword [0x4bc4c8]
mov edx, dword [0x4bc4d4]
mov dword [edx + 0x14], eax
mov ecx, dword [0x4bc4c8]
mov edx, dword [0x4bc4d4]
mov dword [ecx + 0x10], edx
mov eax, dword [0x4bc4d0]
mov dword [0x4bc4c8], eax
xor ebx, ebx
cmp dword [0x4bc4e4], ebx
jle 0x420dab
jmp 0x420d70
mov ecx, dword [0x4bc4e0]
mov edi, dword [ecx + ebx*4]
cmp byte [edi + 0x3d], 0
jne 0x420d9d
test byte [edi + 0x3c], 4
jne 0x420d9d
mov eax, dword [edi + 0x1c]
lea esi, [edi + 0x28]
push edi
call fcn.0043bf80
mov eax, dword [edi + 0x20]
lea esi, [edi + 0x30]
push edi
call fcn.0043bf80
inc ebx
cmp ebx, dword [0x4bc4e4]
jl 0x420d70
mov edi, 1
cmp dword [0x4bc62c], 0
je 0x420dd8
call fcn.0042c6d0
test eax, eax
je 0x420ecf
mov eax, dword [0x4bc62c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [0x4bc62c], 0
cmp dword [0x4bb5fc], 0
je 0x420de6
call fcn.0043c020
cmp dword [0x4bcaec], 0
jne 0x420c19
mov ecx, dword [0x4bbcbc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add dword [0x4bc63c], edi
push 0
push 0
push 0
push 0x68
push 0x4bc4c8
call fcn.004278b0
test eax, eax
je 0x420ecf
push 0
push 0
push 0
push 0x68
push 0x4bc4c8
call fcn.004278b0
test eax, eax
je 0x420ecf
mov edx, dword [0x4bc4cc]
mov eax, dword [edx + 0x10]
mov dword [eax + 0xc], edi
mov ecx, dword [0x4bc4cc]
mov dword [ecx + 0xc], edi
mov edx, dword [0x4bc840]
mov eax, dword [0x4bc4cc]
push 0
push 0
mov dword [edx + 8], eax
mov ecx, dword [0x4bc4c8]
push 0
push ecx
mov ecx, 0x4bc4c8
call fcn.0042f1a0
test eax, eax
je 0x420ecf
mov eax, dword [0x4bc4c8]
call fcn.0042f5c0
test eax, eax
je 0x420ecf
push 3
push 0
push str.ErrorLevel
mov ecx, 0x4bc4c8
call fcn.0042e640
mov dword [0x4bbcb4], eax
test eax, eax
je 0x420ecf
push edi
push 0
push 0xffffffffffffffff
push 0x4a7940
push eax
call fcn.00482f60
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x18]
call fcn.0041bc50
mov eax, edi
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