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

Disassembly:
push 0xffffffffffffffff
push 0x521f328
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
push esi
mov ecx, 0x53f4cc8
call fcn.050674e0
test al, al
jne 0x505139f
push str._ERROR:
push 0xff
push 0x14bd
push str..META_erf.cpp
lea ecx, [esp + 0x48]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x70], 0
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x524afe0
push esi
push str.__d___s__:_invalid_handle_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.051ae2c0
mov eax, 0xd
jmp 0x5051722
mov ebp, dword [esp + 0x7c]
test ebp, ebp
je 0x505171d
mov ebx, 0x10
cmp word [ebp + 4], bx
ja 0x50516b6
cmp word [ebp + 2], bx
ja 0x50516b6
push 0x52c722a
push 1
push 0x14cc
push str..META_erf.cpp
lea ecx, [esp + 0x48]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x70], 2
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str.__d__________Request________
push eax
push edi
call fcn.051ae2d0
add esp, 0x10
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.051ae2c0
push 0x52c722a
push 1
push 0x14cc
push str..META_erf.cpp
lea ecx, [esp + 0x48]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x70], 3
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ebx, dword [eax + 8]
push 0x5c
push 0x5c
call sym.META_DLL.dll_META_GetPrimitiveTypeName
push eax
mov eax, dword [str.ERF_TEST_CMD_SET_RF_MIPI_CODEWORD]
push 0x1b
push eax
push 0x5b
push 0x5b
call sym.META_DLL.dll_META_GetPrimitiveTypeName
push eax
push 0x524afe0
push esi
push 0x523f414
push ebx
push edi
call fcn.051ae2d0
add esp, 0x2c
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.051ae2c0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], 0
call fcn.050348b0
mov dword [esp + 0x70], 4
push 1
push 0
lea ecx, [esp + 0x54]
push ecx
push 0x5047ac0
push 0x1b
push 0x5c
lea edx, [esp + 0x30]
push edx
push esi
lea ecx, [esp + 0x48]
call fcn.050659a0
mov byte [esp + 0x70], 5
movzx edi, word [ebp + 4]
movzx eax, word [ebp + 2]
imul edi, eax
add edi, edi
add edi, edi
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
push esi
mov eax, 0x4000
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x38]
call fcn.05034850
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x5051533
mov byte [esp + 0x70], 4
lea ecx, [esp + 0x28]
call fcn.05065ae0
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.051601f0
mov eax, ebx
jmp 0x5051722
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push ebp
add eax, edx
push edi
push eax
push esi
call fcn.05034bb0
add esp, 0x10
push 0x5b
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
push 0x1b
mov edi, eax
push edi
push str.type
push ecx
push edx
push esi
call fcn.0501a0b0
movzx eax, word [ebp]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x2c]
push eax
push edi
push str.param.setMipiCwParam.rf_band_idx
push ecx
push edx
push esi
call fcn.05019ff0
movzx eax, word [ebp + 2]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x44]
push eax
push edi
push str.param.setMipiCwParam.power_level_num
push ecx
push edx
push esi
call fcn.05019ff0
movzx eax, word [ebp + 4]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x5c]
add esp, 0x48
push eax
push edi
push str.param.setMipiCwParam.code_word_num
push ecx
push edx
push esi
call fcn.05019ff0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x90]
push 1
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.05032d60
add esp, 0x30
cmp al, 1
je 0x505167f
push str._ERROR:
push 0xff
push 0x14ec
push str..META_erf.cpp
lea ecx, [esp + 0x48]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x70], 6
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x78]
mov eax, dword [eax + 8]
push ecx
movsx ecx, word [esp + 0x1c]
push edx
push ecx
push 0x524afe0
push esi
push str.__d___s_token_d_:_SendPrimitive_local_len_d__peer_len_d__fail_
push eax
push edi
call fcn.051ae2d0
add esp, 0x20
mov byte [esp + 0x70], 5
lea ecx, [esp + 0x38]
call fcn.051ae2c0
mov byte [esp + 0x70], 4
lea ecx, [esp + 0x28]
call fcn.05065ae0
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.051601f0
mov eax, 2
jmp 0x5051722
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x80]
lea edi, [esp + 0x4c]
call fcn.05034b90
mov esi, eax
mov byte [esp + 0x70], 4
lea ecx, [esp + 0x28]
call fcn.05065ae0
mov dword [esp + 0x70], 0xffffffff
mov ecx, edi
call fcn.051601f0
mov eax, esi
jmp 0x5051722
push str._ERROR:
push 0xff
push 0x14c5
push str..META_erf.cpp
lea ecx, [esp + 0x48]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x70], 1
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movzx edx, word [ebp + 4]
movzx ecx, word [ebp + 2]
mov eax, dword [eax + 8]
push ebx
push edx
push ebx
push ecx
push 0x524afe0
push esi
push str.__d___s__:_power_level_num__d____MAX_ERF_MIPI_POWER_LEVEL__d___code_word_num__d____MAX_ERF_MIPI_CODE_WORD_NUM__d_
push eax
push edi
call fcn.051ae2d0
add esp, 0x24
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.051ae2c0
mov eax, 0xa
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0xc