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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x40]
push 0
push 0x526be0
push 0x526eb0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x8c]
push 0
push edi
mov dword [esp + 0x50], eax
mov dword [esp + 0xdc], 5
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x4d38b1
mov edi, dword [eax + 0x30]
mov dword [ebp + 8], edi
mov eax, dword [edi]
mov ecx, edi
mov esi, str.Object
call dword [eax + 0x20]
nop dword [eax]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4d38e6
test cx, cx
je 0x4d38e2
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4d38e6
add eax, 4
add esi, 4
test cx, cx
jne 0x4d38c0
xor eax, eax
jmp 0x4d38eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d3a71
mov eax, dword [edi]
mov ecx, edi
mov esi, str.Array
call dword [eax + 0x20]
nop
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4d3926
test cx, cx
je 0x4d3922
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4d3926
add eax, 4
add esi, 4
test cx, cx
jne 0x4d3900
xor eax, eax
jmp 0x4d392b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d3a71
mov eax, dword [edi]
mov ecx, edi
mov esi, 0x5067ac
call dword [eax + 0x20]
nop
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4d3966
test cx, cx
je 0x4d3962
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4d3966
add eax, 4
add esi, 4
test cx, cx
jne 0x4d3940
xor eax, eax
jmp 0x4d396b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d3a71
mov eax, dword [edi]
mov ecx, edi
mov esi, str.Buffer
call dword [eax + 0x20]
nop
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4d39a6
test cx, cx
je 0x4d39a2
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4d39a6
add eax, 4
add esi, 4
test cx, cx
jne 0x4d3980
xor eax, eax
jmp 0x4d39ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d3a71
mov eax, dword [edi]
mov ecx, edi
mov esi, str.Struct
call dword [eax + 0x20]
nop
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4d39e6
test cx, cx
je 0x4d39e2
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4d39e6
add eax, 4
add esi, 4
test cx, cx
jne 0x4d39c0
xor eax, eax
jmp 0x4d39eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d3a71
mov eax, dword [edi]
mov ecx, edi
mov esi, str.ComValue
call dword [eax + 0x20]
nop
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4d3a26
test cx, cx
je 0x4d3a22
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4d3a26
add eax, 4
add esi, 4
test cx, cx
jne 0x4d3a00
xor eax, eax
jmp 0x4d3a2b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d3a71
mov ecx, dword fs:[0x2c]
mov ebx, dword [0x62271c]
mov eax, dword [ecx + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x4d3a54
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebx*4]
mov ecx, edi
mov esi, dword [eax + 0x298]
mov eax, dword [edi]
call dword [eax + 0x20]
push eax
push str.Type_mismatch.
mov ecx, esi
call fcn.0046cf30
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov edi, 9
mov dword [esp + 0x18], 0x4f5b70
mov esi, str.Buffer
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x28], 0x4f5b70
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], 1
mov eax, dword [ecx]
call dword [eax + 0x20]
nop dword [eax]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4d3ad6
test cx, cx
je 0x4d3ad2
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4d3ad6
add eax, 4
add esi, 4
test cx, cx
jne 0x4d3ab0
xor eax, eax
jmp 0x4d3adb
sbb eax, eax
or eax, 1
mov ecx, dword [ebp + 8]
test eax, eax
jne 0x4d3b19
push 0
push 0
lea edx, [esp + 0xc8]
mov dword [esp + 0xc8], ecx
mov eax, dword [ecx]
push edx
push str.size
push 0
lea edx, [esp + 0x2c]
push edx
call dword [eax + 0x1c]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
add edi, 9
adc ebx, 0
jmp 0x4d3be7
mov eax, dword [ecx]
mov esi, str.ComValue
call dword [eax + 0x20]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4d3b49
test cx, cx
je 0x4d3b45
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4d3b49
add eax, 4
add esi, 4
test cx, cx
jne 0x4d3b23
xor eax, eax
jmp 0x4d3b4e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4d3be7
push eax
push 0x526f48
push 0x526eb0
push eax
push dword [ebp + 8]
call sub.VCRUNTIME140.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4d3b83
movzx eax, word [esi + 0x14]
mov ecx, eax
cmp eax, 9
jb 0x4d3bc4
cmp eax, 0x18
jb 0x4d3bd8
mov ecx, dword fs:[0x2c]
mov ebx, dword [0x62271c]
mov eax, dword [ecx + ebx*4]
cmp byte [eax + 0x2198], 0
jne 0x4d3ba8
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + ebx*4]
push str.Only_following_values_are_supported_VT_EMPTY_NULL_BOOL_I2_I4_R4_R8_CY_DATE_BSTR_I1_UI1_UI2_UI4_I8_UI8_INT_UINT
push str.Type_mismatch.
mov ecx, dword [ecx + 0x298]
call fcn.0046cf30
movzx ecx, word [esi + 0x14]
cmp cx, 8
jne 0x4d3bd8
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
add eax, 2
jmp 0x4d3bdd
mov eax, 8
lea edi, [eax + 1]
xor ebx, ebx
add edi, 9
adc ebx, ebx
mov ecx, dword [ebp + 0xc]
mov esi, dword [0x62271c]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc0], ecx
mov ecx, dword fs:[0x2c]
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe8], 5
mov eax, dword [ecx + esi*4]
cmp byte [eax + 0x2198], 0
jne 0x4d3c2b
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + esi*4]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x1000102
cmp byte [eax + 0x2198], 0
mov dword [esp + 0x7c], 0x4f5b70
mov dword [esp + 0x6c], 0x4f5b70
jne 0x4d3c64
call fcn.004ebad3
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x38]
mov esi, dword [ebp + 8]
push 1
push edx
mov eax, dword [ecx]
lea edx, [esp + 0xc8]
push edx
push 0x50616c
push 2
lea edx, [esp + 0x2c]
mov dword [esp + 0xc0], 0
push edx
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0x1000102
mov dword [esp + 0xd0], 0x4f5b70
mov dword [esp + 0xc0], 0x4f5b70
mov dword [esp + 0x60], 5
mov dword [esp + 0x58], esi
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0x4f5b70
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x40], 0x4f5b70
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 1
call dword [eax + 0x1c]
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
jne 0x4d3d7f
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x38]
push 2
push edx
lea edx, [esp + 0xc8]
mov dword [esp + 0x90], eax
push edx
push 0
mov dword [esp + 0x94], eax
lea edx, [esp + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
push 1
push edx
mov dword [esp + 0x60], 5
mov dword [esp + 0x58], esi
mov dword [esp + 0x98], 0x4f5b70
mov dword [esp + 0x30], 0x4f5b70
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x40], 0x4f5b70
mov dword [esp + 0x4c], 1
call dword [eax + 0x1c]
mov ecx, dword [ebp + 8]
mov esi, str.ComValue
mov eax, dword [ecx]
call dword [eax + 0x20]
nop dword [eax]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4d3db6
test cx, cx
je 0x4d3db2
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4d3db6
add eax, 4
add esi, 4
test cx, cx
jne 0x4d3d90
xor eax, eax
jmp 0x4d3dbb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d4608
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x64]
mov dword [esp + 0x40], eax
mov esi, str.Buffer
lea eax, [esp + 0xa0]
mov dword [esp + 0x48], 4
mov dword [esp + 0x44], 1
mov dword [esp + 0x88], 4
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 1
mov eax, dword [ecx]
call dword [eax + 0x20]
nop dword [eax]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4d3e36
test cx, cx
je 0x4d3e32
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4d3e36
add eax, 4
add esi, 4
test cx, cx
jne 0x4d3e10
xor eax, eax
jmp 0x4d3e3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d420a
mov ecx, dword [ebp + 8]
mov esi, str.Object
mov eax, dword [ecx]
call dword [eax + 0x20]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4d3e76
test cx, cx
je 0x4d3e72
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4d3e76
add eax, 4
add esi, 4
test cx, cx
jne 0x4d3e50
xor eax, eax
jmp 0x4d3e7b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d420a
mov ecx, dword [ebp + 8]
mov esi, str.ComValue
mov eax, dword [ecx]
call dword [eax + 0x20]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4d3eb6
test cx, cx
je 0x4d3eb2
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4d3eb6
add eax, 4
add esi, 4
test cx, cx
jne 0x4d3e90
xor eax, eax
jmp 0x4d3ebb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d420a
push 0
push 2
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004d0f70
add esp, 0x10
cmp eax, 1
je 0x4d3eec
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 2
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
call fcn.004cb930
add esp, 0x10
cmp eax, 3
jne 0x4d4200
nop word [eax + eax]