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

Disassembly:
push 0xffffffffffffffff
push 0x521f4ee
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0xd4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov esi, dword [esp + 0xfc]
push esi
mov ecx, 0x53f4cc8
call fcn.050674e0
lea ecx, [esp + 0x28]
test al, al
jne 0x505888c
push str._ERROR:
push 0xff
push 0x2a1f
push str..META_erf.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0xf4], 0
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x524c1dc
push esi
push str.__d___s__:_invalid_handle_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0xf4], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.051ae2c0
mov eax, 0xd
jmp 0x5058ca6
push 0x52c722a
push 1
push 0x2a24
push str..META_erf.cpp
call fcn.051ae270
mov edi, eax
mov dword [esp + 0xf4], 1
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
or ebp, 0xffffffff
add esp, 0x10
mov dword [esp + 0xf4], ebp
lea ecx, [esp + 0x28]
call fcn.051ae2c0
push 0x52c722a
push 1
push 0x2a24
push str..META_erf.cpp
lea ecx, [esp + 0x38]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0xf4], 2
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_GET_TXRX_ROUTE_INFO]
push 0x42
push eax
push 0x5b
push 0x5b
call sym.META_DLL.dll_META_GetPrimitiveTypeName
push eax
push 0x524c1dc
push esi
push 0x523f414
push ebx
push edi
call fcn.051ae2d0
add esp, 0x2c
mov dword [esp + 0xf4], ebp
lea ecx, [esp + 0x28]
call fcn.051ae2c0
xor ebx, ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x24], ebx
call fcn.050348b0
mov dword [esp + 0xf4], 3
mov ecx, dword [esp + 0x108]
push 1
push ebx
lea edx, [esp + 0x44]
push edx
push 0x5047ac0
push 0x42
push 0x5c
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x70], ecx
push esi
lea ecx, [esp + 0x78]
call fcn.050659a0
mov byte [esp + 0xf4], 4
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
mov eax, dword [esp + 0x28]
push edx
push eax
push esi
call fcn.050347c0
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x50589e9
mov byte [esp + 0xf4], 3
lea ecx, [esp + 0x58]
call fcn.05065ae0
mov dword [esp + 0xf4], ebp
lea ecx, [esp + 0x3c]
call fcn.051601f0
mov eax, edi
jmp 0x5058ca6
push 0x5b
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0x42
mov edi, eax
push edi
push str.type
push ecx
push edx
push esi
call fcn.0501a0b0
mov ebp, dword [esp + 0x11c]
movzx eax, byte [ebp]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push eax
push edi
push str.param.getTxRxRouteInfo.rx_cc_num
push ecx
push edx
push esi
call fcn.05019f90
movzx eax, byte [ebp + 0x24]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
push eax
push edi
push str.param.getTxRxRouteInfo.tx_cc_num
push ecx
push edx
push esi
call fcn.05019f90
lea eax, [ebp + 0x30]
add esp, 0x48
add ebp, 0x2a
mov dword [esp + 0x1c], ebp
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
mov dword [esp + 0x20], eax
mov edi, edi
push ebx
lea ecx, [esp + 0x6c]
push str.param.getTxRxRouteInfo.tx_freq__d_
push ecx
call ebp
mov edx, dword [esp + 0x28]
movzx eax, word [edx - 4]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x7c]
push ecx
push edx
push eax
push esi
call fcn.05019ff0
push ebx
lea ecx, [esp + 0x90]
push str.param.getTxRxRouteInfo.tx_band__d_
push ecx
call ebp
mov edx, dword [esp + 0x4c]
movzx eax, word [edx]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push edi
lea ecx, [esp + 0xa0]
push ecx
push edx
push eax
push esi
call fcn.05019ff0
add esp, 0x48
push ebx
lea ecx, [esp + 0x6c]
push str.param.getTxRxRouteInfo.tx_bw__d_
push ecx
call ebp
mov edx, dword [esp + 0x2c]
movzx eax, byte [edx]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x7c]
push ecx
push edx
push eax
push esi
call fcn.05019f90
add dword [esp + 0x40], 2
add dword [esp + 0x44], 4
inc ebx
add esp, 0x24
cmp ebx, 2
jl 0x5058a60
mov eax, dword [esp + 0x104]
lea ecx, [eax + 0x14]
xor ebx, ebx
add eax, 0xa
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
lea esp, [esp]
push ebx
lea edx, [esp + 0x6c]
push str.param.getTxRxRouteInfo.rx_freq__d_
push edx
call ebp
mov eax, dword [esp + 0x28]
movzx ecx, word [eax - 8]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push edi
lea edx, [esp + 0x7c]
push edx
push eax
push ecx
push esi
call fcn.05019ff0
push ebx
lea edx, [esp + 0x90]
push str.param.getTxRxRouteInfo.rx_band__d_
push edx
call ebp
mov eax, dword [esp + 0x4c]
movzx ecx, word [eax]
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edi
lea edx, [esp + 0xa0]
push edx
push eax
push ecx
push esi
call fcn.05019ff0
add esp, 0x48
push ebx
lea edx, [esp + 0x6c]
push str.param.getTxRxRouteInfo.rx_bw__d_
push edx
call ebp
mov eax, dword [esp + 0x2c]
movzx ecx, byte [eax]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push edi
lea edx, [esp + 0x7c]
push edx
push eax
push ecx
push esi
call fcn.05019f90
add dword [esp + 0x44], 4
add dword [esp + 0x40], 2
inc ebx
add esp, 0x24
cmp ebx, 4
jl 0x5058b20
mov edx, dword [esp + 0x14]
push 1
push edx
lea eax, [esp + 0x20]
push eax
push esi
call fcn.05048250
add esp, 0x10
cmp al, 1
je 0x5058c6b
push str._ERROR:
push 0xff
push 0x2a52
push str..META_erf.cpp
lea ecx, [esp + 0x38]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0xf4], 5
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 8]
push ecx
push 0x524c1dc
push esi
push str.__d___s__:_SendPrimitive_local_len_d__fail_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0xf4], 4
lea ecx, [esp + 0x28]
call fcn.051ae2c0
mov byte [esp + 0xf4], 3
lea ecx, [esp + 0x58]
call fcn.05065ae0
mov dword [esp + 0xf4], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.051af410
mov eax, 2
jmp 0x5058ca6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x100]
lea edi, [esp + 0x3c]
call fcn.05034b90
mov esi, eax
mov byte [esp + 0xf4], 3
lea ecx, [esp + 0x58]
call fcn.05065ae0
mov dword [esp + 0xf4], 0xffffffff
mov ecx, edi
call fcn.051af410
mov eax, esi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0520b902
add esp, 0xe4
ret 0x10