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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10034
call fcn.004b5d60
mov ecx, dword [0x4ea590]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
cmove esi, dword [0x4ea574]
mov word [0x4ea594], 0
test ecx, ecx
jne 0x43a572
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43a56c
cmp byte [0x4ea597], 0
jne 0x43a4b0
push esi
push str.Script_file_not_found.
push str._s_n_s
lea eax, [esp + 0x1c]
push 0x8018
push eax
call fcn.004819a0
add esp, 0x14
lea ecx, [esp + 0x10]
xorps xmm3, xmm3
mov edx, 0x10
push 0
push 0
call fcn.00486e30
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4ea504]
mov al, byte [0x4ea594]
mov dword [0x4e9000], 0x4ea574
test ecx, ecx
je 0x43a514
test al, al
je 0x43a518
mov eax, dword [0x4e4788]
cmp dword [eax + 0x34], 0
jne 0x43a4ef
cmp dword [0x4ea53c], 0
jne 0x43a4ef
cmp byte [0x4e9e56], 0
jne 0x43a4ef
push 0
push ecx
jmp 0x43a54a
push 0
push 0
push ecx
push 0x4cee98
push str.Script_file_not_found.
mov ecx, 0x4e9ec0
call fcn.0040c420
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test al, al
jne 0x43a546
push dword [0x4ea140]
movzx eax, word [0x4ea13c]
mov ecx, 0x4e9ec0
push eax
push 0x4cee98
push str.Script_file_not_found.
call fcn.0040c8c0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0x4cee98
push 0
push str.Script_file_not_found.
mov ecx, 0x4e9ec0
call fcn.0040d5b0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4ea590]
mov ebx, dword [0x4e9004]
cmp ecx, 2
push 0
mov eax, 0x4d2afc
mov dword [esp + 0x10], 0
cmovne eax, esi
mov ecx, 0x4e9ec0
push 0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0043aa20
mov esi, dword [esp + 0xc]
mov edi, eax
cmp edi, 3
jne 0x43a5b8
push ebx
push esi
mov ecx, 0x4e9ec0
call fcn.0043b170
mov edi, eax
test esi, esi
je 0x43a5c4
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
test edi, edi
je 0x43a560
push 0
mov byte [0x4e8e0b], 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x43a698
mov edx, dword [0x4ea504]
mov al, byte [0x4ea594]
test edx, edx
je 0x43a648
test al, al
je 0x43a648
mov eax, dword [0x4e4788]
cmp dword [eax + 0x34], 0
jne 0x43a623
cmp dword [0x4ea53c], 0
jne 0x43a623
cmp byte [0x4e9e56], 0
jne 0x43a623
push 0
push edx
push 0x4cee98
push 0
push str.An_internal_function_call_failed.
jmp 0x43a556
push 0
push 0
push edx
push 0x4cee98
push str.An_internal_function_call_failed.
mov ecx, 0x4e9ec0
call fcn.0040c420
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [0x4ea597], 0
je 0x43a683
test al, al
jne 0x43a683
push dword [0x4ea140]
movzx eax, word [0x4ea13c]
mov ecx, 0x4e9ec0
push eax
push 0x4cee98
push str.An_internal_function_call_failed.
call fcn.0040c8c0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0x4cee98
push 0
push str.An_internal_function_call_failed.
jmp 0x43a556
push dword [0x4e9ec0]
mov ecx, 0x4e9ec0
call fcn.00444b50
test eax, eax
je 0x43a560
push 0x4e9ee4
mov ecx, 0x4e9ec0
call fcn.00444c20
test eax, eax
je 0x43a560
push 0x4e9ed0
mov ecx, 0x4e9ec0
call fcn.00444c20
test eax, eax
je 0x43a560
mov ecx, 0x4e9ec0
call fcn.0044cf70
test eax, eax
je 0x43a560
xor esi, esi
cmp dword [0x4e9ee8], esi
jle 0x43a71e
nop word [eax + eax]
mov eax, dword [0x4e9ee4]
push dword [eax + esi*4]
call fcn.0044cc80
test eax, eax
je 0x43a560
inc esi
cmp esi, dword [0x4e9ee8]
jl 0x43a700
xor esi, esi
cmp dword [0x4e9ed4], esi
jle 0x43a74e
nop dword [eax + eax]
mov eax, dword [0x4e9ed0]
push dword [eax + esi*4]
call fcn.0044cc80
test eax, eax
je 0x43a560
inc esi
cmp esi, dword [0x4e9ed4]
jl 0x43a730
push dword [0x4e9ee4]
call fcn.0049f542
mov edx, dword [0x4ea130]
add esp, 4
test edx, edx
je 0x43a851
mov eax, dword [edx + 0x10]
cmp dword [eax + 4], 0
je 0x43a841
mov ecx, dword [eax + 8]
mov esi, dword [eax + 0x18]
test ecx, ecx
je 0x43a841
lea eax, [esp + 0xc]
push eax
push str.Line
call fcn.004793a0
test eax, eax
je 0x43a7df
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x43a7ca
cmp ecx, 6
je 0x43a7b6
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x4ea13c], eax
mov dword [0x4ea140], ecx
jmp 0x43a7e5
mov ecx, 0x4cee98
xor eax, eax
mov dword [0x4ea13c], eax
mov dword [0x4ea140], ecx
jmp 0x43a7e5
mov eax, dword [eax]
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
mov dword [0x4ea13c], eax
mov dword [0x4ea140], ecx
jmp 0x43a7e5
mov ecx, dword [0x4ea140]
test esi, esi
mov dword [0x4ea504], 0
mov edx, 0x4cee98
cmovne edx, esi
cmp byte [0x4ea597], 0
je 0x43a830
cmp byte [0x4ea594], 0
jne 0x43a830
movzx eax, word [0x4ea13c]
push ecx
push eax
push edx
push str.Unknown_class.
mov ecx, 0x4e9ec0
call fcn.0040c8c0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push edx
push 0
push str.Unknown_class.
jmp 0x43a556
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov dword [0x4ea130], 0
push dword [0x4ea578]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ecx
push dword [0x4ea578]
mov ecx, 0x4e5e28
call fcn.0044def0
push 0
push 0
push 0
push 0
push 7
mov ecx, 0x4e9ec0
call fcn.00440240
test eax, eax
je 0x43a560
push dword [0x4e9ec0]
mov ecx, 0x4e9ec0
call fcn.00444cd0
test eax, eax
je 0x43a560
xor eax, eax
cmp byte [0x4ea59c], al
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4