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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1003c
call fcn.004b5860
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov word [esi + 0x6cc], 0
lea ebx, [esi + 0x6ac]
test edi, edi
jne 0x43a53d
mov edi, dword [ebx]
cmp dword [esi + 0x6c8], 0
jne 0x43a653
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43a653
cmp byte [0x4ea51f], 0
jne 0x43a5a4
push edi
push str.Script_file_not_found.
push str._s_n_s
lea eax, [esp + 0x24]
push 0x8018
push eax
call fcn.00480f70
add esp, 0x14
lea ecx, [esp + 0x18]
xorps xmm3, xmm3
mov edx, 0x10
push 0
push 0
call fcn.00486ab0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x640]
mov al, byte [0x4ea51c]
mov dword [0x4e8f94], ebx
test ecx, ecx
je 0x43a601
test al, al
je 0x43a605
mov eax, dword [0x4e4798]
cmp dword [eax + 0x34], 0
jne 0x43a5df
cmp dword [esi + 0x674], 0
jne 0x43a5df
cmp byte [0x4e9de6], 0
jne 0x43a5df
push 0
push ecx
jmp 0x43a634
push 0
push 0
push ecx
push 0x4cee20
push str.Script_file_not_found.
mov ecx, esi
call fcn.0040c490
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test al, al
jne 0x43a630
push dword [esi + 0x27c]
movzx eax, word [esi + 0x278]
mov ecx, esi
push eax
push 0x4cee20
push str.Script_file_not_found.
call fcn.0040c920
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0x4cee20
push 0
push str.Script_file_not_found.
mov ecx, esi
call fcn.0040d600
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x6c8], 2
mov eax, 0x4d2a58
mov ecx, dword [0x4e8f98]
push 0
cmovne eax, edi
mov dword [esp + 0x18], ecx
push 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
mov ecx, esi
call fcn.0043aac0
mov edi, dword [esp + 0x10]
mov ebx, eax
cmp ebx, 3
jne 0x43a69e
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.0043b200
mov ebx, eax
test edi, edi
je 0x43a6aa
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
test ebx, ebx
je 0x43a647
push 0
call dword [sym.imp.KERNEL32.DLL_SetDllDirectoryW]
test eax, eax
jne 0x43a78d
mov ecx, dword [esi + 0x640]
mov al, byte [0x4ea51c]
test ecx, ecx
je 0x43a732
test al, al
je 0x43a732
mov eax, dword [0x4e4798]
cmp dword [eax + 0x34], 0
jne 0x43a710
cmp dword [esi + 0x674], 0
jne 0x43a710
cmp byte [0x4e9de6], 0
jne 0x43a710
push 0
push ecx
push 0x4cee20
push 0
push str.An_internal_function_call_failed.
mov ecx, esi
call fcn.0040d600
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push ecx
push 0x4cee20
push str.An_internal_function_call_failed.
mov ecx, esi
call fcn.0040c490
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [0x4ea51f], 0
je 0x43a76a
test al, al
jne 0x43a76a
push dword [esi + 0x27c]
movzx eax, word [esi + 0x278]
mov ecx, esi
push eax
push 0x4cee20
push str.An_internal_function_call_failed.
call fcn.0040c920
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0x4cee20
push 0
push str.An_internal_function_call_failed.
mov ecx, esi
call fcn.0040d600
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [esi]
mov ecx, esi
call fcn.00444bd0
test eax, eax
je 0x43a647
lea ebx, [esi + 0x24]
mov ecx, esi
push ebx
call fcn.00444ca0
test eax, eax
je 0x43a647
lea eax, [esi + 0x10]
mov ecx, esi
push eax
call fcn.00444ca0
test eax, eax
je 0x43a647
mov ecx, esi
call fcn.0044cfc0
test eax, eax
je 0x43a647
xor edi, edi
cmp dword [ebx + 4], edi
jle 0x43a7f8
nop word [eax + eax]
mov eax, dword [ebx]
push dword [eax + edi*4]
call fcn.0044ccd0
test eax, eax
je 0x43a647
inc edi
cmp edi, dword [ebx + 4]
jl 0x43a7e0
xor edi, edi
lea eax, [esi + 0x10]
cmp dword [eax + 4], edi
jle 0x43a81d
mov eax, dword [eax]
push dword [eax + edi*4]
call fcn.0044ccd0
test eax, eax
je 0x43a647
inc edi
lea eax, [esi + 0x10]
cmp edi, dword [eax + 4]
jl 0x43a802
push dword [ebx]
call fcn.0049f222
mov edx, dword [esi + 0x26c]
add esp, 4
test edx, edx
je 0x43a90c
mov eax, dword [edx + 0x10]
cmp dword [eax + 4], 0
je 0x43a8fc
mov ecx, dword [eax + 8]
mov edi, dword [eax + 0x18]
test ecx, ecx
je 0x43a8fc
lea eax, [esp + 0x14]
push eax
push str.Line
call fcn.00478a90
test eax, eax
je 0x43a890
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x43a87c
cmp ecx, 6
je 0x43a873
mov ecx, dword [eax]
jmp 0x43a881
mov ecx, 0x4cee20
xor eax, eax
jmp 0x43a884
mov eax, dword [eax]
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
mov dword [esi + 0x278], eax
mov dword [esi + 0x27c], ecx
test edi, edi
mov dword [esi + 0x640], 0
mov ecx, 0x4cee20
cmovne ecx, edi
cmp byte [0x4ea51f], 0
je 0x43a8dd
cmp byte [0x4ea51c], 0
jne 0x43a8dd
push dword [esi + 0x27c]
movzx eax, word [esi + 0x278]
push eax
push ecx
push str.Unknown_class.
mov ecx, esi
call fcn.0040c920
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push ecx
push 0
push str.Unknown_class.
mov ecx, esi
call fcn.0040d600
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov dword [esi + 0x26c], 0
push dword [esi + 0x6b0]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push ecx
push dword [esi + 0x6b0]
mov ecx, 0x4e5e28
call fcn.0044df50
push 0
push 0
push 0
push 0
push 7
mov ecx, esi
call fcn.00440290
test eax, eax
je 0x43a647
push dword [esi]
mov ecx, esi
call fcn.00444d00
test eax, eax
je 0x43a647
xor eax, eax
cmp byte [esi + 0x6d4], al
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4