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

Disassembly:
push 0xffffffffffffffff
push 0x521f3e2
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov esi, dword [esp + 0x120]
mov edi, dword [esp + 0x128]
push esi
mov ecx, 0x53f4cc8
call fcn.050674e0
test al, al
jne 0x5056ed3
push str._ERROR:
push 0xff
push 0x28af
push str..META_erf.cpp
lea ecx, [esp + 0x5c]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x118], 0
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x524b970
push esi
push str.__d___s__:_invalid_handle_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0x118], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.051ae2c0
mov eax, 0xd
jmp 0x5057432
test edi, edi
je 0x505742d
cmp dword [esp + 0x130], 0
je 0x505742d
push 0x52c722a
push 1
push 0x28b8
push str..META_erf.cpp
lea ecx, [esp + 0x5c]
call fcn.051ae270
mov ebp, eax
mov dword [esp + 0x118], 1
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str.__d__________Request________
push eax
push ebp
call fcn.051ae2d0
add esp, 0x10
mov dword [esp + 0x118], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.051ae2c0
push 0x52c722a
push 1
push 0x28b8
push str..META_erf.cpp
lea ecx, [esp + 0x5c]
call fcn.051ae270
mov ebp, eax
mov dword [esp + 0x118], 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_SET_RX_TX_SETTING_V2]
push 0x3d
push eax
push 0x5b
push 0x5b
call sym.META_DLL.dll_META_GetPrimitiveTypeName
push eax
push 0x524b970
push esi
push 0x523f414
push ebx
push ebp
call fcn.051ae2d0
add esp, 0x2c
mov dword [esp + 0x118], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.051ae2c0
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], 0
call fcn.050348b0
mov dword [esp + 0x118], 3
mov ecx, dword [esp + 0x130]
push 1
push 0
lea edx, [esp + 0x78]
push edx
push 0x5047ac0
push 0x3d
push 0x5c
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0xa4], ecx
push esi
lea ecx, [esp + 0x80]
call fcn.050659a0
mov byte [esp + 0x118], 4
movzx ecx, word [edi]
movzx eax, word [edi + 2]
mov word [esp + 0x38], cx
mov word [esp + 0x24], ax
test ax, ax
jne 0x5057031
xor edx, edx
mov word [esp + 0x26], dx
jmp 0x505703e
mov eax, ecx
imul eax, eax, 0x302
mov word [esp + 0x26], ax
movzx edx, word [edi + 2]
movzx eax, word [edi + 4]
mov ebx, edx
imul ebx, ebx, 0x2792
add ebx, dword [esp + 0x26]
movzx ebp, ax
mov word [esp + 0x30], ax
movzx eax, dx
mov word [esp + 0x32], bx
imul eax, eax, 0x2792
movzx ebx, cx
mov dword [esp + 0x44], ebp
imul ebp, ebp, 0x628
mov ecx, ebx
imul ecx, ecx, 0x302
add eax, ebp
add eax, ecx
push eax
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
push esi
mov eax, 0x10000
lea ecx, [esp + 0x54]
lea edx, [esp + 0x60]
call fcn.05034850
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x50570de
mov byte [esp + 0x118], 3
lea ecx, [esp + 0x60]
call fcn.05065ae0
mov dword [esp + 0x118], 0xffffffff
lea ecx, [esp + 0x70]
call fcn.051601f0
mov eax, ebp
jmp 0x5057432
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
add eax, ecx
push 0x5b
mov dword [esp + 0x20], eax
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov edx, dword [esp + 0x14]
push 0x3d
mov ebp, eax
mov eax, dword [esp + 0x1c]
push ebp
push str.type
push edx
push eax
push esi
call fcn.0501a0b0
add esp, 0x18
test eax, eax
jne 0x50573c4
push 0x7f
push eax
lea ecx, [esp + 0x95]
push ecx
mov byte [esp + 0x98], al
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x130]
movzx ax, byte [edx]
movzx ecx, ax
lea edx, [esp + 0x98]
push str.param.setRxTxSettingParam.update_to_nvram
push edx
mov dword [esp + 0x54], ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push ebp
lea ecx, [esp + 0xa8]
push ecx
push edx
push eax
push esi
call fcn.05019ff0
add esp, 0x2c
test eax, eax
jne 0x50573c4
lea ecx, [esp + 0x8c]
push str.param.setRxTxSettingParam.rx_type1_data.count
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
push ebp
lea eax, [esp + 0x9c]
push eax
push ecx
push edx
push esi
call fcn.05019ff0
add esp, 0x20
test eax, eax
jne 0x50573c4
lea eax, [esp + 0x8c]
push str.param.setRxTxSettingParam.rx_type1_data.offset
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push 0
push ebp
lea ecx, [esp + 0x9c]
push ecx
push edx
push eax
push esi
call fcn.05019ff0
add esp, 0x20
test eax, eax
jne 0x50573c4
mov edx, dword [esp + 0x1c]
imul ebx, ebx, 0x302
push ebx
lea ecx, [edi + 0xd2]
push ecx
push edx
call sub.MSVCR90.dll_memcpy
add dword [esp + 0x28], ebx
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x98]
push str.param.setRxTxSettingParam.rx_type2_data.count
push eax
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push ebp
lea edx, [esp + 0xa8]
push edx
push eax
push ecx
push esi
call fcn.05019ff0
add esp, 0x2c
test eax, eax
jne 0x50573c4
lea edx, [esp + 0x8c]
push str.param.setRxTxSettingParam.rx_type2_data.offset
push edx
call ebx
mov eax, dword [esp + 0x2e]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push ebp
lea ecx, [esp + 0x9c]
push ecx
push edx
push eax
push esi
call fcn.05019ff0
add esp, 0x20
test eax, eax
jne 0x50573c4
movzx ebx, word [esp + 0x24]
mov edx, dword [esp + 0x1c]
imul ebx, ebx, 0x2792
push ebx
lea ecx, [edi + 0xc454]
push ecx
push edx
call sub.MSVCR90.dll_memcpy
add dword [esp + 0x28], ebx
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x98]
push str.param.setRxTxSettingParam.tx_type1_data.count
push eax
call ebx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push ebp
lea edx, [esp + 0xa8]
push edx
push eax
push ecx
push esi
call fcn.05019ff0
add esp, 0x2c
test eax, eax
jne 0x50573c4
lea edx, [esp + 0x8c]
push str.param.setRxTxSettingParam.tx_type1_data.offset
push edx
call ebx
mov eax, dword [esp + 0x3a]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push ebp
lea ecx, [esp + 0x9c]
push ecx
push edx
push eax
push esi
call fcn.05019ff0
add esp, 0x20
test eax, eax
jne 0x50573c4
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
imul eax, eax, 0x628
push eax
add edi, 0x18a2e
push edi
push ecx
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
push 1
push edx
lea eax, [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x34]
push edx
push esi
call fcn.05032d60
add esp, 0x24
cmp al, 1
je 0x50573f0
push str._ERROR:
push 0xff
push 0x2915
push str..META_erf.cpp
lea ecx, [esp + 0x5c]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x118], 5
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x14]
movsx edx, word [esp + 0x20]
mov eax, dword [eax + 8]
push ecx
push edx
push 0x524b970
push esi
push str.__d___s_token_d_:_SendPrimitive_local_len_d__fail_
push eax
push edi
call fcn.051ae2d0
add esp, 0x1c
mov byte [esp + 0x118], 4
lea ecx, [esp + 0x4c]
call fcn.051ae2c0
mov byte [esp + 0x118], 3
lea ecx, [esp + 0x60]
call fcn.05065ae0
mov dword [esp + 0x118], 0xffffffff
lea ecx, [esp + 0x70]
call fcn.051601f0
mov eax, 2
jmp 0x5057432
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x12c]
lea edi, [esp + 0x70]
call fcn.05034b90
mov esi, eax
mov byte [esp + 0x118], 3
lea ecx, [esp + 0x60]
call fcn.05065ae0
mov dword [esp + 0x118], 0xffffffff
mov ecx, edi
call fcn.051601f0
mov eax, esi
jmp 0x5057432
mov eax, 0xa
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.0520b902
add esp, 0x108
ret 0x14