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

Disassembly:
push 0xffffffffffffffff
push 0x5229c14
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0xf8], ebx
jne 0x51215d2
lea eax, [ebx + 0xa]
jmp 0x512208d
mov esi, dword [esp + 0xf0]
push esi
mov ecx, 0x53f4cc8
call fcn.050674e0
lea ecx, [esp + 0x38]
test al, al
jne 0x512164f
push str._ERROR:
push 0xff
push 0x351c
push str..RF.CPP
call fcn.051ae270
mov edi, eax
mov dword [esp + 0xe8], ebx
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push 0x528d724
push esi
push str.__d___s__:_invalid_handle_
push eax
push edi
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.051ae2c0
mov eax, 0xd
jmp 0x512208d
push 0x52c722a
push 1
push 0x3520
push str..RF.CPP
call fcn.051ae270
mov ebp, eax
mov dword [esp + 0xe8], 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 + 0xe8], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.051ae2c0
push 0x52c722a
push 1
push 0x3521
push str..RF.CPP
lea ecx, [esp + 0x48]
call fcn.051ae270
mov ebp, eax
mov dword [esp + 0xe8], 2
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edi, dword [eax + 8]
mov eax, dword [esp + 0xf4]
push eax
push 1
push 1
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [str.RF_TEST_CMD_START_FDT_UL_100P]
push eax
push 0x51
push ecx
push ebx
push ebx
call sym.META_DLL.dll_META_GetPrimitiveTypeName
push eax
push 0x528d724
push esi
push str.__d___s__:_req_s__d____s__d___cnf_s__d___ms_timeout__d_
push edi
push ebp
call fcn.051ae2d0
or ebp, 0xffffffff
add esp, 0x30
mov dword [esp + 0xe8], ebp
lea ecx, [esp + 0x38]
call fcn.051ae2c0
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
push 1
push ebx
add eax, 0xad24
push eax
push 0x5102eb0
push 0x51
push 1
lea edx, [esp + 0x34]
push edx
push esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x6c], eax
call fcn.050659a0
mov dword [esp + 0xe8], 3
mov ecx, dword [str.RfTestCmdUTS_100P]
push 0x528d724
lea eax, [esp + 0x68]
push eax
push ecx
call fcn.051a8740
add esp, 0xc
test eax, eax
je 0x51217f6
push str._ERROR:
push 0xff
push 0x352f
push str..RF.CPP
lea ecx, [esp + 0x48]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0xe8], 4
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [str.RfTestCmdUTS_100P]
mov eax, dword [eax + 8]
push edx
push 0x528d724
push esi
push str.__d___s__:_can_not_get_DataFormat_of__s_from_idb
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0xe8], 3
lea ecx, [esp + 0x38]
call fcn.051ae2c0
mov dword [esp + 0xe8], ebp
lea ecx, [esp + 0x50]
call fcn.05065ae0
lea eax, [ebp + 9]
jmp 0x512208d
mov ebp, dword [esp + 0x64]
push esi
mov ecx, 0x53f4cc8
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
call fcn.05065960
mov eax, dword [eax + 0xd58c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x48]
push edx
push ebp
push ebx
push eax
push esi
call fcn.051a85f0
add esp, 0x28
cmp eax, ebx
je 0x5121891
sub eax, 1
je 0x5121871
sub eax, 1
je 0x512186a
sub eax, 1
je 0x5121863
mov esi, 1
jmp 0x5121876
mov esi, 8
jmp 0x5121876
mov esi, 9
jmp 0x5121876
mov esi, 0xa
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.05065ae0
mov eax, esi
jmp 0x512208d
push 0x51
push ebx
call sym.META_DLL.dll_META_GetPrimitiveTypeName
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
push eax
push str.type
push ecx
push edx
push esi
call fcn.05019f90
mov eax, dword [esp + 0x110]
movzx ecx, byte [eax]
mov edx, dword [str.RfTestCmdUTS_100P]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push str.step_cnt
push ebp
add ecx, eax
push ecx
push esi
call fcn.0501a110
mov ebx, dword [esp + 0x128]
add esp, 0x30
xor edi, edi
add ebx, 2
jmp 0x51218f0
push edi
lea edx, [esp + 0x7c]
push str.high_apc_dcoffset__d_
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx eax, word [ebx]
mov ecx, dword [str.RfTestCmdUTS_100P]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x8c]
push edx
push ebp
add eax, ecx
push eax
push esi
call fcn.0501a050
inc edi
add esp, 0x24
add ebx, 2
cmp edi, 5
jl 0x51218f0
mov ebx, dword [esp + 0xf8]
xor edi, edi
add ebx, 0x10
mov dword [esp + 0x20], ebx
jmp 0x5121948
mov ebx, dword [esp + 0x20]
mov dl, byte [ebx - 4]
push edi
lea eax, [esp + 0x7c]
push str.ApcUSS__d_.band
push eax
mov byte [esp + 0x74], dl
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ecx, dword [esp + 0x74]
mov edx, dword [str.RfTestCmdUTS_100P]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x8c]
push eax
push ebp
add edx, ecx
push edx
push esi
call fcn.05019f90
push edi
lea eax, [esp + 0xa0]
push str.ApcUSS__d_.arfcn
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx ecx, word [ebx]
mov edx, dword [str.RfTestCmdUTS_100P]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0xb0]
push eax
push ebp
add edx, ecx
push edx
push esi
call fcn.0501a050
add esp, 0x48
push edi
lea eax, [esp + 0x7c]
push str.ApcUSS__d_.timeslot_per_frame
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx ecx, byte [ebx + 2]
mov edx, dword [str.RfTestCmdUTS_100P]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x8c]
push eax
push ebp
add ecx, edx
push ecx
push esi
call fcn.0501a110
push edi
lea eax, [esp + 0xa0]
push str.ApcUSS__d_.apc_dac_pcl_sel
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx ecx, byte [ebx + 3]
mov edx, dword [str.RfTestCmdUTS_100P]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0xb0]
push eax
push ebp
add ecx, edx
push ecx
push esi
call fcn.0501a110
mov eax, dword [esp + 0x68]
lea ecx, [eax + 0x14]
add esp, 0x48
xor ebx, ebx
mov dword [esp + 0x30], ecx
add eax, 4
mov dword [esp + 0x2c], eax
lea ebx, [ebx]
push ebx
push edi
lea edx, [esp + 0x80]
push str.ApcUSS__d_.apc_dac_pcl_value__d_
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [esp + 0x3c]
movzx ecx, word [eax]
mov edx, dword [str.RfTestCmdUTS_100P]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x90]
push eax
push ebp
add edx, ecx
push edx
push esi
call fcn.0501a050
push ebx
push edi
lea eax, [esp + 0xa8]
push str.ApcUSS__d_.pa_vbias_val__d_
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ecx, dword [esp + 0x58]
movzx edx, byte [ecx + ebx + 0xc]
mov eax, dword [str.RfTestCmdUTS_100P]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0xb8]
push ecx
push ebp
add eax, edx
push eax
push esi
call fcn.05019f90
add esp, 0x50
push ebx
push edi
lea ecx, [esp + 0x80]
push str.ApcUSS__d_.is_low_pcl__d_
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov edx, dword [esp + 0x30]
movzx eax, byte [edx + ebx + 0x10]
mov ecx, dword [str.RfTestCmdUTS_100P]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x90]
push edx
push ebp
add eax, ecx
push eax
push esi
call fcn.05019f90
mov edx, dword [esp + 0x58]
mov al, byte [edx]
push ebx
push edi
lea ecx, [esp + 0xa8]
push str.ApcUSS__d_.cs__d_
push ecx
mov byte [esp + 0x98], al
call dword [sym.imp.MSVCR90.dll_sprintf]
mov edx, dword [esp + 0x98]
mov eax, dword [str.RfTestCmdUTS_100P]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0xb8]
push ecx
push ebp
add eax, edx
push eax
push esi
call fcn.05019f90
add dword [esp + 0x7c], 2
add dword [esp + 0x80], 4
inc ebx
add esp, 0x50
cmp ebx, 4
jl 0x5121a50
push edi
lea ecx, [esp + 0x7c]
push str.ApcUSS__d_.repeat_cnt
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ebx, dword [esp + 0x2c]
mov edx, dword [ebx + 0x24]
mov eax, dword [str.RfTestCmdUTS_100P]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x8c]
push ecx
push ebp
add eax, edx
push eax
push esi
call fcn.050fe6b0
push edi
lea ecx, [esp + 0xa0]
push str.ApcUSS__d_.afc_dac_value
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx edx, word [ebx + 0x28]
mov eax, dword [str.RfTestCmdUTS_100P]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0xb0]
push ecx
push ebp
add edx, eax
push edx
push esi
call fcn.0501a050
add esp, 0x48
push edi
lea ecx, [esp + 0x7c]
push str.ApcUSS__d_.tsc
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx edx, byte [ebx + 0x2a]
mov eax, dword [str.RfTestCmdUTS_100P]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x8c]
push ecx
push ebp
add edx, eax
push edx
push esi
call fcn.0501a110
mov cl, byte [ebx + 0x2c]
push edi
lea edx, [esp + 0xa0]
push str.ApcUSS__d_.pattern
push edx
mov byte [esp + 0x9c], cl
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [esp + 0x9c]
mov ecx, dword [str.RfTestCmdUTS_100P]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0xb0]
push edx
push ebp
add eax, ecx
push eax
push esi
call fcn.05019f90
add esp, 0x48
push edi
push str.ApcUSS__d_.pattern_data
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx eax, word [ebx + 0x30]
mov ecx, dword [str.RfTestCmdUTS_100P]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x8c]
push edx
push ebp
add ecx, eax
push ecx
push esi
call fcn.05019ff0
inc edi
add ebx, 0x38
add esp, 0x24
cmp edi, 0x64
mov dword [esp + 0x20], ebx
jl 0x5121944
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 1
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
push esi
call fcn.05032d60
add esp, 0x18
test al, al
jne 0x5121d67
push str._ERROR:
push 0xff
push 0x3591
push str..RF.CPP
lea ecx, [esp + 0x48]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0xe8], 5
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [eax + 8]
push ecx
movsx ecx, word [esp + 0x20]
push edx
push ecx
push 0x528d724
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 + 0xe8], 3
lea ecx, [esp + 0x38]
call fcn.051ae2c0
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.05065ae0
mov eax, 2
jmp 0x512208d
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov edx, dword [eax + 0xa8d4]
mov edi, dword [esp + 0x4c]
add eax, 0xa8d0
mov dword [esp + 0x70], edx
mov eax, dword [edi + 4]
push esi
mov ecx, 0x53f4cc8
mov dword [esp + 0x78], eax
call fcn.05065960
mov ecx, dword [esp + 0xf4]
add eax, 0xc
cmp dword [eax + 0xa8], 0
mov eax, dword [0x53f1d2c]
jne 0x5121db4
mov eax, dword [0x53f1b14]
cmp eax, ecx
ja 0x5121dba
mov eax, ecx
push eax
push 0
lea ecx, [esp + 0x78]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x5121ea8
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
add eax, 0xa800
mov edx, dword [eax + 0x28]
lea edi, [eax + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov bl, 6
mov byte [esp + 0xe8], bl
mov ecx, dword [esp + 0x1c]
push ecx
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
mov ecx, eax
add ecx, 0xa800
call fcn.05192530
push str._WARNING:
push 0xd2
push 0x35a6
push str..RF.CPP
lea ecx, [esp + 0x48]
call fcn.051ae270
mov ebp, eax
mov byte [esp + 0xe8], 7
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movsx edx, word [esp + 0x1c]
mov eax, dword [eax + 8]
push edx
push 0x528d724
push esi
push str.__d___s_token_d_:_Cancel_
push eax
push ebp
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0xe8], bl
lea ecx, [esp + 0x38]
call fcn.051ae2c0
mov byte [esp + 0xe8], 3
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.05065ae0
mov eax, 0x1e
jmp 0x512208d
cmp eax, 1
jne 0x5121f84
cmp byte [edi + 0x1a20], 0
lea ecx, [esp + 0x38]
jne 0x5121f0f
push str._ERROR:
push 0xff
push 0x35bf
push str..RF.CPP
call fcn.051ae270
mov edi, eax
mov byte [esp + 0xe8], 0xa
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movsx ecx, word [esp + 0x1c]
mov eax, dword [eax + 8]
push ecx
push 0x528d724
push esi
push str.__d___s_token_d_:_rf_cnf.m_bOk__false_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
jmp 0x5122063
push 0x52c722a
push 1
push 0x35c4
push str..RF.CPP
call fcn.051ae270
mov edi, eax
mov byte [esp + 0xe8], 0xb
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movsx edx, word [esp + 0x1c]
mov eax, dword [eax + 8]
push edx
push 0x528d724
push esi
push str.__d___s_token_d_:_OK.
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0xe8], 3
lea ecx, [esp + 0x38]
call fcn.051ae2c0
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.05065ae0
xor eax, eax
jmp 0x512208d
cmp eax, 0x102
jne 0x512200a
push str._ERROR:
push 0xff
push 0x35b0
push str..RF.CPP
lea ecx, [esp + 0x48]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0xe8], 8
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movsx ecx, word [esp + 0x1c]
mov eax, dword [eax + 8]
push ecx
push 0x528d724
push esi
push str.__d___s_token_d_:_WaitForMultipleObjects___timeout_
push eax
push edi
call fcn.051ae2d0
add esp, 0x18
mov byte [esp + 0xe8], 3
lea ecx, [esp + 0x38]
call fcn.051ae2c0
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.05065ae0
mov eax, 0xb
jmp 0x512208d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str._ERROR:
push 0xff
push 0x35b7
push str..RF.CPP
lea ecx, [esp + 0x48]
mov edi, eax
call fcn.051ae270
mov ebx, eax
mov byte [esp + 0xe8], 9
push esi
mov ecx, 0x53f4cc8
call fcn.05065960
movsx edx, word [esp + 0x1c]
mov eax, dword [eax + 8]
push edi
push edx
push 0x528d724
push esi
push str.__d___s_token_d_:_WaitForMultipleObjects___failed___Err__u_.
push eax
push ebx
call fcn.051ae2d0
add esp, 0x1c
mov byte [esp + 0xe8], 3
lea ecx, [esp + 0x38]
call fcn.051ae2c0
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.05065ae0
mov eax, 1
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0520b902
add esp, 0xd8
ret 0xc