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

Disassembly:
push 0xffffffffffffffff
push 0x521e4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov di, word [esp + 0x74]
movzx esi, word [esp + 0x80]
xor eax, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x74]
movzx ecx, di
push eax
push ecx
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov edx, dword [esp + 0x80]
push eax
push str.type
push esi
mov esi, dword [esp + 0x80]
push edx
push esi
call fcn.05019e10
mov eax, 0x4c
add esp, 0x18
cmp ax, di
jne 0x5185615
mov bl, byte [esp + 0x74]
cmp bl, 0xb
jae 0x5185615
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
add eax, 0xa800
mov edx, dword [eax + 0x28]
lea ebp, [eax + 0x28]
mov dword [esp + 0x74], eax
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
mov dword [esp + 0x68], 0
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [eax + 0xa800]
mov edx, dword [edx]
movzx edi, bl
mov ebx, dword [esp + 0x78]
push ebx
lea ecx, [eax + 0xa800]
push edi
push 0x4c
lea eax, [esp + 0x54]
push eax
call edx
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
test ecx, ecx
jne 0x518562e
mov dword [esp + 0x68], 0xffffffff
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov dword [esp + 0x68], 0xffffffff
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
cmp dword [esp + 0x3c], 0
jne 0x51856dc
push str._ERROR:
push 0xff
push 0x61
push str..FunctionMultimediaMETA_cmmb.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov ebp, eax
mov dword [esp + 0x68], 1
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [edi*4 + 0x527f0e0]
mov ecx, dword [eax + 8]
push edi
push edx
push 0x4c
push 0x4c
mov dword [esp + 0x90], ecx
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x8c]
push eax
movsx eax, bx
push eax
push esi
push str.__d__CMMB_Cnf_token_d_:__s__d____s__d_:_cnf_is_NULL_
push ecx
push ebp
call fcn.051ae2d0
add esp, 0x24
mov dword [esp + 0x68], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov eax, 4
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
cmp dword [esp + 0x84], 0
je 0x51857d6
mov ax, word [esp + 0x88]
xor edx, edx
cmp dx, ax
jae 0x51857d6
movzx ebp, ax
push esi
mov dword [esp + 0x78], ebp
call fcn.051a87a0
add esp, 4
cmp eax, ebp
jge 0x51857d6
push esi
call fcn.051a87a0
mov ebp, eax
add ebp, dword [esp + 0x88]
push esi
call fcn.051a87a0
mov ecx, dword [esp + 0x7c]
sub ecx, eax
mov eax, ecx
add esp, 8
cmp eax, 0x800
jbe 0x51857dc
push str._WARNING:
push 0xd2
push 0x70
push str..FunctionMultimediaMETA_cmmb.cpp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0x800
call fcn.051ae270
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], 2
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [edi*4 + 0x527f0e0]
mov eax, dword [eax + 8]
push 0x800
push 0x800
push edi
push ecx
push 0x4c
push 0x4c
mov dword [esp + 0x8c], eax
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x8c]
movsx edx, bx
push edx
push esi
push str.__d__CMMB_Cnf_token_d_:__s__d____s__d_:_data_len__lu__exceed_cnf__m_data__u__limitation__data_will_be_truncated_
push eax
push ecx
call fcn.051ae2d0
add esp, 0x2c
mov dword [esp + 0x68], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov eax, dword [esp + 0x14]
jmp 0x51857dc
mov eax, dword [esp + 0x14]
mov ebp, eax
mov edx, dword [esp + 0x3c]
push edx
push eax
movzx eax, word [esp + 0x88]
push ebp
push eax
mov eax, dword [esp + 0x8c]
push eax
push ebx
push edi
push 0x4c
push esi
call dword [esp + 0x5c]
push 0x52c722a
push 1
push 0x77
push str..FunctionMultimediaMETA_cmmb.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov ebp, eax
mov dword [esp + 0x68], 3
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [edi*4 + 0x527f0e0]
mov ecx, dword [eax + 8]
push edi
push edx
push 0x4c
push 0x4c
mov dword [esp + 0x90], ecx
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x8c]
push eax
movsx eax, bx
push eax
push esi
push str.__d__CMMB_Cnf_token_d_:__s__d____s__d_:_callback_OK.
push ecx
push ebp
call fcn.051ae2d0
add esp, 0x24
mov dword [esp + 0x68], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov eax, 6
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret