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

Disassembly:
push 0xffffffffffffffff
push 0x522ec88
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
movzx esi, word [esp + 0x94]
movzx ebx, word [esp + 0xa0]
lea eax, [esp + 0x17]
push eax
push esi
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ebp, dword [esp + 0xa0]
mov edi, dword [esp + 0x94]
push eax
push str.l4aud_op
push ebx
push ebp
push edi
call fcn.05019e10
add esp, 0x18
lea ecx, [esp + 0xa0]
push ecx
push esi
call sym.META_DLL.dll_META_GetPrimitiveTypeName
push eax
push str.status
push ebx
push ebp
push edi
call fcn.05019e10
add esp, 0x18
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ebp, dword [esp + 0x98]
mov edx, dword [eax + 0xa800]
mov edx, dword [edx]
lea ecx, [eax + 0xa800]
movzx eax, byte [esp + 0x17]
push ebp
push eax
push esi
lea eax, [esp + 0x74]
push eax
call edx
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
test ecx, ecx
jne 0x5167409
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
movzx eax, byte [esp + 0x17]
cmp eax, 0x25
ja case.0x516741e.6
movzx eax, byte [eax + 0x5167734]
jmp dword [eax*4 + 0x5167724]
lea ecx, [esp + 0x18]
push ecx
push esi
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov edx, dword [esp + 0xa0]
push eax
push str.cnf.query_id.min_ringtone_id
push ebx
push edx
push edi
call fcn.05019e50
add esp, 0x18
lea eax, [esp + 0x1a]
push eax
push esi
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0xa0]
push eax
push str.cnf.query_id.max_ringtone_id
push ebx
push ecx
push edi
call fcn.05019e50
add esp, 0x18
lea edx, [esp + 0x1c]
push edx
push esi
call sym.META_DLL.dll_META_GetPrimitiveTypeName
push eax
mov eax, dword [esp + 0xa4]
push str.cnf.query_id.min_midi_id
push ebx
push eax
push edi
call fcn.05019e50
add esp, 0x18
lea ecx, [esp + 0x1e]
push ecx
push esi
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov edx, dword [esp + 0xa0]
push eax
push str.cnf.query_id.max_midi_id
push ebx
push edx
push edi
call fcn.05019e50
add esp, 0x18
lea eax, [esp + 0x20]
push eax
push esi
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0xa0]
push eax
push str.cnf.query_id.min_sound_id
push ebx
push ecx
push edi
call fcn.05019e50
add esp, 0x18
lea edx, [esp + 0x22]
push edx
push esi
call sym.META_DLL.dll_META_GetPrimitiveTypeName
push eax
mov eax, dword [esp + 0xa4]
push str.cnf.query_id.max_sound_id
push ebx
push eax
push edi
call fcn.05019e50
mov ecx, dword [esp + 0x78]
movzx eax, byte [esp + 0xb8]
add esp, 0x18
push ecx
push ebp
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x30], eax
call dword [esp + 0x64]
jmp 0x51675ee
movzx eax, byte [esp + 0xa0]
push edx
push ebp
push eax
call ecx
jmp 0x51675ee
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x51675ce
push str._ERROR:
push 0xff
push 0xca
push str..FunctionAudioMETA_audio_test.cpp
lea ecx, [esp + 0x38]
call fcn.051ae270
mov ebx, eax
mov dword [esp + 0x88], 0
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
mov dword [esp + 0xa0], eax
movzx eax, byte [esp + 0x17]
push eax
push eax
push esi
push esi
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov edx, dword [esp + 0xac]
push eax
movsx ecx, bp
push ecx
push edi
push str.__d__AudioTest_Cnf_token_d_:__s__d____s__d_:_cnf_is_NULL_
push edx
push ebx
call fcn.051ae2d0
add esp, 0x24
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.051ae2c0
mov eax, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov edx, dword [esp + 0x94]
push eax
mov eax, dword [esp + 0xa0]
push 0
push 0
push ebx
push eax
movzx eax, byte [esp + 0x2b]
push ebp
push eax
push edx
push edi
call ecx
push 0x52c722a
push 1
push 0xd4
push str..FunctionAudioMETA_audio_test.cpp
lea ecx, [esp + 0x38]
call fcn.051ae270
mov ebx, eax
mov dword [esp + 0x88], 2
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
mov dword [esp + 0xa0], eax
movzx eax, byte [esp + 0x17]
mov ecx, dword [eax*4 + 0x527e7b8]
push eax
push ecx
push esi
push esi
call sym.META_DLL.dll_META_GetPrimitiveTypeName
push eax
mov eax, dword [esp + 0xb0]
movsx edx, bp
push edx
push edi
push str.__d__AudioTest_Cnf_token_d_:__s__d____s__d_:_callback_OK.
push eax
push ebx
call fcn.051ae2d0
add esp, 0x24
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.051ae2c0
mov eax, 6
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
push str._ERROR:
push 0xff
push 0xd0
push str..FunctionAudioMETA_audio_test.cpp
lea ecx, [esp + 0x4c]
call fcn.051ae270
mov ebx, eax
mov dword [esp + 0x88], 1
push edi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [eax + 8]
movzx eax, byte [esp + 0x17]
push eax
push esi
push esi
mov dword [esp + 0xac], ecx
call sym.META_DLL.dll_META_GetPrimitiveTypeName
push eax
mov eax, dword [esp + 0xac]
movsx edx, bp
push edx
push edi
push str.__d__AudioTest_Cnf_token_d_:__s__d___UnknownType__d_:_no_such_command_type_for_Audio_testing_
push eax
push ebx
call fcn.051ae2d0
add esp, 0x20
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.051ae2c0
mov eax, 2
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret