Function at 0x420c40
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 0x420c6d
mov esi, dword [0x4bcac8]
cmp dword [0x4bcae0], ebx
jne 0x420cb2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x420cb2
push esi
push str.Script_file_not_found:_n_s
mov esi, 0x11c
lea edi, [esp + 0x28]
call fcn.0047fe70
fldz
fstp qword [esp]
mov eax, edi
push ebx
push ebx
push 0x10
push eax
call fcn.00484c50
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4bc3f0], ebx
jne 0x420cc8
call fcn.0047cf00
mov dword [0x4bc3f0], eax
cmp eax, ebx
je 0x420d14
mov ecx, dword [0x4bc3f4]
cmp dword [ecx + 8], 0x14
jae 0x420ce6
call fcn.0047cf00
mov ecx, dword [0x4bc3f4]
mov dword [ecx + 0xc], eax
cmp eax, ebx
je 0x420d14
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 0x420d14
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x4a7935
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x420d16
xor eax, eax
mov dword [0x4bc840], eax
cmp eax, ebx
je 0x420f5f
cmp dword [0x4bcae0], 2
mov eax, 0x4ab974
je 0x420d33
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.004210b0
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp esi, 3
jne 0x420d68
push edi
push ebx
push 0x4bc4c8
call fcn.00421480
mov esi, eax
mov edi, 1
test ebx, ebx
je 0x420d7a
mov edx, dword [ebx]
mov eax, dword [edx]
push edi
mov ecx, ebx
call eax
cmp esi, edi
jne 0x420f5f
push 0
push 0
push 0
push 0x68
push 0x4bc4c8
call fcn.00427940
test eax, eax
je 0x420f5f
mov ecx, dword [0x4bc4cc]
mov dword [ecx + 0xc], edi
mov eax, dword [0x4bc4c8]
call fcn.0042f0c0
test eax, eax
je 0x420f5f
mov eax, dword [0x4bc4c8]
call fcn.0042f1c0
cmp dword [0x4bc4d0], 0
je 0x420df1
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 0x420e3b
jmp 0x420e00
mov ecx, dword [0x4bc4e0]
mov edi, dword [ecx + ebx*4]
cmp byte [edi + 0x3d], 0
jne 0x420e2d
test byte [edi + 0x3c], 4
jne 0x420e2d
mov eax, dword [edi + 0x1c]
lea esi, [edi + 0x28]
push edi
call fcn.0043c010
mov eax, dword [edi + 0x20]
lea esi, [edi + 0x30]
push edi
call fcn.0043c010
inc ebx
cmp ebx, dword [0x4bc4e4]
jl 0x420e00
mov edi, 1
cmp dword [0x4bc62c], 0
je 0x420e68
call fcn.0042c760
test eax, eax
je 0x420f5f
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 0x420e76
call fcn.0043c0b0
cmp dword [0x4bcaec], 0
jne 0x420ca9
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.00427940
test eax, eax
je 0x420f5f
push 0
push 0
push 0
push 0x68
push 0x4bc4c8
call fcn.00427940
test eax, eax
je 0x420f5f
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.0042f230
test eax, eax
je 0x420f5f
mov eax, dword [0x4bc4c8]
call fcn.0042f650
test eax, eax
je 0x420f5f
push 3
push 0
push str.ErrorLevel
mov ecx, 0x4bc4c8
call fcn.0042e6d0
mov dword [0x4bbcb4], eax
test eax, eax
je 0x420f5f
push edi
push 0
push 0xffffffffffffffff
push 0x4a7950
push eax
call fcn.00482ff0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x18]
call fcn.0041bc80
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