Function at 0x418340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4ec64d
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x54c000]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.ExtendScript.dll_public:_static_class_ScScript::Engine____cdecl_ScScript::Engine::getCurrent_void_]
cmp eax, esi
je 0x4183ac
mov edx, dword [eax]
push esi
push 0x54d174
push 0x54d158
push esi
mov ecx, eax
mov eax, dword [edx + 0xb8]
push 0x6c697665
call eax
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
mov esi, eax
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setNull_void_]
mov ecx, dword [edi + 0x34]
test ecx, ecx
jne 0x41858a
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x15]
cmp ecx, 4
ja case.default.0x4183d1
jmp dword [ecx*4 + 0x418b5c]
mov ecx, dword [0x54f600]
mov eax, dword [ecx + 0x28]
push eax
call fcn.0041bd10
movzx edx, al
push edx
mov ecx, ebx
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setBool_bool_]
jmp 0x418b3f
mov eax, dword [0x54f600]
mov eax, dword [eax + 0x28]
push eax
call fcn.0041bb90
movzx ecx, al
push ecx
mov ecx, ebx
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setBool_bool_]
jmp 0x418b3f
mov ecx, dword [ebp + 0xc]
push 0
call dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant_const____thiscall_ScCore::BasicArray::operator___unsigned_int_const]
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_bool___thiscall_ScCore::Variant::getBool_void_const]
mov edx, dword [0x54f600]
test al, al
mov eax, dword [edx + 0x28]
push 2
je 0x418477
mov eax, dword [eax + 0x24]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String___thiscall_ScCore::XML::toXMLString_int_]
push eax
mov ecx, ebx
mov dword [esp + 0xc4], 0
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setString_class_ScCore::String_const__]
lea ecx, [esp + 0x48]
mov dword [esp + 0xc0], 0xffffffff
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_]
jmp 0x418b3f
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String___thiscall_ScCore::XML::toXMLString_int_]
push eax
mov ecx, ebx
mov dword [esp + 0xc4], 1
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setString_class_ScCore::String_const__]
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc0], 0xffffffff
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_]
jmp 0x418b3f
test esi, esi
je 0x418b3f
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant_const____thiscall_ScCore::BasicArray::operator___unsigned_int_const]
push 1
mov ecx, edi
call ebx
push eax
mov ecx, esi
call dword [sym.imp.ExtendScript.dll_public:_class_ScCore::XML____thiscall_ScScript::LiveObjectAPI::getXML_class_ScCore::Variant_const__const]
mov esi, eax
test esi, esi
jne 0x418510
push eax
push 0x54d138
push 0x54cfb4
push eax
push eax
mov ecx, edi
call ebx
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_class_ScCore::LiveObject____thiscall_ScCore::Variant::getLiveObject_void_const]
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x418b3f
mov esi, dword [eax + 0x34]
test esi, esi
je 0x418b3f
mov edx, dword [0x54f600]
mov eax, dword [edx + 0x28]
push 0
mov ecx, edi
mov dword [esp + 0x3c], eax
call ebx
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String_const____thiscall_ScCore::Variant::getString_void_const]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.0041b640
jmp 0x418b3f
mov edx, dword [0x54f600]
mov ecx, dword [ebp + 0xc]
mov esi, dword [edx + 0x28]
push 0
call dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant_const____thiscall_ScCore::BasicArray::operator___unsigned_int_const]
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String_const____thiscall_ScCore::Variant::getString_void_const]
mov esi, dword [esi + 0x24]
push eax
push esi
call fcn.00419d30
add esp, 8
test eax, eax
je 0x418b3f
mov ecx, dword [eax + 0x14]
push eax
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::XML::remove_class_ScCore::XML__]
jmp 0x418b3f
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ecx
push ebx
push edx
push eax
jmp 0x418b33
mov edx, dword [ebp + 8]
lea eax, [edx - 0x33]
cmp eax, 0xb
ja case.0x418599.57
jmp dword [eax*4 + 0x418b70]
test esi, esi
je 0x418b3f
mov eax, dword [0x54f600]
mov eax, dword [eax + 0x28]
mov ebx, ecx
mov ecx, eax
call fcn.0041a3b0
test eax, eax
je 0x418b3f
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_class_ScCore::XML____thiscall_ScCore::XML::copy_r_bool_const]
push eax
mov ecx, esi
call dword [sym.imp.ExtendScript.dll_public:_void___thiscall_ScScript::LiveObjectAPI::makeXMLObject_class_ScCore::XML_const___class_ScCore::Variant__const]
jmp 0x418b3f
test esi, esi
je 0x418b3f
push ebx
push 1
call dword [sym.imp.ScCore.dll_public:_class_ScCore::XML____thiscall_ScCore::XML::copy_r_bool_const]
push eax
mov ecx, esi
call dword [sym.imp.ExtendScript.dll_public:_void___thiscall_ScScript::LiveObjectAPI::makeXMLObject_class_ScCore::XML_const___class_ScCore::Variant__const]
jmp 0x418b3f
test esi, esi
je 0x418b3f
mov ecx, dword [ebp + 0xc]
push 0
call dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant_const____thiscall_ScCore::BasicArray::operator___unsigned_int_const]
push eax
mov ecx, esi
call dword [sym.imp.ExtendScript.dll_public:_class_ScCore::XML____thiscall_ScScript::LiveObjectAPI::getXML_class_ScCore::Variant_const__const]
mov esi, eax
mov eax, dword [edi + 0x34]
test esi, esi
je 0x418b3f
test eax, eax
je 0x418b3f
mov edx, dword [0x54f600]
mov ecx, dword [edx + 0x28]
push 1
push eax
call fcn.0041a4e0
mov ebx, dword [eax + 0x14]
push eax
mov ecx, ebx
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::XML::remove_class_ScCore::XML__]
push 1
push accept
push esi
mov ecx, ebx
call dword [sym.imp.ScCore.dll_public:_bool___thiscall_ScCore::XML::insertChild_class_ScCore::XML_const___int__bool_]
mov dword [edi + 0x34], esi
jmp 0x418b3f
push 2
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String___thiscall_ScCore::XML::toXMLString_int_]
push eax
mov ecx, ebx
mov dword [esp + 0xc4], 5
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setString_class_ScCore::String_const__]
lea ecx, [esp + 0x50]
mov dword [esp + 0xc0], 0xffffffff
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_]
jmp 0x418b3f
add ecx, 8
push ecx
mov ecx, ebx
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setString_class_ScCore::String_const__]
jmp 0x418b3f
mov edx, dword [0x54f600]
mov eax, dword [edx + 0x28]
mov ebx, ecx
call fcn.0041b5f0
mov ecx, dword [ebp + 0xc]
push 0
mov esi, eax
call dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant_const____thiscall_ScCore::BasicArray::operator___unsigned_int_const]
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_bool___thiscall_ScCore::Variant::getBool_void_const]
test al, al
je 0x4186e9
mov eax, dword [0x54f600]
mov eax, dword [eax + 0x28]
mov ebx, dword [edi + 0x34]
call fcn.0041b760
jmp 0x4186ec
or eax, 0xffffffff
cmp esi, eax
jle 0x4186f2
mov eax, esi
mov ecx, dword [ebp + 0x10]
push eax
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setInteger_int_]
jmp 0x418b3f
lea ecx, [esp + 0x3c]
mov dword [esp + 0x48], 0x7e
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::constructor_void_]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc0], 6
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ebx, dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant_const____thiscall_ScCore::BasicArray::operator___unsigned_int_const]
push 0
mov ecx, esi
cmp eax, 2
jae 0x418764
call ebx
mov eax, dword [eax + 0x10]
sub eax, 3
je 0x418760
dec eax
jne 0x4187a3
push eax
mov ecx, esi
call ebx
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String_const____thiscall_ScCore::Variant::getString_void_const]
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String____thiscall_ScCore::String::operator_class_ScCore::String_const__]
jmp 0x4187a3
push 0
jmp 0x418793
call ebx
cmp dword [eax + 0x10], 0
je 0x418785
push 0
mov ecx, esi
call ebx
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String_const____thiscall_ScCore::Variant::getString_void_const]
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String____thiscall_ScCore::String::operator_class_ScCore::String_const__]
push 1
mov ecx, esi
call ebx
cmp dword [eax + 0x10], 0
je 0x4187a3
push 1
mov ecx, esi
call ebx
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_int___thiscall_ScCore::Variant::getInteger_void_const]
mov dword [esp + 0x48], eax
mov ecx, dword [0x54f600]
mov ecx, dword [ecx + 0x28]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [edi + 0x34]
mov edi, ecx
call fcn.0041b210
mov byte [esp + 0xc0], 7
mov eax, dword [esp + 0x48]
sub eax, 2
je 0x418805
dec eax
je 0x4187e4
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setString_class_ScCore::String_const__]
jmp 0x418826
push 0
lea edx, [esp + 0x3c]
push 0
push edx
call dword [sym.imp.ScCore.dll_public:_static_double___cdecl_ScCore::Variant::scanDouble_class_ScCore::String_const___int__class_ScCore::String__]
fstp qword [esp + 4]
mov ecx, dword [ebp + 0x10]
add esp, 4
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setDouble_double_]
jmp 0x418826
push str.true
lea ecx, [esp + 0x3c]
call dword [sym.imp.ScCore.dll_public:_bool___thiscall_ScCore::String::operator_char_const__const]
test al, al
setne al
movzx ecx, al
push ecx
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setBool_bool_]
mov byte [esp + 0xc0], 6
mov esi, dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_]
lea ecx, [esp + 0x38]
call esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc0], 0xffffffff
call esi
jmp 0x418b3f
xor eax, eax
xor edx, edx
mov byte [esp + 0x38], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov word [esp + 0x80], dx
mov dword [esp + 0xc0], 8
xor ecx, ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov word [esp + 0x68], cx
mov esi, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0xc8], 9
mov edx, dword [edi]
mov edx, dword [edx + 0x7c]
push esi
push 0x34
mov ecx, edi
call edx
test eax, eax
jne 0x4189ac
mov eax, dword [edi]
mov edx, dword [eax + 0x7c]
push 0
lea ecx, [esp + 0x58]
push ecx
push esi
push 0x35
mov ecx, edi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
mov edi, 0x7e
call edx
mov ecx, esi
cmp eax, 2
jae 0x418941
mov ebx, dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant_const____thiscall_ScCore::BasicArray::operator___unsigned_int_const]
push 0
call ebx
cmp dword [eax + 0x10], 3
jne 0x4188f0
push 0
mov ecx, esi
call ebx
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_int___thiscall_ScCore::Variant::getInteger_void_const]
mov edi, eax
mov ebx, dword [ebp + 0x10]
mov eax, 2
sub edi, eax
je 0x418996
dec edi
je 0x418965
mov esi, 4
cmp dword [esp + 0x7c], esi
jne 0x418923
lea ecx, [esp + 0x6c]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String_const____thiscall_ScCore::Variant::getString_void_const]
mov eax, dword [eax]
cmp dword [eax], 0
jg 0x4189a7
cmp dword [esp + 0x64], esi
jne 0x41893a
lea ecx, [esp + 0x54]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String_const____thiscall_ScCore::Variant::getString_void_const]
mov ecx, dword [eax]
cmp dword [ecx], 0
jg 0x4189a7
mov byte [esp + 0x38], 0
jmp 0x4189ac
push 1
call dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant_const____thiscall_ScCore::BasicArray::operator___unsigned_int_const]
cmp dword [eax + 0x10], 0
je 0x4188f3
push 1
mov ecx, esi
call dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant_const____thiscall_ScCore::BasicArray::operator___unsigned_int_const]
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_int___thiscall_ScCore::Variant::getInteger_void_const]
mov edi, eax
jmp 0x4188f3
cmp dword [esp + 0x7c], 3
jne 0x41897a
lea ecx, [esp + 0x6c]
call dword [sym.imp.ScCore.dll_public:_bool___thiscall_ScCore::Variant::isNaN_void_const]
test al, al
je 0x4189a7
cmp dword [esp + 0x64], 3
jne 0x41898f
lea ecx, [esp + 0x54]
call dword [sym.imp.ScCore.dll_public:_bool___thiscall_ScCore::Variant::isNaN_void_const]
test al, al
je 0x4189a7
mov byte [esp + 0x38], 0
jmp 0x4189ac
cmp dword [esp + 0x7c], eax
je 0x4189a7
mov byte [esp + 0x38], 0
cmp dword [esp + 0x64], eax
jne 0x4189ac
mov byte [esp + 0x38], 1
mov edx, dword [esp + 0x38]
push edx
mov ecx, ebx
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setBool_bool_]
mov byte [esp + 0xc0], 8
mov esi, dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::destructor_void_]
lea ecx, [esp + 0x54]
call esi
lea ecx, [esp + 0x6c]
mov dword [esp + 0xc0], 0xffffffff
call esi
jmp 0x418b3f
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], 0x7e
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::constructor_void_]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc0], 0xa
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ebx, dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant_const____thiscall_ScCore::BasicArray::operator___unsigned_int_const]
push 0
mov ecx, esi
cmp eax, 2
jae 0x418a46
call ebx
mov eax, dword [eax + 0x10]
sub eax, 3
je 0x418a42
dec eax
jne 0x418a85
push eax
mov ecx, esi
call ebx
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String_const____thiscall_ScCore::Variant::getString_void_const]
push eax
lea ecx, [esp + 0x48]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String____thiscall_ScCore::String::operator_class_ScCore::String_const__]
jmp 0x418a85
push 0
jmp 0x418a75
call ebx
cmp dword [eax + 0x10], 0
je 0x418a67
push 0
mov ecx, esi
call ebx
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String_const____thiscall_ScCore::Variant::getString_void_const]
push eax
lea ecx, [esp + 0x48]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::String____thiscall_ScCore::String::operator_class_ScCore::String_const__]
push 1
mov ecx, esi
call ebx
cmp dword [eax + 0x10], 0
je 0x418a85
push 1
mov ecx, esi
call ebx
mov ecx, eax
call dword [sym.imp.ScCore.dll_public:_int___thiscall_ScCore::Variant::getInteger_void_const]
mov dword [esp + 0x48], eax
mov eax, dword [0x54f600]
mov ecx, dword [eax + 0x28]
mov ebx, dword [edi + 0x34]
lea edx, [esp + 0x44]
push edx
lea esi, [esp + 0x44]
call fcn.0041b6f0
mov byte [esp + 0xc0], 0xb
mov eax, dword [esp + 0x48]
sub eax, 2
je 0x418ae1
dec eax
je 0x418ac0
mov ecx, dword [ebp + 0x10]
mov eax, esi
push eax
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setString_class_ScCore::String_const__]
jmp 0x418b02
push 0
lea ecx, [esp + 0x44]
push 0
push ecx
call dword [sym.imp.ScCore.dll_public:_static_double___cdecl_ScCore::Variant::scanDouble_class_ScCore::String_const___int__class_ScCore::String__]
fstp qword [esp + 4]
mov ecx, dword [ebp + 0x10]
add esp, 4
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setDouble_double_]
jmp 0x418b02
push str.true
lea ecx, [esp + 0x44]
call dword [sym.imp.ScCore.dll_public:_bool___thiscall_ScCore::String::operator_char_const__const]
mov ecx, dword [ebp + 0x10]
test al, al
setne dl
movzx eax, dl
push eax
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setBool_bool_]
mov byte [esp + 0xc0], 0xa
mov esi, dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_]
lea ecx, [esp + 0x40]
call esi
lea ecx, [esp + 0x44]
mov dword [esp + 0xc0], 0xffffffff
call esi
jmp 0x418b3f
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ecx
push ebx
push eax
push edx
mov ecx, edi
call dword [sym.imp.ScCore.dll_public_virtual:_int___thiscall_ScCore::LiveObject::call_int__class_ScCore::Array_const___class_ScCore::Variant___class_ScCore::Error__]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10