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

Disassembly:
sub esp, 0xac
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb8]
mov ecx, 0xfffffeb0
sub ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, 0x150
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, 0x2a6
sub ecx, eax
mov dword [esp + 0x24], ecx
push ebx
mov ebx, dword [esp + 0xb4]
mov ecx, 0x3f6
sub ecx, eax
push ebp
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0x20], ecx
push esi
mov ecx, 0x546
sub ecx, eax
mov esi, 0x1d4
push edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 8
jmp 0x503fb4b
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0xc8]
xor edi, edi
mov dword [esp + 0x1c], esi
add esi, eax
mov dword [esp + 0x20], 0x15
jmp 0x503fb60
mov eax, dword [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x40]
push str.paGainHigh__d___d_
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx edx, word [esi - 0x150]
mov ecx, dword [esp + 0x34]
push edx
push str.ERfTestCmdGetSetTpcSetting
lea eax, [esp + 0x50]
push eax
add ecx, esi
push ecx
push ebp
push ebx
call fcn.0503f040
mov edx, dword [esp + 0x38]
push edi
push edx
lea eax, [esp + 0x68]
push str.paGainMiddle__d___d_
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx ecx, word [esi]
mov eax, dword [esp + 0x54]
push ecx
push str.ERfTestCmdGetSetTpcSetting
lea edx, [esp + 0x78]
push edx
push eax
push ebp
push ebx
call fcn.0503f040
mov ecx, dword [esp + 0x60]
add esp, 0x50
push edi
push ecx
lea edx, [esp + 0x40]
push str.paGainLow__d___d_
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx eax, word [esi + 0x150]
mov edx, dword [esp + 0x3c]
push eax
push str.ERfTestCmdGetSetTpcSetting
lea ecx, [esp + 0x50]
push ecx
add edx, esi
push edx
push ebp
push ebx
call fcn.0503f040
mov eax, dword [esp + 0x38]
push edi
push eax
lea ecx, [esp + 0x68]
push str.powerDetectorHigh__d___d_
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx edx, word [esi + 0x2a6]
mov ecx, dword [esp + 0x6c]
push edx
push str.ERfTestCmdGetSetTpcSetting
lea eax, [esp + 0x78]
push eax
add ecx, esi
push ecx
push ebp
push ebx
call fcn.0503f040
mov edx, dword [esp + 0x60]
add esp, 0x50
push edi
push edx
lea eax, [esp + 0x40]
push str.powerDetectorMiddle__d___d_
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx ecx, word [esi + 0x3f6]
mov eax, dword [esp + 0x38]
push ecx
push str.ERfTestCmdGetSetTpcSetting
lea edx, [esp + 0x50]
push edx
add eax, esi
push eax
push ebp
push ebx
call fcn.0503f040
mov ecx, dword [esp + 0x38]
push edi
push ecx
lea edx, [esp + 0x68]
push str.powerDetectorLow__d___d_
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
movzx eax, word [esi + 0x546]
mov edx, dword [esp + 0x68]
push eax
push str.ERfTestCmdGetSetTpcSetting
lea ecx, [esp + 0x78]
push ecx
add edx, esi
push edx
push ebp
push ebx
call fcn.0503f040
add dword [esp + 0x6c], 2
add esp, 0x50
inc edi
add esi, 2
sub dword [esp + 0x20], 1
jne 0x503fb60
add dword [esp + 0x18], 0x2a
mov eax, 1
add dword [esp + 0x10], eax
sub dword [esp + 0x14], eax
jne 0x503fb40
xor edi, edi
lea esi, [eax + 0x59]
mov dword [esp + 0x14], 0x15
push edi
lea eax, [esp + 0x3c]
push str.ulFrequency__d_
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ecx, dword [esp + 0xd4]
movzx edx, word [esi + ecx]
push edx
push str.ERfTestCmdGetSetTpcSetting
lea eax, [esp + 0x4c]
push eax
push esi
push ebp
push ebx
call fcn.0503f080
add esp, 0x24
inc edi
add esi, 2
sub dword [esp + 0x14], 1
jne 0x503fce0
mov esi, dword [esp + 0xc8]
movzx ecx, word [esi + 0x474]
push ecx
push str.ERfTestCmdGetSetTpcSetting
push str.couplerLossHigh
push 0x474
push ebp
push ebx
call fcn.0503f040
movzx edx, word [esi + 0x476]
push edx
push str.ERfTestCmdGetSetTpcSetting
push str.couplerLossMiddle
push 0x476
push ebp
push ebx
call fcn.0503f040
movzx eax, word [esi + 0x478]
push eax
push str.ERfTestCmdGetSetTpcSetting
push str.couplerLossLow
push 0x478
push ebp
push ebx
call fcn.0503f040
mov ecx, dword [esp + 0x100]
add esp, 0x48
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0520b902
add esp, 0xac
ret