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

Disassembly:
sub esp, 0x418
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xac4]
mov byte [esi + 0x274], 1
mov word [esi + 0xadc], 0
test eax, eax
je 0x41cc66
cmp word [eax], 0
je 0x41cc66
cmp byte [0x4dc0ed], 0
jne 0x41ca56
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41ca56
push dword [esi + 0xac4]
lea eax, [esp + 0x1c]
push str.Script_file_not_found:_n_s
push 0x204
push eax
call fcn.004782d0
push 0
push 0
xorps xmm3, xmm3
lea ecx, [esp + 0x30]
mov edx, 0x10
call fcn.0047ce40
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, 0x14
call fcn.004753f0
mov dword [esp + 0x10], eax
test eax, eax
je 0x41ca8c
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x4c602c
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
jmp 0x41ca8e
xor eax, eax
mov dword [esi + 0x634], eax
test eax, eax
je 0x41cc66
cmp byte [0x4dc0ed], 0
mov eax, 0x4caf98
jne 0x41cab0
mov eax, dword [esi + 0xac4]
push 0
push 0
push eax
mov ecx, esi
call fcn.0041cde0
cmp eax, 1
jne 0x41cc66
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.004225a0
test eax, eax
je 0x41cc66
push dword [esi]
mov ecx, esi
call fcn.004297e0
test eax, eax
je 0x41cc66
push dword [esi]
mov ecx, esi
call fcn.004298f0
cmp dword [esi + 8], 0
je 0x41cb11
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [ecx + 0x14], eax
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
mov dword [esi], eax
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
jle 0x41cb56
nop dword [eax + eax]
mov eax, dword [esi + 0x18]
mov edi, dword [eax + ebx*4]
cmp byte [edi + 0x3d], 0
jne 0x41cb50
test byte [edi + 0x3c], 4
jne 0x41cb50
lea eax, [edi + 0x28]
mov ecx, esi
push eax
push dword [edi + 0x1c]
push edi
call fcn.00435c60
lea eax, [edi + 0x30]
mov ecx, esi
push eax
push dword [edi + 0x20]
push edi
call fcn.00435c60
inc ebx
cmp ebx, dword [esi + 0x1c]
jl 0x41cb20
cmp dword [esi + 0x260], 0
je 0x41cb84
mov ecx, esi
call fcn.004270c0
test eax, eax
je 0x41cc66
mov eax, dword [esi + 0x260]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi + 0x260], 0
cmp dword [0x4dc0f0], 0
je 0x41cb94
mov ecx, esi
call fcn.00435d20
mov ecx, dword [esi + 0xae0]
test ecx, ecx
je 0x41cbb0
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x418
ret
push dword [0x4db7a8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [esi + 0x270]
mov ecx, esi
push 0
push 0
push 0
push 0x68
call fcn.004225a0
test eax, eax
je 0x41cc66
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.004225a0
test eax, eax
je 0x41cc66
mov ecx, dword [esi + 0x634]
mov eax, dword [esi + 4]
push 0
push 0
mov dword [ecx + 8], eax
mov ecx, esi
push 0
push dword [esi]
call fcn.00429960
test eax, eax
je 0x41cc66
push dword [esi]
mov ecx, esi
call fcn.00429c80
test eax, eax
je 0x41cc66
push 3
push 0
push 0x4caf9c
mov ecx, esi
call fcn.00428e30
mov dword [0x4db768], eax
test eax, eax
je 0x41cc66
push 1
push 0
push 0xffffffffffffffff
push 0x4b41e8
mov ecx, eax
call fcn.0047b2f0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x10]
call fcn.004177c0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x418
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x418
ret